[opensuse-packaging] Macro documentation
Two situations, then the question. Situation #1. I was having trouble compiling a package today. I needed a patch to be applied if (and only if) the package would build on a 64 bit machine. I couldn't find any direct reference on how to do that on the spec. Someone on the IRC told me to use "%ifarch x86_64". Situation #2. Sometime back I was trying to build other package that would need different actions depending on the SUSE release. Again, someone on the IRC told me to use "%if %{?suse_version:1}0 >= 101". The question. Those are two simple examples of macros, and tips that would be very nice to have documented on the wiki. I've found that there is a "cross distribution how to", but it's very deep hidden on the wiki (there's no visible link to it, I found using the "category" pages"). So why not make a better documentation about it? I would love to help, but at this moment I don't have enough time, neither enough tech knowledge to help. :( -- % Mauricio Teixeira (netmask) % mteixeira{a}webset{d}net <> Maceio/AL/BR % http://mteixeira.webset.net <> http://pmping.sf.net
On 2006-08-10 22:16:31 -0300, Mauricio Teixeira (netmask) wrote:
Date: Thu, 10 Aug 2006 22:16:31 -0300 From: "Mauricio Teixeira (netmask)" <netmask@webset.net> Subject: [opensuse-packaging] Macro documentation To: opensuse-packaging@opensuse.org X-Mailer: Evolution 2.6.0
Two situations, then the question.
Situation #1. I was having trouble compiling a package today. I needed a patch to be applied if (and only if) the package would build on a 64 bit machine. I couldn't find any direct reference on how to do that on the spec. Someone on the IRC told me to use "%ifarch x86_64".
i still wait for the answer to the question: what package is the trouble maker?
Situation #2. Sometime back I was trying to build other package that would need different actions depending on the SUSE release. Again, someone on the IRC told me to use "%if %{?suse_version:1}0 >= 101".
0%{?suse_version} >= 1010
The question. Those are two simple examples of macros, and tips that would be very nice to have documented on the wiki. I've found that there is a "cross distribution how to", but it's very deep hidden on the wiki (there's no visible link to it, I found using the "category" pages"). So why not make a better documentation about it?
I would love to help, but at this moment I don't have enough time, neither enough tech knowledge to help. :(
editing the main buildservice website and add a link to the cross distribution howto doesnt take much time. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Em Sex, 2006-08-11 às 03:28 +0200, Marcus Rueckert escreveu:
spec. Someone on the IRC told me to use "%ifarch x86_64". what package is the trouble maker?
Don't worry, the problem is solved already. ;)
I would love to help, but at this moment I don't have enough time, neither enough tech knowledge to help. :( editing the main buildservice website and add a link to the cross distribution howto doesnt take much time.
I meant I don't know enough macros, so I can't really help documenting them. But instead of having the page Build_Service saying what it "would be" (even though it "is" already), it could be an index page with references to further links, just like Documentation or SDB. -- % Mauricio Teixeira (netmask) % mteixeira{a}webset{d}net <> Maceio/AL/BR % http://mteixeira.webset.net <> http://pmping.sf.net
On 2006-08-11 06:51:09 -0300, Mauricio Teixeira (netmask) wrote:
Em Sex, 2006-08-11 às 03:28 +0200, Marcus Rueckert escreveu: ^^^ netmask the wrong mailinglist for such topics. ;) *scnr*
I meant I don't know enough macros, so I can't really help documenting them.
But instead of having the page Build_Service saying what it "would be" (even though it "is" already), it could be an index page with references to further links, just like Documentation or SDB.
this topic is imho not important enough for the frontpage. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On 2006-08-11 06:51:09 -0300, Mauricio Teixeira (netmask) wrote:
spec. Someone on the IRC told me to use "%ifarch x86_64". what package is the trouble maker?
Don't worry, the problem is solved already. ;)
and you think your problem is solved at the point we add ppc64? i doubt that. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Hi, On Thursday, August 10, 2006 at 22:16:31, Mauricio Teixeira (netmask) wrote:
The question. Those are two simple examples of macros, and tips that would be very nice to have documented on the wiki.
opensuse.org -> Documentation -> Developer Ducomentation -> Package Conventions Thats the document that has all the SUSE specific macros explained. Henne -- Henne Vogelsang, http://hennevogel.de "To die. In the rain. Alone." Ernest Hemingway
Em Sex, 2006-08-11 às 10:07 +0200, Henne Vogelsang escreveu:
opensuse.org -> Documentation -> Developer Ducomentation -> Package Conventions
I know that one. But I'm talking about the specific macros that would be interesting to know on the build service, like different %if to different distros, arches, etc. -- % Mauricio Teixeira (netmask) % mteixeira{a}webset{d}net <> Maceio/AL/BR % http://mteixeira.webset.net <> http://pmping.sf.net
Am Freitag, 11. August 2006 10:07 schrieb Henne Vogelsang:
Hi,
On Thursday, August 10, 2006 at 22:16:31, Mauricio Teixeira (netmask) wrote:
The question. Those are two simple examples of macros, and tips that would be very nice to have documented on the wiki.
opensuse.org -> Documentation -> Developer Ducomentation -> Package Conventions Does not work for me. It's opensuse.org -> Documentation -> Development -> Developer Documentation -> Package Conventions or http://developer.novell.com/wiki/index.php/SUSE_Package_Conventions
Unfortunately the person who structured the User Documentation that nice gave up for the Developer Documentation ;-) However the documente was uploaded in april 2005 and says it's rev. 1.0 from january 2005. So are we really sure that it's up to date?
Thats the document that has all the SUSE specific macros explained. Well, from my own experience: The only true source is /usr/lib/rpm/suse_macros Enjoy shell code %-}
Klaas
On Aug 13, 06 21:48:54 +0200, Klaas Freitag wrote:
opensuse.org -> Documentation -> Developer Ducomentation -> Package Conventions Does not work for me. It's opensuse.org -> Documentation -> Development -> Developer Documentation -> Package Conventions or http://developer.novell.com/wiki/index.php/SUSE_Package_Conventions
Thanks for posting the actual URL, because none of the given paths work for me. In Developer Documentation ther is *no* Package Conventions link. Maybe it was removed because it is dead old. Or I need new glasses.
However the documente was uploaded in april 2005 and says it's rev. 1.0 from january 2005. So are we really sure that it's up to date?
No, it is not. E.g. it still talks about #neededforbuild, which is autobuild only. Yes, SUSE rpm macro documentation still sucks. Won't complain, as I don't have time to work on this either :-/ CU Matthias -- Matthias Hopf <mhopf@suse.de>, SuSE labs, Zimmer 3.2.06, Tel. 74053-715
participants (6)
-
Henne Vogelsang
-
Klaas Freitag
-
Marcus Rueckert
-
Marcus Rueckert
-
Matthias Hopf
-
Mauricio Teixeira (netmask)