pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc
Module Name: pkgsrc
Committed By: jlam
Date: Mon Aug 21 12:49:17 UTC 2017
Modified Files:
pkgsrc/emulators/darwin_lib: Makefile
pkgsrc/emulators/osf1_lib: Makefile
pkgsrc/emulators/suse100_base: Makefile
pkgsrc/emulators/suse100_linux: Makefile.common emulator.mk
pkgsrc/emulators/suse121_base: Makefile
pkgsrc/emulators/suse121_linux: Makefile.common emulator.mk
pkgsrc/emulators/suse131_base: Makefile
pkgsrc/emulators/suse131_linux: Makefile.common emulator.mk
pkgsrc/mk/emulator: linux.mk pkg-rpm.mk
Log Message:
mk/emulator: Move Linux shlibs task settings to package Makefiles.
Move the definitions of LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD
into suse_linux/emulator.mk. The commands are specific to the
Linux installed, including the path to ldconfig(8), so localize
them to the package that provides it.
Move the definition of RUN_LDCONFIG out of the emulator framework
and into the packages that use them as RUN_LDCONFIG is meant to be
a package-settable variable.
Fix the path to the Linux ldconfig(8) that was used on FreeBSD to
brand the ELF format that has been incorrect for over 10 years.
In the suse_base packages, explicitly set LDCONFIG_REMOVE_CMD to
${TRUE} since the ldconfig(8) command is provided by that package
and can't be invoked at the postremove stage because it has already
been deleted from the system by then.
Bump the PKGREVISION of all the suse_base packages because the
install scripts have changed.
Bump the PKGREVISIONs of the darwin_lib and osf1_lib packages
because the install scripts no longer try to run ldconfig(8),
which is not provided in either OpenDarwin or OSF/1.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/emulators/darwin_lib/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/emulators/osf1_lib/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/emulators/suse100_base/Makefile
cvs rdiff -u -r1.28 -r1.29 pkgsrc/emulators/suse100_linux/Makefile.common
cvs rdiff -u -r1.9 -r1.10 pkgsrc/emulators/suse100_linux/emulator.mk
cvs rdiff -u -r1.11 -r1.12 pkgsrc/emulators/suse121_base/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/emulators/suse121_linux/Makefile.common
cvs rdiff -u -r1.10 -r1.11 pkgsrc/emulators/suse121_linux/emulator.mk
cvs rdiff -u -r1.19 -r1.20 pkgsrc/emulators/suse131_base/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/emulators/suse131_linux/Makefile.common
cvs rdiff -u -r1.8 -r1.9 pkgsrc/emulators/suse131_linux/emulator.mk
cvs rdiff -u -r1.29 -r1.30 pkgsrc/mk/emulator/linux.mk
cvs rdiff -u -r1.6 -r1.7 pkgsrc/mk/emulator/pkg-rpm.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/emulators/darwin_lib/Makefile
diff -u pkgsrc/emulators/darwin_lib/Makefile:1.14 pkgsrc/emulators/darwin_lib/Makefile:1.15
--- pkgsrc/emulators/darwin_lib/Makefile:1.14 Sat Jul 9 06:38:15 2016
+++ pkgsrc/emulators/darwin_lib/Makefile Mon Aug 21 12:49:16 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2016/07/09 06:38:15 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2017/08/21 12:49:16 jlam Exp $
DISTNAME= darwin_lib-6.6.2
-PKGREVISION= 5
+PKGREVISION= 6
CATEGORIES= emulators
MASTER_SITES= # http://www.opendarwin.org/downloads/6.6.2/RPMS/ \
# http://www.opendarwin.org/downloads/6.6.2/RPMS/${DARWIN_ARCH}/
Index: pkgsrc/emulators/osf1_lib/Makefile
diff -u pkgsrc/emulators/osf1_lib/Makefile:1.23 pkgsrc/emulators/osf1_lib/Makefile:1.24
--- pkgsrc/emulators/osf1_lib/Makefile:1.23 Sat Jul 9 06:38:15 2016
+++ pkgsrc/emulators/osf1_lib/Makefile Mon Aug 21 12:49:16 2017
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2016/07/09 06:38:15 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2017/08/21 12:49:16 jlam Exp $
DISTNAME= netscape-4.7-3.alpha
PKGNAME= osf1_lib-1.1
-PKGREVISION= 7
+PKGREVISION= 8
CATEGORIES= emulators
#MASTER_SITES= ftp://digital.com/pub/alphaserver/archive/linuxalphatools/netscape/
MASTER_SITES= ftp://ftp.hp.com/pub/alphaserver/archive/linuxalphatools/netscape/
Index: pkgsrc/emulators/suse100_base/Makefile
diff -u pkgsrc/emulators/suse100_base/Makefile:1.19 pkgsrc/emulators/suse100_base/Makefile:1.20
--- pkgsrc/emulators/suse100_base/Makefile:1.19 Sat Jul 9 06:38:16 2016
+++ pkgsrc/emulators/suse100_base/Makefile Mon Aug 21 12:49:16 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2016/07/09 06:38:16 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2017/08/21 12:49:16 jlam Exp $
PKGNAME= suse_base-${SUSE_VERSION}
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= emulators
MAINTAINER= tonio%NetBSD.org@localhost
@@ -22,7 +22,7 @@ RPMIGNOREPATH= ./etc/bash.bashrc ./etc/
./etc/rc.d.README ./etc/rpc ./etc/shells ./etc/ttytype
LINUX_LDD= ${EMULDIR}/usr/bin/ldd
-LINUX_LDCONFIG= ${EMULDIR}/usr/sbin/ldconfig
+LINUX_LDCONFIG= ${EMULDIR}/sbin/ldconfig
INSTALLATION_DIRS+= sbin emul/linux/etc
OWN_DIRS+= ${EMULSUBDIR}
@@ -37,6 +37,11 @@ SUBST_VARS.suse= EMULDIR LINUX_BASE SUSE
#
BRANDELF_CMD= ${BRANDELF:D${BRANDELF} -t Linux ${DESTDIR}${LINUX_LDCONFIG}:U${TRUE}}
+# This package provides the ldconfig(8) binary, so that binary can't
+# be used during postremove.
+#
+LDCONFIG_REMOVE_CMD= ${TRUE}
+
post-extract:
${CP} ${FILESDIR}/SuSE-release ${WRKSRC}
${CP} ${FILESDIR}/*.sh ${WRKSRC}
Index: pkgsrc/emulators/suse100_linux/Makefile.common
diff -u pkgsrc/emulators/suse100_linux/Makefile.common:1.28 pkgsrc/emulators/suse100_linux/Makefile.common:1.29
--- pkgsrc/emulators/suse100_linux/Makefile.common:1.28 Mon Feb 16 10:15:44 2015
+++ pkgsrc/emulators/suse100_linux/Makefile.common Mon Aug 21 12:49:16 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.28 2015/02/16 10:15:44 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.29 2017/08/21 12:49:16 jlam Exp $
#
# used by emulators/suse100_alsa/Makefile
# used by emulators/suse100_alsa/Makefile
@@ -123,6 +123,9 @@ FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_L
#
.sinclude "${SUSE_PKGSRCDIR}/suse.${EMUL_ARCH}.mk"
+# By default, run ldconfig(8) after installing a SuSE package.
+RUN_LDCONFIG?= yes
+
.if defined(DISTFILES) && !empty(DISTFILES)
. for fetchfile in ${DISTFILES}
. if "${fetchfile:C/.[^.]*\.rpm$//:C/^.*-//g:M*.*}" != ""
Index: pkgsrc/emulators/suse100_linux/emulator.mk
diff -u pkgsrc/emulators/suse100_linux/emulator.mk:1.9 pkgsrc/emulators/suse100_linux/emulator.mk:1.10
--- pkgsrc/emulators/suse100_linux/emulator.mk:1.9 Tue Apr 8 10:05:44 2014
+++ pkgsrc/emulators/suse100_linux/emulator.mk Mon Aug 21 12:49:16 2017
@@ -1,4 +1,4 @@
-# $NetBSD: emulator.mk,v 1.9 2014/04/08 10:05:44 obache Exp $
+# $NetBSD: emulator.mk,v 1.10 2017/08/21 12:49:16 jlam Exp $
#
# This file is included by linux-suse.mk in the emulator framework.
#
@@ -50,3 +50,12 @@ DEPENDS_suse-10.0.${_mod_}:= \
${DEPENDS_suse-10.0.${_mod_}:S/^suse_/suse32_/:S/suse100_/&32_/}
. endfor
.endif
+
+# SuSE Linux's ld.so(8) uses a cache file of search paths for shared
+# libraries which is managed by ldconfig(8).
+#
+.if !defined(EMUL_IS_NATIVE)
+SUSE_LDCONFIG_CMD= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
+LDCONFIG_ADD_CMD?= ${SUSE_LDCONFIG_CMD}
+LDCONFIG_REMOVE_CMD?= ${SUSE_LDCONFIG_CMD}
+.endif
Index: pkgsrc/emulators/suse121_base/Makefile
diff -u pkgsrc/emulators/suse121_base/Makefile:1.11 pkgsrc/emulators/suse121_base/Makefile:1.12
--- pkgsrc/emulators/suse121_base/Makefile:1.11 Sat Jul 9 06:38:16 2016
+++ pkgsrc/emulators/suse121_base/Makefile Mon Aug 21 12:49:16 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2016/07/09 06:38:16 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2017/08/21 12:49:16 jlam Exp $
PKGNAME= suse_base-${SUSE_VERSION}
-PKGREVISION= 7
+PKGREVISION= 8
CATEGORIES= emulators
RPMUPDPKGS+= aaa_base-${SUSE_VERSION}-534.113.1.${SUSE_ARCH}
RPMUPDPKGS+= bash-4.2-1.14.1.${SUSE_ARCH}
@@ -54,7 +54,7 @@ RPMIGNOREPATH= ./etc/bash.bashrc ./etc/
./etc/rc.d.README ./etc/rpc ./etc/shells ./etc/ttytype
LINUX_LDD= ${EMULDIR}/usr/bin/ldd
-LINUX_LDCONFIG= ${EMULDIR}/usr/sbin/ldconfig
+LINUX_LDCONFIG= ${EMULDIR}/sbin/ldconfig
INSTALLATION_DIRS+= ${EMULDIR}/etc ${EMULDIR}/dev/shm ${EMULDIR}/var/lock
INSTALLATION_DIRS+= sbin
@@ -70,6 +70,11 @@ SUBST_VARS.suse= EMULDIR LINUX_BASE SUSE
#
BRANDELF_CMD= ${BRANDELF:D${BRANDELF} -t Linux ${DESTDIR}${LINUX_LDCONFIG}:U${TRUE}}
+# This package provides the ldconfig(8) binary, so that binary can't
+# be used during postremove.
+#
+LDCONFIG_REMOVE_CMD= ${TRUE}
+
post-extract:
${CP} ${FILESDIR}/SuSE-release ${WRKSRC}
${CP} ${FILESDIR}/*.sh ${WRKSRC}
Index: pkgsrc/emulators/suse121_linux/Makefile.common
diff -u pkgsrc/emulators/suse121_linux/Makefile.common:1.13 pkgsrc/emulators/suse121_linux/Makefile.common:1.14
--- pkgsrc/emulators/suse121_linux/Makefile.common:1.13 Mon Apr 11 04:22:34 2016
+++ pkgsrc/emulators/suse121_linux/Makefile.common Mon Aug 21 12:49:16 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2016/04/11 04:22:34 dbj Exp $
+# $NetBSD: Makefile.common,v 1.14 2017/08/21 12:49:16 jlam Exp $
#
# used by emulators/suse121_alsa/Makefile
# used by emulators/suse121_aspell/Makefile
@@ -104,6 +104,9 @@ FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_L
#
.sinclude "${SUSE_PKGSRCDIR}/suse.${EMUL_ARCH}.mk"
+# By default, run ldconfig(8) after installing a SuSE package.
+RUN_LDCONFIG?= yes
+
.if make(distinfo) || make(makedistinfo) || make(mdi) || make(makesum)
PKG_FAIL_REASON+= "please use make emul-fetch or make emul-distinfo"
.endif
Index: pkgsrc/emulators/suse121_linux/emulator.mk
diff -u pkgsrc/emulators/suse121_linux/emulator.mk:1.10 pkgsrc/emulators/suse121_linux/emulator.mk:1.11
--- pkgsrc/emulators/suse121_linux/emulator.mk:1.10 Sat Sep 26 01:05:31 2015
+++ pkgsrc/emulators/suse121_linux/emulator.mk Mon Aug 21 12:49:16 2017
@@ -1,4 +1,4 @@
-# $NetBSD: emulator.mk,v 1.10 2015/09/26 01:05:31 kamil Exp $
+# $NetBSD: emulator.mk,v 1.11 2017/08/21 12:49:16 jlam Exp $
#
# This file is included by linux-suse.mk in the emulator framework.
#
@@ -62,3 +62,12 @@ DEPENDS_suse-12.1.dbus= ${DEPENDS_suse-
DEPENDS_suse-12.1.dbus-glib= ${DEPENDS_suse-12.1.gtk2}
DEPENDS_suse-12.1.libffi= ${DEPENDS_suse-12.1.gtk2}
DEPENDS_suse-12.1.glib2= ${DEPENDS_suse-12.1.gtk2}
+
+# SuSE Linux's ld.so(8) uses a cache file of search paths for shared
+# libraries which is managed by ldconfig(8).
+#
+.if !defined(EMUL_IS_NATIVE)
+SUSE_LDCONFIG_CMD= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
+LDCONFIG_ADD_CMD?= ${SUSE_LDCONFIG_CMD}
+LDCONFIG_REMOVE_CMD?= ${SUSE_LDCONFIG_CMD}
+.endif
Index: pkgsrc/emulators/suse131_base/Makefile
diff -u pkgsrc/emulators/suse131_base/Makefile:1.19 pkgsrc/emulators/suse131_base/Makefile:1.20
--- pkgsrc/emulators/suse131_base/Makefile:1.19 Sat Jul 9 06:38:16 2016
+++ pkgsrc/emulators/suse131_base/Makefile Mon Aug 21 12:49:16 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2016/07/09 06:38:16 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2017/08/21 12:49:16 jlam Exp $
PKGNAME= suse_base-${SUSE_VERSION}
-PKGREVISION= 13
+PKGREVISION= 14
CATEGORIES= emulators
RPMUPDPKGS+= aaa_base-${SUSE_VERSION}-16.49.1.${SUSE_ARCH}
RPMUPDPKGS+= bash-4.2-68.12.1.${SUSE_ARCH}
@@ -43,7 +43,7 @@ RPMIGNOREPATH= ./etc/bash.bashrc ./etc/
./etc/rc.d.README ./etc/rpc ./etc/shells ./etc/ttytype
LINUX_LDD= ${EMULDIR}/usr/bin/ldd
-LINUX_LDCONFIG= ${EMULDIR}/usr/sbin/ldconfig
+LINUX_LDCONFIG= ${EMULDIR}/sbin/ldconfig
INSTALLATION_DIRS+= ${EMULDIR}/etc ${EMULDIR}/dev/shm ${EMULDIR}/var/lock
INSTALLATION_DIRS+= sbin
@@ -59,6 +59,11 @@ SUBST_VARS.suse= EMULDIR LINUX_BASE SUSE
#
BRANDELF_CMD= ${BRANDELF:D${BRANDELF} -t Linux ${DESTDIR}${LINUX_LDCONFIG}:U${TRUE}}
+# This package provides the ldconfig(8) binary, so that binary can't
+# be used during postremove.
+#
+LDCONFIG_REMOVE_CMD= ${TRUE}
+
post-extract:
${CP} ${FILESDIR}/*.sh ${WRKSRC}
Index: pkgsrc/emulators/suse131_linux/Makefile.common
diff -u pkgsrc/emulators/suse131_linux/Makefile.common:1.17 pkgsrc/emulators/suse131_linux/Makefile.common:1.18
--- pkgsrc/emulators/suse131_linux/Makefile.common:1.17 Thu Apr 27 22:59:54 2017
+++ pkgsrc/emulators/suse131_linux/Makefile.common Mon Aug 21 12:49:16 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.17 2017/04/27 22:59:54 kamil Exp $
+# $NetBSD: Makefile.common,v 1.18 2017/08/21 12:49:16 jlam Exp $
#
# used by emulators/suse131_alsa/Makefile
# used by emulators/suse131_aspell/Makefile
@@ -123,6 +123,9 @@ FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_L
#
.sinclude "${SUSE_PKGSRCDIR}/suse.${EMUL_ARCH}.mk"
+# By default, run ldconfig(8) after installing a SuSE package.
+RUN_LDCONFIG?= yes
+
.if make(distinfo) || make(makedistinfo) || make(mdi) || make(makesum)
PKG_FAIL_REASON+= "please use make emul-fetch or make emul-distinfo"
.endif
Index: pkgsrc/emulators/suse131_linux/emulator.mk
diff -u pkgsrc/emulators/suse131_linux/emulator.mk:1.8 pkgsrc/emulators/suse131_linux/emulator.mk:1.9
--- pkgsrc/emulators/suse131_linux/emulator.mk:1.8 Mon Mar 6 11:53:54 2017
+++ pkgsrc/emulators/suse131_linux/emulator.mk Mon Aug 21 12:49:16 2017
@@ -1,4 +1,4 @@
-# $NetBSD: emulator.mk,v 1.8 2017/03/06 11:53:54 hauke Exp $
+# $NetBSD: emulator.mk,v 1.9 2017/08/21 12:49:16 jlam Exp $
#
# This file is included by linux-suse.mk in the emulator framework.
#
@@ -75,3 +75,12 @@ DEPENDS_suse-13.1.${_mod_}:= \
${DEPENDS_suse-13.1.${_mod_}:S/^suse_/suse32_/:S/suse131_/&32_/}
. endfor
.endif
+
+# SuSE Linux's ld.so(8) uses a cache file of search paths for shared
+# libraries which is managed by ldconfig(8).
+#
+.if !defined(EMUL_IS_NATIVE)
+SUSE_LDCONFIG_CMD= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
+LDCONFIG_ADD_CMD?= ${SUSE_LDCONFIG_CMD}
+LDCONFIG_REMOVE_CMD?= ${SUSE_LDCONFIG_CMD}
+.endif
Index: pkgsrc/mk/emulator/linux.mk
diff -u pkgsrc/mk/emulator/linux.mk:1.29 pkgsrc/mk/emulator/linux.mk:1.30
--- pkgsrc/mk/emulator/linux.mk:1.29 Sun Apr 12 12:21:29 2015
+++ pkgsrc/mk/emulator/linux.mk Mon Aug 21 12:49:17 2017
@@ -1,4 +1,4 @@
-# $NetBSD: linux.mk,v 1.29 2015/04/12 12:21:29 wiz Exp $
+# $NetBSD: linux.mk,v 1.30 2017/08/21 12:49:17 jlam Exp $
#
# Linux binary emulation framework
#
@@ -127,8 +127,3 @@ EMULSUBDIR= # empty
DEPENDS_${EMUL_DISTRO}.${_mod_}= # empty
. endfor
.endif
-
-.if !defined(EMUL_IS_NATIVE)
-LDCONFIG_ADD_CMD?= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
-LDCONFIG_REMOVE_CMD?= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
-.endif
Index: pkgsrc/mk/emulator/pkg-rpm.mk
diff -u pkgsrc/mk/emulator/pkg-rpm.mk:1.6 pkgsrc/mk/emulator/pkg-rpm.mk:1.7
--- pkgsrc/mk/emulator/pkg-rpm.mk:1.6 Wed Nov 25 13:05:47 2015
+++ pkgsrc/mk/emulator/pkg-rpm.mk Mon Aug 21 12:49:17 2017
@@ -1,4 +1,4 @@
-# $NetBSD: pkg-rpm.mk,v 1.6 2015/11/25 13:05:47 jperkin Exp $
+# $NetBSD: pkg-rpm.mk,v 1.7 2017/08/21 12:49:17 jlam Exp $
#
# RPM package format
#
@@ -95,9 +95,6 @@ PLIST_SRC_DFLT+= ${RPM2PKG_PLIST}
# We handle the extraction of the RPMs in the extract-rpm target below.
EXTRACT_ONLY?= # empty
-# Usually, packages we install via RPMs also install shared libraries.
-_EMUL_RUN_LDCONFIG= yes
-
.PHONY: extract-rpm
extract-rpm:
@${STEP_MSG} "Extracting RPM files"
Home |
Main Index |
Thread Index |
Old Index