pkgsrc/mk
jlam b6b8313c8a Instead of canonicalizing all ${DEPOTBASE}/* into ${LOCALBASE}, don't
do it for rpath specifications, e.g. -Wl,-R/dir, -Wl,-rpath,/dir, etc.
This lets the depot directory for a package, in addition to the usual
/usr/pkg/lib, to be added to the rpath of a program or shared library
of an "overwrite" package.  Now, if the package instance in the
default view is forcibly removed, then shared library references will
still resolve to the existing shared libraries in the depot directory.

In the following example, I've built jpeg as a pkgviews package, and
tiff as an "overwrite" package:

% ldd /usr/pkg/lib/libtiff.so
/usr/pkg/lib/libtiff.so:
         -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62
         -lz.0 => /usr/lib/libz.so.0
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
% pkg_delete -f jpeg-6b
pkg_delete: package `jpeg-6b' is required by other packages:
        tiff-3.5.7nb1
% ldd /usr/pkg/lib/libtiff.so
/usr/pkg/lib/libtiff.so:
         -ljpeg.62 => /usr/pkg/packages/jpeg-6b/lib/libjpeg.so.62
         -lz.0 => /usr/lib/libz.so.0
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0

The benefit here is that if the jpeg package is updated and also has
a bump in the major number of the shared lib, e.g. libjpeg.so.63.0,
then you can remove the old jpeg instance from the default view and
add the new jpeg package into the default view, and
/usr/pkg/lib/libtiff.so will _still_ resolve its libjpeg.so.62
reference.

Welcome to the power of Package Views!
2003-09-08 09:18:15 +00:00
..
buildlink2 Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
buildlink3 Instead of canonicalizing all ${DEPOTBASE}/* into ${LOCALBASE}, don't 2003-09-08 09:18:15 +00:00
bulk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
gnu-config Sync config.guess and config.sub to the latest. 2003-07-11 10:11:33 +00:00
install Package Makefiles should refer to PKG_SYSCONFBASEDIR instead of 2003-09-05 11:34:25 +00:00
scripts Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
apache.mk Add an apache.mk, similar to java-vm.mk and emacs.mk, that allows apache 2003-09-04 03:00:19 +00:00
autoconf.mk Sync with new autoconf213, automake14 packages and autoconf, automake updates. 2002-10-03 19:36:36 +00:00
automake.mk Move BUILD_USES_GETTEXT_M4 logic to automake.mk. 2002-10-07 21:47:49 +00:00
bsd.pkg.defaults.mk Suggest a good default value for RCD_SCRIPTS_DIR for pkgviews users. 2003-09-06 12:04:09 +00:00
bsd.pkg.install.mk Move RCD_SCRIPTS_DIR definition to bsd.pkg.defaults.mk. This implies that 2003-09-06 11:51:16 +00:00
bsd.pkg.mk Allow BUILD_VIEWS to be "yes" or "YES". 2003-09-08 01:13:02 +00:00
bsd.pkg.obsolete.mk * buildlink1 -> buildlink2 2002-09-23 08:45:40 +00:00
bsd.pkg.subdir.mk Also descend to sub directories for make lint 2003-09-06 11:28:13 +00:00
bsd.prefs.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
Darwin.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
Darwin.x11.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
defs.Darwin.mk Use LOCALBASE instead of ZOULARISBASE 2003-09-05 13:54:13 +00:00
defs.FreeBSD.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
defs.IRIX.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
defs.Linux.mk Use LOCALBASE instead of ZOULARISBASE 2003-09-05 13:54:13 +00:00
defs.NetBSD.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
defs.OpenBSD.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
defs.SunOS.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
emacs.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
endian.mk make this work on Solaris by using ${EGREP} instead of ${GREP}. 2002-08-14 02:38:25 +00:00
fonts.mk Use ${.CURDIR} when referencing install/deinstall scripts. 2003-02-18 17:51:08 +00:00
FreeBSD.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
gcc.buildlink2.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
ghostscript.mk Have USE_IMAKE imply USE_X11BASE imply USE_X11. Now we can just check if 2002-10-22 22:54:07 +00:00
IRIX.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
IRIX.x11.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
java-vm.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
Linux.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
Linux.x11.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
motif.buildlink2.mk Whitespace police. 2003-03-25 13:42:16 +00:00
NetBSD.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
NetBSD.x11.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
OpenBSD.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
OpenBSD.x11.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
ossaudio.buildlink2.mk echo -> ${ECHO} 2003-03-16 11:12:02 +00:00
pthread.buildlink2.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
subst.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
SunOS.pkg.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
SunOS.x11.dist Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
texinfo.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
tools.mk Merge pkgviews-mk branch into the HEAD by running: 2003-09-02 06:59:37 +00:00
xaw.buildlink2.mk Initiate support for X11 apps under IRIX. 2003-06-12 15:27:08 +00:00