head	1.4;
access;
symbols
	pkgsrc-2026Q1:1.4.0.20
	pkgsrc-2026Q1-base:1.4
	pkgsrc-2025Q4:1.4.0.18
	pkgsrc-2025Q4-base:1.4
	pkgsrc-2025Q3:1.4.0.16
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.4.0.14
	pkgsrc-2025Q2-base:1.4
	pkgsrc-2025Q1:1.4.0.12
	pkgsrc-2025Q1-base:1.4
	pkgsrc-2024Q4:1.4.0.10
	pkgsrc-2024Q4-base:1.4
	pkgsrc-2024Q3:1.4.0.8
	pkgsrc-2024Q3-base:1.4
	pkgsrc-2024Q2:1.4.0.6
	pkgsrc-2024Q2-base:1.4
	pkgsrc-2024Q1:1.4.0.4
	pkgsrc-2024Q1-base:1.4
	pkgsrc-2023Q4:1.4.0.2
	pkgsrc-2023Q4-base:1.4
	pkgsrc-2023Q3:1.3.0.14
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.12
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.3.0.10
	pkgsrc-2023Q1-base:1.3
	pkgsrc-2022Q4:1.3.0.8
	pkgsrc-2022Q4-base:1.3
	pkgsrc-2022Q3:1.3.0.6
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.3.0.4
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.2
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.2.0.72
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.70
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.68
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.66
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.64
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.62
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.58
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.38
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.60
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.56
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.54
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.52
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.50
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.48
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.2.0.46
	pkgsrc-2018Q2-base:1.2
	pkgsrc-2018Q1:1.2.0.44
	pkgsrc-2018Q1-base:1.2
	pkgsrc-2017Q4:1.2.0.42
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.40
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.2.0.36
	pkgsrc-2017Q2-base:1.2
	pkgsrc-2017Q1:1.2.0.34
	pkgsrc-2017Q1-base:1.2
	pkgsrc-2016Q4:1.2.0.32
	pkgsrc-2016Q4-base:1.2
	pkgsrc-2016Q3:1.2.0.30
	pkgsrc-2016Q3-base:1.2
	pkgsrc-2016Q2:1.2.0.28
	pkgsrc-2016Q2-base:1.2
	pkgsrc-2016Q1:1.2.0.26
	pkgsrc-2016Q1-base:1.2
	pkgsrc-2015Q4:1.2.0.24
	pkgsrc-2015Q4-base:1.2
	pkgsrc-2015Q3:1.2.0.22
	pkgsrc-2015Q3-base:1.2
	pkgsrc-2015Q2:1.2.0.20
	pkgsrc-2015Q2-base:1.2
	pkgsrc-2015Q1:1.2.0.18
	pkgsrc-2015Q1-base:1.2
	pkgsrc-2014Q4:1.2.0.16
	pkgsrc-2014Q4-base:1.2
	pkgsrc-2014Q3:1.2.0.14
	pkgsrc-2014Q3-base:1.2
	pkgsrc-2014Q2:1.2.0.12
	pkgsrc-2014Q2-base:1.2
	pkgsrc-2014Q1:1.2.0.10
	pkgsrc-2014Q1-base:1.2
	pkgsrc-2013Q4:1.2.0.8
	pkgsrc-2013Q4-base:1.2
	pkgsrc-2013Q3:1.2.0.6
	pkgsrc-2013Q3-base:1.2
	pkgsrc-2013Q2:1.2.0.4
	pkgsrc-2013Q2-base:1.2
	pkgsrc-2013Q1:1.2.0.2
	pkgsrc-2013Q1-base:1.2
	pkgsrc-2012Q4:1.1.0.48
	pkgsrc-2012Q4-base:1.1
	pkgsrc-2012Q3:1.1.0.46
	pkgsrc-2012Q3-base:1.1
	pkgsrc-2012Q2:1.1.0.44
	pkgsrc-2012Q2-base:1.1
	pkgsrc-2012Q1:1.1.0.42
	pkgsrc-2012Q1-base:1.1
	pkgsrc-2011Q4:1.1.0.40
	pkgsrc-2011Q4-base:1.1
	pkgsrc-2011Q3:1.1.0.38
	pkgsrc-2011Q3-base:1.1
	pkgsrc-2011Q2:1.1.0.36
	pkgsrc-2011Q2-base:1.1
	pkgsrc-2011Q1:1.1.0.34
	pkgsrc-2011Q1-base:1.1
	pkgsrc-2010Q4:1.1.0.32
	pkgsrc-2010Q4-base:1.1
	pkgsrc-2010Q3:1.1.0.30
	pkgsrc-2010Q3-base:1.1
	pkgsrc-2010Q2:1.1.0.28
	pkgsrc-2010Q2-base:1.1
	pkgsrc-2010Q1:1.1.0.26
	pkgsrc-2010Q1-base:1.1
	pkgsrc-2009Q4:1.1.0.24
	pkgsrc-2009Q4-base:1.1
	pkgsrc-2009Q3:1.1.0.22
	pkgsrc-2009Q3-base:1.1
	pkgsrc-2009Q2:1.1.0.20
	pkgsrc-2009Q2-base:1.1
	pkgsrc-2009Q1:1.1.0.18
	pkgsrc-2009Q1-base:1.1
	pkgsrc-2008Q4:1.1.0.16
	pkgsrc-2008Q4-base:1.1
	pkgsrc-2008Q3:1.1.0.14
	pkgsrc-2008Q3-base:1.1
	cube-native-xorg:1.1.0.12
	cube-native-xorg-base:1.1
	pkgsrc-2008Q2:1.1.0.10
	pkgsrc-2008Q2-base:1.1
	cwrapper:1.1.0.8
	pkgsrc-2008Q1:1.1.0.6
	pkgsrc-2008Q1-base:1.1
	pkgsrc-2007Q4:1.1.0.4
	pkgsrc-2007Q4-base:1.1
	pkgsrc-2007Q3:1.1.0.2
	pkgsrc-2007Q3-base:1.1;
