On Wed, Oct 31, 2007 at 09:10:32PM +0100, mrdocs(a)scribus.info wrote:
I have hit a weird issue when enabling %debug_package when wrapped
inside something like this:
Build Requires: blah...
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:
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
Is this a subtle difference in the rpm versions from FC. Mdk and Suse ?
or could this be an OBS issue?
If you look at the way the %debug_package expands, it works by inserting
an additional subpackage. Therefore, what you need to write it _below_
all your BuildRequires and BuildRoot tags. Like this:
--- gsview.spec (revision 47)
+++ gsview.spec (working copy)
@@ -25,6 +25,9 @@
GSview is a graphical interface for Ghostscript.
"WARNING: This bug is visible to non-employees. Please be respectful!"
SUSE LINUX Products GmbH
Research & Development