Subject: running ldconfig after package install
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/25/2003 09:34:54
I see that some packages, like mail/faces and x11/xview-lib, run ldconfig
at install (and uninstall).
The Packages.txt mentions about using libtool for doing this.
And I see the do-shlib-handling target does:
${ECHO} "@exec ${LDCONFIG}" >> ${PLIST};
Is this documented somewhere?
I have
PKG_DEVELOPER= yes
so check-shlibs target complained about gcc3 and my XFree86 installs.
For example:
$ /usr/sbin/pkg_info -qL gcc | grep -h '/lib/lib.*.o' | xargs ldd
2>/dev/null |
egrep ':|not found' | egrep -B1 'not found'
/usr/gcc-3.2.1/lib/libgcj.so:
libgcc_s.so.1 => not found
/usr/gcc-3.2.1/lib/libgcj.so.3:
libgcc_s.so.1 => not found
/usr/gcc-3.2.1/lib/libgcj.so.3.0.0:
libgcc_s.so.1 => not found
--
/usr/gcc-3.2.1/lib/libstdc++.so:
libgcc_s.so.1 => not found
/usr/gcc-3.2.1/lib/libstdc++.so.5:
libgcc_s.so.1 => not found
/usr/gcc-3.2.1/lib/libstdc++.so.5.0.1:
libgcc_s.so.1 => not found
And with my x11/XFree86:
/usr/X11R6/bin/bdftopcf: libXfont.so.1 => not found
/usr/X11R6/bin/mkfontdir: libXfont.so.1 => not found
/usr/X11R6/bin/x11perf: libfreetype.so.6 => not found
libfreetype.so.6 => not found
/usr/X11R6/bin/xditview: libfreetype.so.6 => not found
libfreetype.so.6 => not found
/usr/X11R6/bin/xfs: libXfont.so.1 => not found
... and more ...
And xterm couldn't run because of libfreetype.so.6 => not found.
I was able to fix the above simply by running ldconfig.
But how do I get pkgsrc to automate this for me?
Thanks,
Jeremy C. Reed
http://bsd.reedmedia.net/