locks; strict;
comment	@# @;


1.4
date	2023.10.03.14.53.52;	author abs;	state Exp;
branches;
next	1.3;
commitid	dNgJPN94RiRyRbHE;

1.3
date	2022.01.02.16.15.55;	author he;	state Exp;
branches
	1.3.14.1;
next	1.2;
commitid	O2N74OuAr6WQQ4nD;

1.2
date	2013.02.17.10.34.31;	author spz;	state Exp;
branches
	1.2.72.1;
next	1.1;

1.1
date	2007.08.21.22.49.24;	author jlam;	state Exp;
branches;
next	;

1.3.14.1
date	2023.10.12.15.30.50;	author bsiegert;	state Exp;
branches;
next	;
commitid	kEBGCcAAXcjNMlIE;

1.2.72.1
date	2022.01.02.17.51.08;	author bsiegert;	state Exp;
branches;
next	;
commitid	1FWDYPCLLV3ko5nD;


desc
@@


1.4
log
@Rebuild compat90 against netbsd-10_BETA

Now netbsd-9 binaries should work against netbsd-10 again. Also switch from
bz2 to xz distfiles (a significant space gain).

Tested by installing and running lxqt desktop using netbsd-9 binaries on
a netbsd-10 amd64 system

Bump PKGREVISION
@
text
@# $NetBSD: INSTALL.ELF,v 1.3 2022/01/02 16:15:55 he Exp $

# Generate a +ROOT_ACTIONS script that runs certain actions that require
# superuser privileges.
#
case "${STAGE},$1" in
UNPACK,|UNPACK,+ROOT_ACTIONS)
	${CAT} > ./+ROOT_ACTIONS << 'EOF'
#!@@SH@@
#
# +ROOT_ACTIONS - run actions requiring superuser privileges
#
# Usage: ./+ROOT_ACTIONS ADD|REMOVE [metadatadir]
#
# This script runs certain actions that require superuser privileges.
# If such privileges are not available, then simply output a message
# asking the user to run this script with the appropriate elevated
# privileges.
#
# Lines starting with "# SYMLINK: " are data read by this script that
# name the source paths and corresponding symlink that is managed by
# this script.  If the symlink path is relative, then it is taken to be
# relative to ${PKG_PREFIX}.  The source path is always unchanged.
#
#	# SYMLINK: /dev/rcd0a ${EMULSUBDIR}/dev/cdrom
#

