ltib
[Top][All Lists]
Advanced

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

[Ltib] Ubuntu 12.04 vs 10.04 libc.so libpthread.so absolute path removal


From: Sale, Devin M
Subject: [Ltib] Ubuntu 12.04 vs 10.04 libc.so libpthread.so absolute path removal
Date: Thu, 30 Aug 2012 19:57:29 +0000

Hi,

In the base_libs.spec there's this little bit of perl code.

# remove absolute paths from text search files (if they exist)
perl -w -e '
    @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
    exit(0) unless @ARGV;
    $^I = ".bak";
    while(<>) {
        s,[\S/]+/,,g if m,^GROUP,;
        print;
    }
    ' $RPM_BUILD_ROOT/%{pfx}/lib/libc.so \
      $RPM_BUILD_ROOT/%{pfx}/lib/libpthread.so \
      $RPM_BUILD_ROOT/%{pfx}/usr/lib/libc.so \
      $RPM_BUILD_ROOT/%{pfx}/usr/lib/libpthread.so

which does what the comment says and leaves a libc.so.bak and lipthread.so.bak 
in the rootfs.

When moving LTIB from Ubuntu 10.04 to 12.04 the *.bak files go away because the 
file utility changed like this:
On 10.04:
address@hidden:~$ file libc.so.bak
libc.so.bak: ASCII C program text

On 12.04:
dzq92s:~$ file libc.so
libc.so: ASCII English text


Why remove the absolute paths?

What is the ramification of not doing this?

Should the *.bak files be left in the rootfs?

Regards,
Devin
****************************************************************************************
 Note: If the reader of this message is not the intended recipient, or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the message 
and deleting it from your computer. Thank you. 
****************************************************************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]