WRKDIRPREFIX doesn't work

rodion at lenta.ru rodion at lenta.ru
Sat Aug 23 19:43:07 UTC 2003


Hello, everybody!

I have bumped into trouble trying to set WRKDIRPREFIX variable to
non-default value in my make.conf file. In this case every port
installation causes the error: "make: don't know how to make
package-depends. Stop" when it registers a package.  

I think the reason of the one is every time target "install" is built
"make package-depends" is called in a wrong directory.

It seems to me the patch below could fix that:


*** Mk/bsd.port.mk	Sat Aug 15 22:57:58 2003
--- Mk/bsd.port.mk	Sat Aug 23 18:59:08 2003
***************
*** 1722,1728 ****
  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}
  .if exists(${PKGINSTALL})
  PKG_ARGS+=		-i ${PKGINSTALL}
  .endif
--- 1722,1728 ----
  DISABLE_CONFLICTS=     YES
  .endif
  .if !defined(PKG_ARGS)
! PKG_ARGS=		-v -c -${COMMENT:Q} -d ${DESCR} -f ${TMPPLIST} -p ${PREFIX} -P "`cd ${.CURDIR}; ${MAKE} package-depends | ${GREP} -v -E ${PKG_IGNORE_DEPENDS} | sort -u`" ${EXTRA_PKG_ARGS}
  .if exists(${PKGINSTALL})
  PKG_ARGS+=		-i ${PKGINSTALL}
  .endif


Best wishes
Rodion Novoselov <rodion at rndex.ru>



More information about the freebsd-ports-bugs mailing list