I placed the line:
%define debug_package %{nil}
in my spec file and the --debuginfo packages do not get created. In
addition, the *.so files are no longer getting corrupted.
Thanks for the assistance.
From: "Erik Engstrom" <badmonkey37@xxxxxxxxxxx>
Reply-To: RPM Package Manager <rpm-list@xxxxxxxxxx>
To: rpm-list@xxxxxxxxxx
Subject: Re: Corrupted *.so files
Date: Tue, 08 Aug 2006 09:07:53 -0500
-debuginfo packages are being created. I don't need or use them. Is there
a way to turn off the creation of -debuginfo packages?
I'm off to try the readelf command as you suggested.
From: Jeff Johnson <n3npq.jbj@xxxxxxxxx>
Reply-To: RPM Package Manager <rpm-list@xxxxxxxxxx>
To: RPM Package Manager <rpm-list@xxxxxxxxxx>
Subject: Re: Corrupted *.so files
Date: Mon, 7 Aug 2006 19:37:32 -0400
On Aug 7, 2006, at 2:50 PM, Erik Engstrom wrote:
Hello -
I'm trying to build an RPM on a RedHat 9 system.
I have a bunch of files in a tar file (mylib.tgz) including multiple
*.so files. Some, but not all, of the *.so files get corrupted during
the %install section. When I do an 'll', the size of the file has
decreased.
Any idea what causes this or how I can fix it? I pasted a portion of my
spec file below.
Erik
IMPORTANT PARTS OF MY SPEC FILE:
define __os_install_post /usr/lib/rpm/brp-compress
%prep
%setup
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/local/lib
cp -pr %{_builddir}/%{name}-%{version}/mylib.tgz $RPM_BUILD_ROOT/
usr/local/lib
cd $RPM_BUILD_ROOT/usr/local/lib
tar -xvzf mylib.tgz
rm mylib.tgz
Are you trying to produce -debuginfo packages? If so, debugedit will
effectively strip ELF
libraries.
Verify what is happening by running readelf -a on some *.so file before
and after,
and then diff the output. The term "corruption" is perhaps way too
loosely applied here ;-)
There's no other mechanism I can think of, very few rpm scripts change
the contents of
files within $RPM_BUILD_ROOT.
73 de Jeff
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar ? get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list