summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-21 22:49:02 +0000
committerjlam <jlam@pkgsrc.org>2007-08-21 22:49:02 +0000
commitffd0fa8226d0808ce1982c1aede01b2328403b8f (patch)
treec963fbe349aa6c3a854fc36e80c1b467ee94113c /mk/platform
parentf7addad279e6d9bddee039abf2c4e73c32086181 (diff)
downloadpkgsrc-ffd0fa8226d0808ce1982c1aede01b2328403b8f.tar.gz
* Support netbsd-* as a valid platform in EMUL_PLATFORMS. Use the
pkgsrc/emulator/compat* and pkgsrc/emulator/netbsd32_compat* packages to provide the necessary shared libraries to run dynamically linked NetBSD binaries from the days of yore. * Add some additional compat* packages for completeness: compat15, compat20, compat30 * Modify the compat* packages so that "compatNM" only provides files that aren't in "NetBSD-N.(M+1)". For example, compat12 only provides files that don't exist in NetBSD-1.3.x, compat13 only provides files that don't exist in NetBSD-1.4.x, etc. As a result, if you are running NetBSD-3.0/alpha and want to run a 1.3 dynamically linked binary, there is an automatic dependency chain that causes the following packages to be installed: compat13, compat14, compat15, compat16, compat20 There are some deviations from this dependency chain on platforms that have changed executable formats, e.g. i386, m68, sparc, etc. However, in general pkgsrc will require that you have the necessary COMPAT_* options in your kernel to match the installed compat* packages. This restriction is an artificial one imposed by pkgsrc, but allows for a single set of distfiles to be used on all versions of NetBSD. * Provide compat* package support for every supported architecture of NetBSD. Verily, it is now possible to run 1.2 binaries on NetBSD-1.5.3/pc532 by installing the compat12 package from pkgsrc. Rejoice, one and all! * The netbsd32_compat* packages mirror the corresponding compat* packages for use by sparc64 and x86_64 to allow running 32-bit binaries with COMPAT_NETBSD32 kernel support. The "extras" packages supply the additional shared libraries from the corresponding release of NetBSD so that the set of files in /emul/netbsd32 will be complete. * pkgsrc/emulators/compat_netbsd contains infrastructure files shared by all of the compat* packages.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/NetBSD.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
index 96f3c4f165a..9839a705640 100644
--- a/mk/platform/NetBSD.mk
+++ b/mk/platform/NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.24 2007/08/01 15:17:56 jlam Exp $
+# $NetBSD: NetBSD.mk,v 1.25 2007/08/21 22:49:33 jlam Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -61,12 +61,15 @@ IMAKE_GAMEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}6
IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
IMAKE_MANINSTALL?= maninstall catinstall
+_OPSYS_EMULDIR.aout= /emul/aout
_OPSYS_EMULDIR.darwin= /emul/darwin
_OPSYS_EMULDIR.freebsd= /emul/freebsd
_OPSYS_EMULDIR.hpux= /emul/hpux
_OPSYS_EMULDIR.irix= /emul/irix
_OPSYS_EMULDIR.linux= /emul/linux
_OPSYS_EMULDIR.linux32= /emul/linux32
+_OPSYS_EMULDIR.netbsd= # empty
+_OPSYS_EMULDIR.netbsd32= /emul/netbsd32
_OPSYS_EMULDIR.osf1= /emul/osf1
_OPSYS_EMULDIR.solaris= /emul/svr4
_OPSYS_EMULDIR.solaris32= /emul/svr4_32