[opensuse-buildservice] Building debug package failed for Mandriva 2009.1
Dear buildservice maintainers After adding the %debug_package macro to my spec file, I get the following error for Mandriva 2009.1 builds: + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:nsendetzky:OpenDBX/Mandriva_2009.1/26189cf80595b3f0b454bd9b8960d0a2- OpenDBX' /home/abuild/rpmbuild/SOURCES/opendbx.spec error: Package already exists: %package debug All other builds succeed, even Mandriva 2008. Thanks Norbert -- OpenPGP public key http://www.linuxnetworks.de/norbert.pubkey.asc
Dear buildservice maintainers Did you had the time to look into the issue described below? Best regards, Norbert On Thu October 1 2009 18:06:16 Norbert Sendetzky wrote:
Dear buildservice maintainers
After adding the %debug_package macro to my spec file, I get the following error for Mandriva 2009.1 builds:
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:nsendetzky:OpenDBX/Mandriva_2009.1/26189cf805 95b3f0b454bd9b8960d0a2- OpenDBX' /home/abuild/rpmbuild/SOURCES/opendbx.spec error: Package already exists: %package debug
All other builds succeed, even Mandriva 2008.
Thanks
Norbert
-- OpenPGP public key http://www.linuxnetworks.de/norbert.pubkey.asc
On 2009-10-01 18:06:16 +0200, Norbert Sendetzky wrote:
After adding the %debug_package macro to my spec file, I get the following error for Mandriva 2009.1 builds:
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:nsendetzky:OpenDBX/Mandriva_2009.1/26189cf80595b3f0b454bd9b8960d0a2- OpenDBX' /home/abuild/rpmbuild/SOURCES/opendbx.spec error: Package already exists: %package debug
If I remember correctly Mandriva builds a debug package by default (so the %debug_package macro is inserted+expanded twice). Either you add some "%if 0%{?mandriva_version} ..." construct to your spec file or you let the buildservice do this work, e.g. add the following to your project or package meta: osc meta prj <your project> -e <debuginfo> <enable /> <disable repository="<name of your mandriva repo>" /> </debuginfo> and afterwards remove %debug_package from your spec file (the buildservice adds this macro to your spec file for all repositories except mandriva). Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi Marcus
obs://build.opensuse.org/home:nsendetzky:OpenDBX/Mandriva_2009.1/26189cf8 0595b3f0b454bd9b8960d0a2- OpenDBX' /home/abuild/rpmbuild/SOURCES/opendbx.spec error: Package already exists: %package debug
If I remember correctly Mandriva builds a debug package by default (so the %debug_package macro is inserted+expanded twice). Either you add some "%if 0%{?mandriva_version} ..." construct to your spec file or you let the buildservice do this work, e.g. add the following to your project or package meta:
I'm using the web interface only so I think I will be forced to add the %if around the %debug_package macro if OBS doesn't work around and unify this to be in line with the other distibutions. Do you know where I can find documentation abount the condition string I need to insert? Thanks Norbert -- OpenPGP public key http://www.linuxnetworks.de/norbert.pubkey.asc
participants (2)
-
Marcus Hüwe
-
Norbert Sendetzky