[opensuse-packaging] Using autogen.sh in a spec file?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, sorry if this is an old hat, but I just stumbled upon it. lxc changed the sources layout between 1.0.x and 1.1, and no longer directly includes a configure file. So it has to be generated via ./autogen.sh. What's the right way to do this in a spec file? Just call the autogen.sh script? Or is there a macro for it? I found an older mail from Ludwig (and others), where %_configure is being redefined to run autogen.sh http://lists.opensuse.org/opensuse-packaging/2011-02/msg00032.html Regards, Johannes - -- Having a 'non-smoking' section in a restaurant is like having a 'non-peeing' section in a pool. (Robin Cowdrey) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlSGCLsACgkQzi3gQ/xETbIwhgCdG6lr0laxVh9Nx6S5PrY5T3kv T70AoIaU6xzPExgSlKd7mteIPRMsyi2b =iO+j -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Monday 2014-12-08 21:23, Johannes Kastl wrote:
lxc changed the sources layout between 1.0.x and 1.1, and no longer directly includes a configure file. So it has to be generated via ./autogen.sh.
What's the right way to do this in a spec file? Just call the autogen.sh script? Or is there a macro for it?
Why do we need a macro for every miniscule thing? Just like writing %__mv for mv is stupid. (There is a some corner case where it finds application, but definitely not in GNU systems like openSUSE.) As for autogen.sh, I have conversed with many maintainers who refuse to even have such a script in their SCM repos, because one can just call autoreconf as well. And that is probably what you should be doing in the spec file too unless it turns out not to work (such as when upstream plays tricks like editing .ac/.am files beforehand). -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08.12.2014 Jan Engelhardt wrote:
Why do we need a macro for every miniscule thing?
I was just wondering if calling this via macro is the preferred way on openSUSE.
As for autogen.sh, I have conversed with many maintainers who refuse to even have such a script in their SCM repos, because one can just call autoreconf as well. And that is probably what you should be doing in the spec file too unless it turns out not to work (such as when upstream plays tricks like editing .ac/.am files beforehand).
And the preferred way on openSUSE is to just call autoreconf? Or is there a macro for it? ;-) Regards, Johannes - -- `But you think you're right?´ said Harry. `Naturally I do, but as I have already proven to you, I make mistakes like the next man. In fact, being - forgive me - rather cleverer than most men, my mistakes tend to be correspondingly huger.´ (Albus Dumbledore, Harry Potter 6) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlSGEPAACgkQzi3gQ/xETbJZ7QCeNbPc9nEjS2kcGG3KgzldG+PT QWAAn1OEjWZyPuDmta4ryZsO/DNxQSfx =nzkr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
El 08/12/14 a las 17:58, Johannes Kastl escribió:
And the preferred way on openSUSE is to just call autoreconf? Or is there a macro for it? ;-)
Just call autoreconf -fiv if that works, sometimes it does not though. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08.12.2014 Cristian Rodríguez wrote:
Just call autoreconf -fiv if that works, sometimes it does not though.
Thanks, I'll try that. Regards, Johannes - -- I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlSMFvEACgkQzi3gQ/xETbJtVQCfbEUIo7ORJFsinzSZIFCqIRDO aHAAnRc9WfJBx3COIgStl7F0fIBJzIUd =Xl6d -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia poniedziałek, 8 grudnia 2014 21:50:02 Jan Engelhardt pisze:
Just like writing %__mv for mv is stupid. (There is a some
mv can be an alias, %__mv cannot and does not deend on $PATH so it is more predictable. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Saturday 2014-12-20 14:05, Křištof Želechovski wrote:
Dnia poniedziałek, 8 grudnia 2014 21:50:02 Jan Engelhardt pisze:
Just like writing %__mv for mv is stupid. (There is a some
mv can be an alias
When was the last time you had mv being an alias in a buildroot? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Křištof Želechovski <giecrilj@stegny.2a.pl> writes:
mv can be an alias
Aliases are not enabled in a non-interactive shell. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Mon 08 Dec 2014 09:23:23 PM CST, Johannes Kastl wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi everyone,
sorry if this is an old hat, but I just stumbled upon it.
lxc changed the sources layout between 1.0.x and 1.1, and no longer directly includes a configure file. So it has to be generated via ./autogen.sh.
What's the right way to do this in a spec file? Just call the autogen.sh script? Or is there a macro for it?
I found an older mail from Ludwig (and others), where %_configure is being redefined to run autogen.sh http://lists.opensuse.org/opensuse-packaging/2011-02/msg00032.html
Regards, Johannes
Hi I just use build requires for automake, autoconf and in the %build # Some note why we use [ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh %configure.... -- Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890) SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default up 6 days 2:26, 4 users, load average: 0.38, 0.26, 0.17 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08.12.2014 Malcolm wrote:
I just use build requires for automake, autoconf and in the %build
# Some note why we use [ -x autogen.sh ] && NOCONFIGURE=1 ./autogen.sh %configure....
And also thanks to you, the NOCONFIGURE might come in handy. Regards, Johannes - -- The presence of those seeking the truth is infinitely to be preferred to the presence of those who think they 've found it. (Terry Pratchett, Monstrous regiment) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlSMFy4ACgkQzi3gQ/xETbI1xgCeLCwtcH2tTfgbXUOXSpSgiQ2A xskAnA39hQxLT13PvwXvvOM0dnsFoBli =gHPr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (6)
-
Andreas Schwab
-
Cristian Rodríguez
-
Jan Engelhardt
-
Johannes Kastl
-
Křištof Želechovski
-
Malcolm