[PATCH] bug in bsd.port.mk

Mike Bristow mike at urgle.com
Thu Aug 28 05:36:52 PDT 2003


There is a small bug in bsd.port.mk, that only affects you if you have
WRKDIRPREFIX set.  Basically, when installing the port, PKG_ARGS seems
to be used when the current working directory is
${WRKDIRPREFIX}/${.CURDIR}, which means that "make package-depends" is
run from that directory.  

Given that there's no Makefile there, this isn't ideal :)

The attached patch to bsd.port.mk cures the problem for me - can anyone
spot a problem with it before I send-pr?

Cheers,
Mike

-------------- next part --------------
--- bsd.port.mk.orig	Thu Aug 28 13:21:42 2003
+++ bsd.port.mk	Thu Aug 28 13:18:39 2003
@@ -1722,7 +1722,7 @@
 DISABLE_CONFLICTS=     YES
 .endif
 .if !defined(PKG_ARGS)
-PKG_ARGS=		-v -c -${COMMENT:Q} -d ${DESCR} -f ${TMPPLIST} -p ${PREFIX} -P "`${MAKE} package-depends | ${GREP} -v -E ${PKG_IGNORE_DEPENDS} | sort -u`" ${EXTRA_PKG_ARGS}
+PKG_ARGS=		-v -c -${COMMENT:Q} -d ${DESCR} -f ${TMPPLIST} -p ${PREFIX} -P "`${MAKE} -C ${.CURDIR} package-depends | ${GREP} -v -E ${PKG_IGNORE_DEPENDS} | sort -u`" ${EXTRA_PKG_ARGS}
 .if exists(${PKGINSTALL})
 PKG_ARGS+=		-i ${PKGINSTALL}
 .endif


More information about the freebsd-ports mailing list