Re: Corrupted *.so files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-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

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux