diff options
author | tv <tv> | 2005-01-27 04:05:08 +0000 |
---|---|---|
committer | tv <tv> | 2005-01-27 04:05:08 +0000 |
commit | 2190450994a0935f877f1e60828dad57970f407a (patch) | |
tree | ddd6cf8f774ad38c1747ec448f921a16b642ed57 | |
parent | e8cf4e501f4d1a83cb6ef4f619931d162b468f0e (diff) | |
download | pkgsrc-2190450994a0935f877f1e60828dad57970f407a.tar.gz |
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.
-rw-r--r-- | mk/bsd.pkg.mk | 13 | ||||
-rw-r--r-- | mk/bsd.prefs.mk | 5 |
2 files changed, 9 insertions, 9 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0cfe719e99c..f4de71bb474 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -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 \`\`dynamic'' or \`\`static''." 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+= LDFLAGS="${LDFLAGS:M*}" M4="${M4}" YACC="${YACC}" 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 @@ PKG_FAIL_REASON+='Please "${MAKE} install" in ../../pkgtools/shlock.' . endif .endif -CONFIGURE_ENV+= PATH=${PATH} +CONFIGURE_ENV+= PATH=${PATH:Q} .if defined(GNU_CONFIGURE) # @@ -1117,7 +1114,7 @@ BUILD_DEFS+= PKG_SYSCONFBASEDIR PKG_SYSCONFDIR # 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 @@ PATH= ${_PATH_CMD:sh} # DOES NOT use :=, to defer evaluation # 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 --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 783490fd325..c283dc1e57a 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -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 @@ WRKLOG?= ${WRKDIR}/.work.log 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" |