diff options
author | jlam <jlam> | 2007-08-21 22:49:02 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-08-21 22:49:02 +0000 |
commit | ab694111ad4413494cc301a737b52c16afbbdd86 (patch) | |
tree | c963fbe349aa6c3a854fc36e80c1b467ee94113c /emulators/compat13/emulator.mk | |
parent | 333906725cd0e72024ceb197e8c81fd1c6bff2d2 (diff) | |
download | pkgsrc-ab694111ad4413494cc301a737b52c16afbbdd86.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 'emulators/compat13/emulator.mk')
-rw-r--r-- | emulators/compat13/emulator.mk | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/emulators/compat13/emulator.mk b/emulators/compat13/emulator.mk new file mode 100644 index 00000000000..7a5dc8f8f57 --- /dev/null +++ b/emulators/compat13/emulator.mk @@ -0,0 +1,47 @@ +# $NetBSD: emulator.mk,v 1.1 2007/08/21 22:49:07 jlam Exp $ +# +# This file is included by netbsd-compat.mk in the emulator framework. +# +# Variables set by this file: +# +# EMUL_DISTRO +# The NetBSD distribution used to provide the files. +# +# EMUL_EXEC_FMT +# The executable format of the emulated operating system. +# +# EMULSUBDIR +# Path relative to ${PREFIX} where the files and directories are +# located, e.g. emul/aout. +# +# DEPENDS_${EMUL_DISTRO}.* +# A table that maps "modules" to NetBSD package dependencies. +# + +EMUL_DISTRO= netbsd-1.3 + +# i386 and sparc switched from a.out to ELF post-1.4. +# arm, m68k and vax switched from a.out to ELF post-1.5. +# ns32k never switched from a.out. +# +.if (${EMUL_ARCH} == "arm") || (${EMUL_ARCH} == "i386") || \ + (${EMUL_ARCH} == "m68k") || (${EMUL_ARCH} == "ns32k") || \ + (${EMUL_ARCH} == "sparc") || (${EMUL_ARCH} == "vax") +EMUL_EXEC_FMT= a.out +.else +EMUL_EXEC_FMT= ELF +.endif + +.if (${NATIVE_EXEC_FMT} == "ELF") && (${EMUL_EXEC_FMT} == "a.out") +EMULSUBDIR= emul/aout +OPSYS_EMULDIR= ${_OPSYS_EMULDIR.aout} +.else +EMULSUBDIR= emul/netbsd +OPSYS_EMULDIR= ${_OPSYS_EMULDIR.netbsd} +.endif + +# We need a dependency only for NetBSD>1.3.x. +.if empty(OS_VERSION:M0.[0-9]*) && empty(OS_VERSION:M1.[0-2]*) && \ + empty(OS_VERSION:M1.3) && empty(OS_VERSION:M1.3.*) +DEPENDS_netbsd-1.3.base?= compat13>=1.3:../../emulators/compat13 +.endif |