Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2019 18:27:05 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r353411 - releng/12.1/usr.sbin/pkg
Message-ID:  <201910101827.x9AIR5ia095706@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Thu Oct 10 18:27:05 2019
New Revision: 353411
URL: https://svnweb.freebsd.org/changeset/base/353411

Log:
  MFS r353409:
   MFC r353320:
    Rework the logic for installing the pkg(8) configuration.
  
    'quarterly' package sets do not exist for head, so explicitly
    install the 'latest' configuration file there.  Otherwise,
    fall back to the original conditional evaluation to determine
    if the 'latest' or 'quarterly' configuration file should be
    installed.
  
  Approved by:	re (kib)
  Sponsored by:	Rubicon Communications, LLC (Netgate)

Modified:
  releng/12.1/usr.sbin/pkg/Makefile
Directory Properties:
  releng/12.1/   (props changed)

Modified: releng/12.1/usr.sbin/pkg/Makefile
==============================================================================
--- releng/12.1/usr.sbin/pkg/Makefile	Thu Oct 10 18:19:22 2019	(r353410)
+++ releng/12.1/usr.sbin/pkg/Makefile	Thu Oct 10 18:27:05 2019	(r353411)
@@ -1,14 +1,18 @@
 # $FreeBSD$
 
-.if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
-PKGCONFBRANCH?=	quarterly
-.else
 _BRANCH!=	${MAKE} -C ${SRCTOP}/release -V BRANCH
 BRANCH?=	${_BRANCH}
+.if ${BRANCH:MCURRENT} != ""
+PKGCONFBRANCH?=	latest
+.else
 . if ${BRANCH:MBETA*} || ${BRANCH:MRC*} || ${BRANCH:MRELEASE*}
 PKGCONFBRANCH?=	quarterly
 . else
+.  if ${MACHINE} != "amd64" && ${MACHINE} != "i386"
+PKGCONFBRANCH?=	quarterly
+.  else
 PKGCONFBRANCH?=	latest
+.  endif
 . endif
 .endif
 CONFS=		FreeBSD.conf.${PKGCONFBRANCH}



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