Date: Sun, 4 May 2014 20:32:44 +0200 (CEST) From: Melvyn Sopacua <melvyn@magemana.nl> To: Marcin Wisnicki <mwisnicki+freebsd@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: make package no longer installing Message-ID: <alpine.BSF.2.00.1405042019500.79927@fire.magemana.nl> In-Reply-To: <lk5l9p$g9g$2@ger.gmane.org> References: <lk5l9p$g9g$2@ger.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
HI Marcin, On Sun, 4 May 2014, Marcin Wisnicki wrote: > portupgrade -p invokes make with DEPENDS_TARGET=package[1] but this no > longer installs dependencies. Which target or option should be used > instead ? > I fixed this locally by creating a new target in Mk/bsd.local.mk: full-package: install @cd ${.CURDIR} && ${MAKE} package @cd ${.CURDIR} && ${MAKE} package-links @if [ -f ${PACKAGES}/All/${PKGNAME}${PKG_SUFX} ]; then \ ${ECHO_MSG} Package installed in ${PACKAGES}/All/${PKGNAME}${PKG_SUFX}; \ else \ ${ECHO_MSG} "Failed to save package"; \ exit 1; \ fi You will need USE_LOCAL_MK=yes in /etc/make.conf. The reason is that STAGE now abuses the package and install targets to do the staged installations. Once the stage installation is done, the package target reverts to it's old behavior of installing and packaging the package. For some reason it doesn't invoke package-links anymore, so I added as well. Then you need to fix portupgrade to specify full-package as DEPENDS_TARGET. I tried DEPENDS_TARGET="install package" but it won't work, probably because the cookie check that switches the package target is not re-evaluated, but spawning a sub make does. I didn't check that thoroughly. -- Hope this helps, Melvyn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1405042019500.79927>