CAT="@@CAT@@"
CHMOD="@@CHMOD@@"
DIRNAME="@@DIRNAME@@"
ECHO="@@ECHO@@"
ID="@@ID@@"
LN="@@LN@@"
MKDIR="@@MKDIR@@"
PWD_CMD="@@PWD_CMD@@"
RM="@@RM@@"
SED="@@SED@@"
TEST="@@TEST@@"

SELF=$0
ACTION=$1

CURDIR=`${PWD_CMD}`
PKG_METADATA_DIR="${2-${CURDIR}}"
: ${PKGNAME=${PKG_METADATA_DIR##*/}}
: ${PKG_PREFIX=@@PREFIX@@}

ROOT_ACTIONS_COOKIE="./+ROOT_ACTIONS_done"
EUID=`${ID} -u`

exitcode=0
case $ACTION,$EUID in
ADD,0)
	${ECHO} "" > ${ROOT_ACTIONS_COOKIE}
	${CHMOD} g+w ${ROOT_ACTIONS_COOKIE}
	${SED} -n "/^\# SYMLINK: /{s/^\# SYMLINK: //;p;}" ${SELF} |
	while read src dst; do
		case $src in
		"")	continue ;;
		[!/]*)	src="${PKG_PREFIX}/$src" ;;
		esac
		case $dst in
		"")	continue ;;
		[!/]*)	dst="${PKG_PREFIX}/$dst" ;;
		esac

		if ${TEST} ! -f "$dst"; then
			${ECHO} "${PKGNAME}: linking $dst -> $src"
                        # Could be needed for /usr/lib/lua/5.3/foo.so
                        ${MKDIR} -p "$(${DIRNAME} "$dst")"
			${LN} -fs "$src" "$dst"
		else
			${ECHO} "${PKGNAME}: $dst already exists"
		fi
	done
	;;

REMOVE,0)
	${SED} -n "/^\# SYMLINK: /{s/^\# SYMLINK: //;p;}" ${SELF} |
	while read src dst; do
		case $src in
		"")	continue ;;
		esac
		case $dst in
		"")	continue ;;
		[!/]*)	dst="${PKG_PREFIX}/$dst" ;;
		esac

		if ${TEST} -h "$dst"; then
			lsrc=$(readlink $dst)
			if [ "$lsrc" = ${PKG_PREFIX}/$src -o \
			     "$lsrc" = $src ]
			then
				${ECHO} "${PKGNAME}: removing $dst"
				${RM} -f "$dst"
			else
				${ECHO} "${PKGNAME}: mismatched symlink, skipping removal of $dst"
			fi
		fi
	done
	${RM} -f ${ROOT_ACTIONS_COOKIE}
	;;

ADD,*)
	if ${TEST} ! -f ${ROOT_ACTIONS_COOKIE}; then
		${CAT} << EOM
==============================================================================
Please run the following command with superuser privileges to complete
the installation of ${PKGNAME}:

    cd ${PKG_METADATA_DIR} && ${SELF} ADD

==============================================================================
EOM
	fi
	;;

REMOVE,*)
	if ${TEST} -f ${ROOT_ACTIONS_COOKIE}; then
		${CAT} << EOM
==============================================================================
Please run the following command with superuser privileges to begin the
removal of ${PKGNAME}:

    cd ${PKG_METADATA_DIR} && ${SELF} REMOVE

Then, please run pkg_delete(1) again to complete the removal of this
package.

==============================================================================
EOM
		exitcode=1
	fi
	;;
esac
exit $exitcode

EOF
	${SED} -n "/^\# SYMLINK: /p" ${SELF} >> ./+ROOT_ACTIONS
	${CHMOD} +x ./+ROOT_ACTIONS
	;;
esac

case "${STAGE}" in
POST-INSTALL)
	${TEST} ! -x ./+ROOT_ACTIONS ||
		./+ROOT_ACTIONS ADD ${PKG_METADATA_DIR}
	;;
