[opensuse-buildservice] %debug_package issues with Suse only
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=gsview 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 ? Thanks, Peter --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Wed, Oct 31, 2007 at 09:10:32PM +0100, mrdocs@scribus.info wrote:
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=gsview
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 ?
Thanks, Peter
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 @@ %endif BuildRoot: %{_tmppath}/%{name}-%{version} +%if 0%{?suse_version} +%debug_package +%endif %description GSview is a graphical interface for Ghostscript. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
participants (2)
-
Dr. Peter Poeml
-
mrdocs@scribus.info