Mailinglist Archive: opensuse-buildservice (349 mails)

< Previous Next >
Re: [opensuse-buildservice] Stripping debug info into a separate rpm?
  • From: Ben Martin <monkeyiq@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Tue, 27 Nov 2007 20:27:45 +1000
  • Message-id: <1196159265.13279.62.camel@xxxxxxxxxxxxxxx>
On Tue, 2007-11-27 at 10:43 +0100, Michal Marek wrote:
On Sunday 25 November 2007 19:05:51 Ben Martin wrote:
This seems to work for F7,F8 and opensuse 10.3.

I already had at the top of the specfile;
%define name foo

Not needed.

I had that in there already because the %{name} is used many times in
the header of the package and I don't tend to like s/foo/bar/g when I
use my to start packaging a new tarball. Not strictly
needed of course.

Directly adding the debuginfo macro expansion after my own package
metadata at the top of the spec...
%package debuginfo
Summary: Debug information for package %{name}

You can just insert %debug_package, which does everything for you.

I did at first try this method, hoping it would just work. I'm still all
for getting it to work properly rather than embedding the contents of
the debug macro into the specfile. I just moved my %{name} definition
and gave it another shot using %debug_package after a blank line after
my %description.

Having %__debug_install_post in place doesn't seem to change the outcome
when just using %debug_package.

On Fedora 8:
error: Installed (but unpackaged) file(s) found:

On opensuse 10.3:
error: Installed (but unpackaged) file(s) found:

With the nastier brute force method I was using it would package on both
package = ~/fuselagefs

< Previous Next >
Follow Ups