Originally posted by: Edward Davignon
Error while applying bos.adt.prof 7.2.3.0:
rmdir(/usr/lib/profiled): File exists
sysck: 3001-017 Errors were detected validating the files
for package bos.adt.prof.
installp: The installation has FAILED for the "usr" part
of the following filesets:
bos.adt.prof 7.2.3.0
[...]
$ lslpp -w /usr/lib/profiled
$ lslpp -w $(find /usr/lib/profiled|sort)
$ rpm -qf /usr/lib/profiled
cdrtools-devel-3.01-2.ppc
$ rpm -qf $(find /usr/lib/profiled|sort) | uniq -c
15 cdrtools-devel-3.01-2.ppc
$
Using the installp preview option for bos.adt.prof does not detect the existence of /usr/lib/profiled a problem.
This can be worked around like this:
yum erase cdrtools-devel
Install bos.adt.prof
yum install cdrtools-devel
However,
Uninstall bos.adt.prof removes /usr/lib/profiled
Therefore,
$ rpm -V cdrtools-devel
missing /usr/lib/profiled
missing /usr/lib/profiled/libcdrdeflt.a
missing /usr/lib/profiled/libdeflt.a
missing /usr/lib/profiled/libedc_ecc.a
missing /usr/lib/profiled/libedc_ecc_dec.a
missing /usr/lib/profiled/libfile.a
missing /usr/lib/profiled/libfind.a
missing /usr/lib/profiled/libhfs.a
missing /usr/lib/profiled/libmdigest.a
missing /usr/lib/profiled/libparanoia.a
missing /usr/lib/profiled/librscg.a
missing /usr/lib/profiled/libscg.a
missing /usr/lib/profiled/libscgcmd.a
missing /usr/lib/profiled/libschily.a
missing /usr/lib/profiled/libsiconv.a
$ (cd /usr/ccs/lib/libp && ls -ld $(rpm -V cdrtools-devel|cut -d/ -f5) )
lrwxrwxrwx 1 root system 48 Sep 6 11:46 libcdrdeflt.a -> ../../../opt/freeware/lib/profiled/libcdrdeflt.a
lrwxrwxrwx 1 root system 45 Sep 6 11:46 libdeflt.a -> ../../../opt/freeware/lib/profiled/libdeflt.a
lrwxrwxrwx 1 root system 47 Sep 6 11:46 libedc_ecc.a -> ../../../opt/freeware/lib/profiled/libedc_ecc.a
lrwxrwxrwx 1 root system 51 Sep 6 11:46 libedc_ecc_dec.a -> ../../../opt/freeware/lib/profiled/libedc_ecc_dec.a
lrwxrwxrwx 1 root system 44 Sep 6 11:46 libfile.a -> ../../../opt/freeware/lib/profiled/libfile.a
lrwxrwxrwx 1 root system 44 Sep 6 11:46 libfind.a -> ../../../opt/freeware/lib/profiled/libfind.a
lrwxrwxrwx 1 root system 43 Sep 6 11:46 libhfs.a -> ../../../opt/freeware/lib/profiled/libhfs.a
lrwxrwxrwx 1 root system 47 Sep 6 11:46 libmdigest.a -> ../../../opt/freeware/lib/profiled/libmdigest.a
lrwxrwxrwx 1 root system 48 Sep 6 11:46 libparanoia.a -> ../../../opt/freeware/lib/profiled/libparanoia.a
lrwxrwxrwx 1 root system 44 Sep 6 11:46 librscg.a -> ../../../opt/freeware/lib/profiled/librscg.a
lrwxrwxrwx 1 root system 43 Sep 6 11:46 libscg.a -> ../../../opt/freeware/lib/profiled/libscg.a
lrwxrwxrwx 1 root system 46 Sep 6 11:46 libscgcmd.a -> ../../../opt/freeware/lib/profiled/libscgcmd.a
lrwxrwxrwx 1 root system 46 Sep 6 11:46 libschily.a -> ../../../opt/freeware/lib/profiled/libschily.a
lrwxrwxrwx 1 root system 46 Sep 6 11:46 libsiconv.a -> ../../../opt/freeware/lib/profiled/libsiconv.a
To make matters more interesting,
bos.adt.prof creates /usr/lib/profiled as symlink to /usr/ccs/lib/libp
The cdrtools-devel RPM package contains /usr/lib/profiled as a directory, but will follow the symlink if it exists.
The cdrtools-devel RPM package contains files under /usr/lib64/profiled, /opt/freeware/lib/profiled, and /opt/freeware/lib64/profiled; but it does not contain a directory or symlink for these paths.
Therefore,
Uninstall bos.adt.prof
yum erase cdrtools-devel
Results in orphaned files.
$ sudo yum erase cdrtools-devel
Loaded plugins: changelog, downloadonly
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package cdrtools-devel.ppc 3:3.01-2 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================
Removing:
cdrtools-devel ppc 3:3.01-2 @AIX_Toolbox 5.4 M
Transaction Summary
===================================================================================================================================
Remove 1 Package
Installed size: 5.4 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : 3:cdrtools-devel-3.01-2.ppc 1/1
warning: file /usr/lib/profiled/libsiconv.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libschily.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libscgcmd.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libscg.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/librscg.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libparanoia.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libmdigest.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libhfs.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libfind.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libfile.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libedc_ecc_dec.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libedc_ecc.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libdeflt.a: remove failed: No such file or directory
warning: file /usr/lib/profiled/libcdrdeflt.a: remove failed: No such file or directory
warning: file /usr/lib/profiled: remove failed: No such file or directory
Removed:
cdrtools-devel.ppc 3:3.01-2
Complete!
$ (cd /usr/ccs/lib/libp && ls -ld libcdrdeflt.a libdeflt.a libedc_ecc.a libedc_ecc_dec.a libfile.a libfind.a libhfs.a libmdigest.a libparanoia.a librscg.a libscg.a libscgcmd.a libschily.a libsiconv.a )
lrwxrwxrwx 1 root system 48 Sep 6 11:46 libcdrdeflt.a -> ../../../opt/freeware/lib/profiled/libcdrdeflt.a
lrwxrwxrwx 1 root system 45 Sep 6 11:46 libdeflt.a -> ../../../opt/freeware/lib/profiled/libdeflt.a
lrwxrwxrwx 1 root system 47 Sep 6 11:46 libedc_ecc.a -> ../../../opt/freeware/lib/profiled/libedc_ecc.a
lrwxrwxrwx 1 root system 51 Sep 6 11:46 libedc_ecc_dec.a -> ../../../opt/freeware/lib/profiled/libedc_ecc_dec.a
lrwxrwxrwx 1 root system 44 Sep 6 11:46 libfile.a -> ../../../opt/freeware/lib/profiled/libfile.a
lrwxrwxrwx 1 root system 44 Sep 6 11:46 libfind.a -> ../../../opt/freeware/lib/profiled/libfind.a
lrwxrwxrwx 1 root system 43 Sep 6 11:46 libhfs.a -> ../../../opt/freeware/lib/profiled/libhfs.a
lrwxrwxrwx 1 root system 47 Sep 6 11:46 libmdigest.a -> ../../../opt/freeware/lib/profiled/libmdigest.a
lrwxrwxrwx 1 root system 48 Sep 6 11:46 libparanoia.a -> ../../../opt/freeware/lib/profiled/libparanoia.a
lrwxrwxrwx 1 root system 44 Sep 6 11:46 librscg.a -> ../../../opt/freeware/lib/profiled/librscg.a
lrwxrwxrwx 1 root system 43 Sep 6 11:46 libscg.a -> ../../../opt/freeware/lib/profiled/libscg.a
lrwxrwxrwx 1 root system 46 Sep 6 11:46 libscgcmd.a -> ../../../opt/freeware/lib/profiled/libscgcmd.a
lrwxrwxrwx 1 root system 46 Sep 6 11:46 libschily.a -> ../../../opt/freeware/lib/profiled/libschily.a
lrwxrwxrwx 1 root system 46 Sep 6 11:46 libsiconv.a -> ../../../opt/freeware/lib/profiled/libsiconv.a
$