]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust recognize-shared-libraries regex to avoid matching symlinks to
authorcperciva <cperciva@FreeBSD.org>
Tue, 25 Mar 2008 11:31:16 +0000 (11:31 +0000)
committercperciva <cperciva@FreeBSD.org>
Tue, 25 Mar 2008 11:31:16 +0000 (11:31 +0000)
commite212b28cc6ee26e864b6342ab5858510c28de531
tree5b4da64bd06220a8922e6407c7a2c6204fbca661
parente2f2131976c50e61068074f9b8e58763dfa61d8b
Adjust recognize-shared-libraries regex to avoid matching symlinks to
shared libraries.

This fixes a problem which resulted in 6.x->7.x upgrades having the
/usr/lib/libpthread.so -> libthr.so symlink missing; what happened was
that the old libpthread.so symlink pointed to /lib/libpthread.so.2 --
which matched the "/lib/*\.so\.[0-9]+" regex -- but the new symlink
didn't, so FreeBSD Update got confused and deleted the symlink as part
of its "remove old shared libraries" step.

To recreate the symlink (which I understand is necessary for ports like
KDE to build) on a 7.x system which FreeBSD Update upgraded from 6.x:
# ln -s libthr.so /usr/lib/libpthread.so

Reported by: Dmitry RCL Rekman
Help diagnosing bug from: kris
MFC after: 7 days
usr.sbin/freebsd-update/freebsd-update.sh