Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Suppressing debuginfo build on RH9

30 views
Skip to first unread message

Ian Pilcher

unread,
Apr 2, 2003, 12:13:44 PM4/2/03
to
I am trying to rebuild the driver for my 802.11b card on Red Hat 9 (SPEC
file attached). The build fails with the following error message:

Could not open %files file
/usr/src/redhat/BUILD/mpi350-2.0/debugfiles.list: No such file
or directory

To which my response is a resounding "no sh@#", since no such file
exists.

How can I prevent RPM from trying to build this unwanted package?

Thanks!
--
========================================================================
Ian Pilcher pilc...@attbi.com
========================================================================

mpi350.spec

J.O. Aho

unread,
Apr 2, 2003, 12:48:12 PM4/2/03
to
Ian Pilcher wrote:
> I am trying to rebuild the driver for my 802.11b card on Red Hat 9 (SPEC
> file attached). The build fails with the following error message:
>
> Could not open %files file
> /usr/src/redhat/BUILD/mpi350-2.0/debugfiles.list: No such file
> or directory
>
> To which my response is a resounding "no sh@#", since no such file
> exists.
>
> How can I prevent RPM from trying to build this unwanted package?

Looking at the spec file, it don't seem to look for the file in question, I
would start to look at the scripts that are part of the tarball. In worst case
you could make an empty file:

...
tar -C howto -xzf %{SOURCE2}
touch debugfiles.list
%patch0 -p0
...

//Aho

Ian Pilcher

unread,
Apr 2, 2003, 1:28:43 PM4/2/03
to
J.O. Aho wrote:
>
> Looking at the spec file, it don't seem to look for the file in
> question, I would start to look at the scripts that are part of the
> tarball.

???

I know that the file in question doesn't exist. RPM is doing this
"automagically" for some reason.

> In worst case you could make an empty file:

I suppose that's a possible workaround. I want to know how to turn off
this new, unwanted (in this case), behavior.

Matthew Miller

unread,
Apr 2, 2003, 1:39:13 PM4/2/03
to
Ian Pilcher <pilc...@attbi.com> wrote:
>I know that the file in question doesn't exist. RPM is doing this
>"automagically" for some reason.

In your ~/.rpmmacros:

# don't build a debug package
%debug_package %{nil}


--
Matthew Miller mat...@mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>

Ian Pilcher

unread,
Apr 2, 2003, 3:07:54 PM4/2/03
to
Matthew Miller wrote:
>
> In your ~/.rpmmacros:
>
> # don't build a debug package
> %debug_package %{nil}
>

Thanks!

Putting

%define debug_package %{nil}

in the SPEC file seems to work too.

0 new messages