pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_comp Avoid finding pkgsrc-installed bash,...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0d458d3f48cb
branches: trunk
changeset: 378884:0d458d3f48cb
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Sun May 08 20:26:52 2022 +0000
description:
Avoid finding pkgsrc-installed bash, as it won't be in the sandbox. Bump
PKGREVISION.
diffstat:
pkgtools/pkg_comp/Makefile | 8 +++++++-
pkgtools/pkg_comp/distinfo | 3 ++-
pkgtools/pkg_comp/patches/patch-pkg__comp.sh | 16 ++++++++++++++++
3 files changed, 25 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r 19f5cae5ef72 -r 0d458d3f48cb pkgtools/pkg_comp/Makefile
--- a/pkgtools/pkg_comp/Makefile Sun May 08 15:02:40 2022 +0000
+++ b/pkgtools/pkg_comp/Makefile Sun May 08 20:26:52 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.61 2019/01/14 10:53:37 jmmv Exp $
+# $NetBSD: Makefile,v 1.62 2022/05/08 20:26:52 schmonz Exp $
DISTNAME= pkg_comp-2.1
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/}pkg_comp/releases/download/pkg_comp-2.1/
@@ -33,6 +34,11 @@
SUBST_SED.sandboxctl= -e 's,__PKG_COMP_BASESYSCONFDIR__/sandboxctl/,${SANDBOXCTL_SYSCONFDIR}/,g'
SANDBOXCTL_SYSCONFDIR= ${PKG_SYSCONFDIR.sandboxctl:U${PKG_SYSCONFBASE}/sandboxctl}
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= pkg_comp.sh
+SUBST_VARS.paths= PREFIX
+
PKG_OPTIONS_VAR= PKG_OPTIONS.pkg_comp
PKG_SUPPORTED_OPTIONS= tests
PKG_SUGGESTED_OPTIONS= tests
diff -r 19f5cae5ef72 -r 0d458d3f48cb pkgtools/pkg_comp/distinfo
--- a/pkgtools/pkg_comp/distinfo Sun May 08 15:02:40 2022 +0000
+++ b/pkgtools/pkg_comp/distinfo Sun May 08 20:26:52 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:11:07 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/05/08 20:26:52 schmonz Exp $
BLAKE2s (pkg_comp-2.1.tar.gz) = 0bf6652c902492cb53ef5b8f68f369e71bb102f62d995722fe9278f4db3b6449
SHA512 (pkg_comp-2.1.tar.gz) = 14e953113cae585250241f64a260358160907faa50d8c2536c68d0b13cc52cdf8fe1b10d66f099ce1f817a9f7e74fbe2069b809b8125ba68bc68f0609c9afcfc
Size (pkg_comp-2.1.tar.gz) = 97357 bytes
+SHA1 (patch-pkg__comp.sh) = 94a6dc79cbcc445171a9a07093fc85eec6c9049c
diff -r 19f5cae5ef72 -r 0d458d3f48cb pkgtools/pkg_comp/patches/patch-pkg__comp.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkg_comp/patches/patch-pkg__comp.sh Sun May 08 20:26:52 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-pkg__comp.sh,v 1.1 2022/05/08 20:26:52 schmonz Exp $
+
+Avoid finding pkgsrc-installed bash, as it won't be in the sandbox.
+
+--- pkg_comp.sh.orig 2019-01-12 10:54:23.000000000 +0000
++++ pkg_comp.sh
+@@ -181,7 +181,8 @@ setup_bootstrap() {
+ local dash_echo_test="$("${bootstrap_sh}" -c 'echo "\\100"')"
+ if [ "$(uname -s)" != GNUkFreeBSD -a "${dash_echo_test}" = @ ]; then
+ local bash
+- bash="$(which bash)"
++ # Avoid finding pkgsrc-installed bash, as it won't be in the sandbox
++ bash="$(PATH="$(echo ${PATH} | tr ':' '\n' | grep -v '^@PREFIX@/' | tr '\n' ':')" which bash)"
+ if [ ${?} -eq 0 ]; then
+ bootstrap_sh="${bash}"
+ else
Home |
Main Index |
Thread Index |
Old Index