Mailinglist Archive: opensuse-buildservice (349 mails)

< Previous Next >
Re: [opensuse-buildservice] %debug_package issues with Suse only
  • From: "Dr. Peter Poeml" <poeml@xxxxxxx>
  • Date: Thu, 29 Nov 2007 12:54:11 +0100
  • Message-id: <20071129115411.GA2707@xxxxxxx>
On Wed, Oct 31, 2007 at 09:10:32PM +0100, mrdocs@xxxxxxxxxxxx wrote:

I have hit a weird issue when enabling %debug_package when wrapped
inside something like this:

%if 0%{?suse_version}
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?

Thoughts ?


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 @@
BuildRoot: %{_tmppath}/%{name}-%{version}

+%if 0%{?suse_version}

GSview is a graphical interface for Ghostscript.

"WARNING: This bug is visible to non-employees. Please be respectful!"

SUSE LINUX Products GmbH
Research & Development
< Previous Next >
This Thread
  • No further messages