esac
@


1.3
log
@Don't just remove a symlink on removal, ensure that it points
to an expected name before doing so.  Should prevent removal of
required symlinks which might otherwise happen when this package
by accident is instsalled and subsequently de-installed on
9.0 - 9.2 or other netbsd-9 variants.
Parts of fix for PR#56597.
@
text
@d1 1
a1 1
# $NetBSD: INSTALL.ELF,v 1.2 2013/02/17 10:34:31 spz Exp $
d30 1
d34 1
d69 2
@


1.3.14.1
log
@Pullup ticket #6807 - requested by abs
emulators/compat90: NetBSD 10 compatibility fix

Revisions pulled up:
- emulators/compat90/Makefile                                   1.4
- emulators/compat90/PLIST.aarch64                              1.2
- emulators/compat90/PLIST.alpha                                1.2
- emulators/compat90/PLIST.arm                                  1.2
- emulators/compat90/PLIST.earmeb                               1.2
- emulators/compat90/PLIST.earmv6hf                             1.2
- emulators/compat90/PLIST.earmv7hf                             1.2
- emulators/compat90/PLIST.earmv7hfeb                           1.2
- emulators/compat90/PLIST.i386                                 1.2
- emulators/compat90/PLIST.m68000                               1.2
- emulators/compat90/PLIST.m68k                                 1.2
- emulators/compat90/PLIST.mips64eb                             1.2
- emulators/compat90/PLIST.mips64el                             1.2
- emulators/compat90/PLIST.mipseb                               1.2
- emulators/compat90/PLIST.mipsel                               1.2
- emulators/compat90/PLIST.powerpc                              1.2
- emulators/compat90/PLIST.sh3eb                                1.2
- emulators/compat90/PLIST.sh3el                                1.2
- emulators/compat90/PLIST.sparc                                1.2
- emulators/compat90/PLIST.sparc64                              1.2
- emulators/compat90/PLIST.vax                                  1.2
- emulators/compat90/PLIST.x86_64                               1.2
- emulators/compat90/distinfo                                   1.5
- emulators/compat90/emulator.mk                                1.2
- emulators/compat_netbsd/INSTALL.ELF                           1.4

---
   Module Name:    pkgsrc
   Committed By:   abs
   Date:           Tue Oct  3 14:53:52 UTC 2023

   Modified Files:
           pkgsrc/emulators/compat90: Makefile PLIST.aarch64 PLIST.alpha PLIST.arm
               PLIST.earmeb PLIST.earmv6hf PLIST.earmv7hf PLIST.earmv7hfeb
               PLIST.i386 PLIST.m68000 PLIST.m68k PLIST.mips64eb PLIST.mips64el
               PLIST.mipseb PLIST.mipsel PLIST.powerpc PLIST.sh3eb PLIST.sh3el
               PLIST.sparc PLIST.sparc64 PLIST.vax PLIST.x86_64 distinfo
               emulator.mk
           pkgsrc/emulators/compat_netbsd: INSTALL.ELF

   Log Message:
   Rebuild compat90 against netbsd-10_BETA

   Now netbsd-9 binaries should work against netbsd-10 again. Also switch from
   bz2 to xz distfiles (a significant space gain).

   Tested by installing and running lxqt desktop using netbsd-9 binaries on
   a netbsd-10 amd64 system

   Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: INSTALL.ELF,v 1.3 2022/01/02 16:15:55 he Exp $
a29 1
DIRNAME="@@DIRNAME@@"
a32 1
MKDIR="@@MKDIR@@"
a66 2
                        # Could be needed for /usr/lib/lua/5.3/foo.so
                        ${MKDIR} -p "$(${DIRNAME} "$dst")"
@


1.2
log
@make it set links to the full path of the shared libs, not to a path
starting with emul/
@
text
@d1 1
a1 1
# $NetBSD: INSTALL.ELF,v 1.1 2007/08/21 22:49:24 jlam Exp $
d86 9
a94 2
			${ECHO} "${PKGNAME}: removing $dst"
			${RM} -f "$dst"
@


