Safe to delete old files in /usr/lib?

Markus Edemalm markus at edemalm.se
Tue Jan 5 19:34:54 UTC 2016


>>>>>> I added NO_PROFILE=true to /etc/make.conf a while back. Is that relevant?
>>>>> 
>>>>> Hmmm... I always thought that would be the default (no profiling libs
>>>>> being built and installed). But according to "man src.conf", the
>>>>> setting's name is WITHOUT_PROFILE, not NO_PROFILE.
> 
> I removed NO_PROFILE=true from /etc/make.conf and rebuilt everything today.
> Now I got the _p.a files installed. But no .a files. For each lib in /usr/lib I have, for example:
> 
> -r--r--r--   1 root  wheel     29242 Dec  2  2014 librt.a
> lrwxr-xr-x   1 root  wheel        10 Jan  5 16:50 librt.so@ -> librt.so.1
> -r--r--r--   1 root  wheel     23832 Jan  5 16:50 librt.so.1
> -r--r--r--   1 root  wheel     32202 Jan  5 16:50 librt_p.a
> 
> -r--r--r--   1 root  wheel     30550 Dec  2  2014 libpanelw.a
> lrwxr-xr-x   1 root  wheel        14 Jan  5 16:50 libpanelw.so@ -> libpanelw.so.5
> -r--r--r--   1 root  wheel     11840 Jan  5 16:50 libpanelw.so.5
> -r--r--r--   1 root  wheel     31678 Jan  5 16:50 libpanelw_p.a
> 
> See the dates? Why do I get fresh _p.a files and no .a files?
> 

Update. I moved all *.a files to /usr/lib/old and did:

# cd /usr/src/lib
# make install

Now, everything including .a files installs and get fresh dates. Following the example above:

-r--r--r--  1 root  wheel  29242 Jan  5 18:46 librt.a
lrwxr-xr-x  1 root  wheel     10 Jan  5 18:46 librt.so@ -> librt.so.1
-r--r--r--  1 root  wheel  23832 Jan  5 18:46 librt.so.1
-r--r--r--  1 root  wheel  32202 Jan  5 18:46 librt_p.a

-r--r--r--  1 root  wheel  30550 Jan  5 18:46 libpanelw.a
lrwxr-xr-x  1 root  wheel     14 Jan  5 18:46 libpanelw.so@ -> libpanelw.so.5
-r--r--r--  1 root  wheel  11840 Jan  5 18:46 libpanelw.so.5
-r--r--r--  1 root  wheel  31678 Jan  5 18:46 libpanelw_p.a

So, It looks like the installer ignores existing files if they have the same size?

Just curious what’s going on.

/ME



More information about the freebsd-questions mailing list