Am Mittwoch 31 Oktober 2007 schrieb [EMAIL PROTECTED]:
> Sent originally to -buildservice by mistake....
>
> Hi,
>
> I have hit a weird issue when enabling %debug_package when wrapped
> inside something like this:
>
> %if 0%{?suse_version}
> %debug_package
> Build Requires: blah...
> %endif
>
> If %debug_package is enabled, the install portion fails on all Suse
> versions by seemingly unsetting RPM_BUILD_ROOT so the install part tries
>  to install into /usr not /var/tmp/package/usr
>
> Package in question is:
> https://build.opensuse.org/package/show?project=home%3Amrdocs&package=gsvie
>w
>
> Now Mandriva seems to automagically enable debug packages, so there is
> no need to enable it in the spec file.
>
> This package has reliably built before on OBS on all rpm distros and
> arches.
>
> Is this a subtle difference in the rpm versions from FC. Mdk and Suse ?
> or could this be an OBS issue?
>
> Thoughts ?
%debug_package expands to a full package. So you can't put that macro
in all places in the spec file, but namely as subpackage of it's own.
So your BuildRequires line following makes me think you put it in between the
main package declaration - this will break in funny ways.

Put it right before the %prep line, there it should do less harm. I thought
OBS got a "build debuginfo" flag per project lately, but I never tried it.

Greetings, Stephan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to