svn commit: r369300 - head/ports-mgmt/pkg

Bryan Drewery bdrewery at FreeBSD.org
Fri Sep 26 01:16:32 UTC 2014


On 9/25/2014 8:14 PM, Bryan Drewery wrote:
> Author: bdrewery
> Date: Fri Sep 26 01:14:14 2014
> New Revision: 369300
> URL: http://svnweb.freebsd.org/changeset/ports/369300
> QAT: https://qat.redports.org/buildarchive/r369300/
> 
> Log:
>   Add a way to work around the pkg2ng gate for now.
>   
>   With hat:	portmgr

Better ideas welcome. The problem is that they have pkg_install packages
installed. Before WITH_PKG was default they would be able to install
this just fine without hitting this exit. Now that WITH_PKG is default,
they hit this exit and have no path forward. They must install pkg and
MUST pkg2ng after before continuing or they will trash their system.

> 
> Modified:
>   head/ports-mgmt/pkg/Makefile
> 
> Modified: head/ports-mgmt/pkg/Makefile
> ==============================================================================
> --- head/ports-mgmt/pkg/Makefile	Fri Sep 26 00:50:14 2014	(r369299)
> +++ head/ports-mgmt/pkg/Makefile	Fri Sep 26 01:14:14 2014	(r369300)
> @@ -54,7 +54,7 @@ NB_NEWPKGS=	0
>  .endif
>  # Only show the pre-everything notice if they have not already
>  # converted any packages
> -.if ${NB_OLDPKGS} > 0 && ${NB_NEWPKGS} == 0
> +.if ${NB_OLDPKGS} > 0 && ${NB_NEWPKGS} == 0 && !defined(UPGRADEPKG)
>  
>  pre-everything::
>  	@${ECHO_CMD} "You are about to convert your system to pkg while you have ports/packages"; \
> @@ -62,6 +62,7 @@ pre-everything::
>  	 ${ECHO_CMD} ""; \
>  	 ${ECHO_CMD} "To switch to pkg:"; \
>  	 ${ECHO_CMD} "    1) Install ports-mgmt/pkg"; \
> +	 ${ECHO_CMD} "       cd ports-mgmt/pkg && make UPGRADEPKG=1 install clean"; \
>  	 ${ECHO_CMD} "    2) Convert your package database by running pkg2ng"; \
>  	 ${ECHO_CMD} ""; \
>  	exit 1
> 


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20140925/646a5b9c/attachment.sig>


More information about the svn-ports-head mailing list