Mailinglist Archive: opensuse-buildservice (248 mails)

< Previous Next >
Re: [opensuse-buildservice] Building debug package failed for Mandriva 2009.1
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Wed, 7 Oct 2009 12:20:33 +0200
  • Message-id: <20091007102033.GA3426@xxxxxxxxxxxxxxxxxxxxxx>
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
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
<enable />
<disable repository="<name of your mandriva repo>" />

and afterwards remove %debug_package from your spec file (the buildservice
adds this macro to your spec file for all repositories except mandriva).

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups