diff options
author | jlam <jlam@pkgsrc.org> | 2017-08-21 12:49:16 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2017-08-21 12:49:16 +0000 |
commit | 9ea50b9bd32bf5a8202a1ec9578b299f46c6be87 (patch) | |
tree | 31289f3ebd6fd22ce2b1d97a222f56f921a4a9f6 /mk/emulator | |
parent | b304efd1c5335f701a7c4bf75106d80400d76045 (diff) | |
download | pkgsrc-9ea50b9bd32bf5a8202a1ec9578b299f46c6be87.tar.gz |
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.
Diffstat (limited to 'mk/emulator')
-rw-r--r-- | mk/emulator/linux.mk | 7 | ||||
-rw-r--r-- | mk/emulator/pkg-rpm.mk | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/mk/emulator/linux.mk b/mk/emulator/linux.mk index 8d03318a148..0df0fe13ae8 100644 --- a/mk/emulator/linux.mk +++ b/mk/emulator/linux.mk @@ -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 diff --git a/mk/emulator/pkg-rpm.mk b/mk/emulator/pkg-rpm.mk index 068c6828ccb..c2c144edccc 100644 --- a/mk/emulator/pkg-rpm.mk +++ b/mk/emulator/pkg-rpm.mk @@ -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" |