pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Move the PREPEND_PATH for LOCALBASE/bin (and option...
details: https://anonhg.NetBSD.org/pkgsrc/rev/627ba856ee31
branches: trunk
changeset: 488278:627ba856ee31
user: tv <tv%pkgsrc.org@localhost>
date: Thu Jan 27 04:05:08 2005 +0000
description:
Move the PREPEND_PATH for LOCALBASE/bin (and optionally X11BASE/bin) to a
spot that will come before compiler.mk (in bsd.prefs.mk). Previously,
LOCALBASE/bin was appearing earlier in the path than work/.<compiler>/bin,
which could cause the Wrong Thing to happen.
diffstat:
mk/bsd.pkg.mk | 13 +++++--------
mk/bsd.prefs.mk | 5 ++++-
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (75 lines):
diff -r e85787da1bbb -r 627ba856ee31 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Thu Jan 27 03:46:30 2005 +0000
+++ b/mk/bsd.pkg.mk Thu Jan 27 04:05:08 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1574 2005/01/25 18:15:58 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1575 2005/01/27 04:05:08 tv Exp $
#
# This file is in the public domain.
#
@@ -182,10 +182,7 @@
PKG_FAIL_REASON+= "PLIST_TYPE must be \`\`static'' for \`\`overwrite'' packages."
.endif
-PREPEND_PATH+= ${LOCALBASE}/bin
-
.if defined(USE_IMAKE)
-PREPEND_PATH+= ${X11BASE}/bin
USE_X11BASE?= implied
PLIST_SUBST+= IMAKE_MAN_SOURCE_PATH=${IMAKE_MAN_SOURCE_PATH}
PLIST_SUBST+= IMAKE_MAN_DIR=${IMAKE_MAN_DIR}
@@ -451,7 +448,7 @@
CONFIGURE_ENV+= LINKER_RPATH_FLAG="${LINKER_RPATH_FLAG}"
CONFIGURE_ENV+= COMPILER_RPATH_FLAG="${COMPILER_RPATH_FLAG}"
-MAKE_ENV+= PATH=${PATH}
+MAKE_ENV+= PATH=${PATH:Q}
MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
MAKE_ENV+= X11BASE=${X11BASE} CFLAGS="${CFLAGS}"
MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" FFLAGS="${FFLAGS}"
@@ -1039,7 +1036,7 @@
. endif
.endif
-CONFIGURE_ENV+= PATH=${PATH}
+CONFIGURE_ENV+= PATH=${PATH:Q}
.if defined(GNU_CONFIGURE)
#
@@ -1117,7 +1114,7 @@
# Passed to most of script invocations
SCRIPTS_ENV+= CURDIR=${.CURDIR} DISTDIR=${DISTDIR} \
- PATH=${PATH} \
+ PATH=${PATH:Q} \
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \
_PKGSRCDIR=${_PKGSRCDIR} PKGSRCDIR=${PKGSRCDIR} DEPENDS="${DEPENDS}" \
@@ -1187,7 +1184,7 @@
# Add these bits to the environment use when invoking the sub-make
# processes for build-related phases.
#
-BUILD_ENV+= PATH=${PATH:Q}
+BUILD_ENV+= PATH=${PATH:Q}
.MAIN: all
diff -r e85787da1bbb -r 627ba856ee31 mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk Thu Jan 27 03:46:30 2005 +0000
+++ b/mk/bsd.prefs.mk Thu Jan 27 04:05:08 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.177 2004/11/20 04:37:08 grant Exp $
+# $NetBSD: bsd.prefs.mk,v 1.178 2005/01/27 04:05:08 tv Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -536,6 +536,9 @@
PKG_DEFAULT_OPTIONS?= # empty
PKG_OPTIONS?= # empty
+# we want this *before* compiler.mk, so that compiler.mk paths override them
+PREPEND_PATH+= ${LOCALBASE}/bin ${USE_IMAKE:D${X11BASE}/bin}
+
# Wrapper framework definitions
.if exists(${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk)
. include "${PKGSRCDIR}/mk/wrapper/wrapper-defs.mk"
Home |
Main Index |
Thread Index |
Old Index