1.2.72.1
log
@Pullup ticket #6558 - requested by he
emulators/compat90: fix for PR pkg/56597

1) ensure that a symlink points the expected place before
   removing it on de-install (safety measure)
2) change ONLY_FOR_PLATFORMS so that 9.[012] and _STABLE
   variants are excluded; insist on 9.99.* or later.

Subsequently, adapt to pkglint warnings about EMUL_PLATFORMS
member names.

Revisions pulled up:
- emulators/compat90/Makefile                                   1.2-1.3
- emulators/compat90/PLIST.armeb                                deleted
- emulators/compat90/PLIST.armv6hf                              deleted
- emulators/compat90/PLIST.armv7hf                              deleted
- emulators/compat90/PLIST.earmeb                               1.1
- emulators/compat90/PLIST.earmv6hf                             1.1
- emulators/compat90/PLIST.earmv7hf                             1.1
- emulators/compat90/PLIST.m68000                               1.1
- emulators/compat90/PLIST.m68010                               deleted
- emulators/compat90/distinfo                                   1.3
- emulators/compat_netbsd/INSTALL.ELF                           1.3

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Jan  2 16:15:55 UTC 2022

   Modified Files:
   	pkgsrc/emulators/compat_netbsd: INSTALL.ELF

   Log Message:
   Don't just remove a symlink on removal, ensure that it points
   to an expected name before doing so.  Should prevent removal of
   required symlinks which might otherwise happen when this package
   by accident is instsalled and subsequently de-installed on
   9.0 - 9.2 or other netbsd-9 variants.
   Parts of fix for PR#56597.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Jan  2 16:22:32 UTC 2022

   Modified Files:
   	pkgsrc/emulators/compat90: Makefile

   Log Message:
   Change the ONLY_FOR_PLATFORM pattern, so that it no longer matches
   against 9.0, 9.1, 9.2 or 9.x_STABLE, only 9.99.* and subsequent
   releses.  The set of libraries this is compared against is what's
   in 9.99.92, but the binaries are from 9.0, of course.

   Bump PKGREVISION so that we pick up the changes from
   compat_netbsd/INSTALL.ELF, to protect against removal of base system
   symlinks, ref. PR#56597.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Jan  2 16:35:12 UTC 2022

   Modified Files:
   	pkgsrc/emulators/compat90: Makefile

   Log Message:
   Adjust EMUL_PLATFORMS to pkglint's liking:
   armeb -> earmeb
   armv6hf -> earmv6hf
   armv7hf -> earmv7hf
   m68010 -> m68000
   Compat symlinks created in distfile repository.
   Riding on the quite recent PKGREVISION bump.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Jan  2 16:49:29 UTC 2022

   Added Files:
   	pkgsrc/emulators/compat90: PLIST.earmeb PLIST.earmv6hf PLIST.earmv7hf
   	    PLIST.m68000
   Removed Files:
   	pkgsrc/emulators/compat90: PLIST.armeb PLIST.armv6hf PLIST.armv7hf
   	    PLIST.m68010

   Log Message:
   Rename the set lists corresponding to recent EMUL_PLATFORMS
   renaming.  Ride on recent PKG_REVISION bump.

---
   Module Name:	pkgsrc
   Committed By:	he
   Date:		Sun Jan  2 16:54:05 UTC 2022

   Modified Files:
   	pkgsrc/emulators/compat90: distinfo

   Log Message:
   Update distinfo as well, to complete the EMUL_PLATFORMS renaming.
@
text
@d1 1
a1 1
# $NetBSD$
d86 2
a87 9
			lsrc=$(readlink $dst)
			if [ "$lsrc" = ${PKG_PREFIX}/$src -o \
			     "$lsrc" = $src ]
			then
				${ECHO} "${PKGNAME}: removing $dst"
				${RM} -f "$dst"
			else
				${ECHO} "${PKGNAME}: mismatched symlink, skipping removal of $dst"
			fi
@


1.1
log
@* 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.
@
text
@d1 1
a1 1
# $NetBSD: INSTALL,v 1.2 2007/07/30 00:01:05 jlam Exp $
d58 1
@

