[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpmorg-list
Subject:    Re: quick FAQ
From:       "James Olin Oden" <james.oden () gmail ! com>
Date:       2006-12-20 14:19:58
Message-ID: ac921f990612200619h1762fcb1u3f1ab6e1205de4a5 () mail ! gmail ! com
[Download RAW message or body]

On 12/19/06, Joe Landman <landman@scalableinformatics.com> wrote:
> How do I stop rpmbuild from stripping a binary file?  I am building a
> kernel module to put into an RPM.  The module works fine and is
> insmod'able outside of the rpm package.  During packaging it appears to
> be stripped of its symbols which leads to a module format error when
> insmod'ing it.  The module in the build tree is fine, the one the binary
>  rpm deposits into the requisite location on the machine is not.
>
> Any hints/clues?
>
If you don't care about the man page compression and all that just add
the following to the end of %install:

    exit 0

A hack, but a simple one.  It works because rpm tacks onto the end of
your %install scriptlet the contents of %__spec_install_post.  The
exit just short circuits this.

Cheers...james

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic