Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2003 23:43:04 +0400
From:      rodion@lenta.ru
To:        portmgr@FreeBSD.org
Cc:        freebsd-ports-bugs@freebsd.org
Subject:   WRKDIRPREFIX doesn't work
Message-ID:  <20030823194304.747.qmail@mailgate.ru>

next in thread | raw e-mail | index | archive | help
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@rndex.ru>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030823194304.747.qmail>