From owner-svn-src-stable-12@freebsd.org Tue Sep 3 14:07:14 2019 Return-Path: Delivered-To: svn-src-stable-12@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 453C3DD6F7; Tue, 3 Sep 2019 14:07:14 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N80K3RwPz4QNJ; Tue, 3 Sep 2019 14:07:13 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id 990831B2B7; Tue, 3 Sep 2019 14:06:32 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 9625FFDE8; Sat, 20 Apr 2019 18:12:44 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 304096D000; Sat, 20 Apr 2019 18:12:44 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 1B0D0FDE6; Sat, 20 Apr 2019 18:12:44 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 21DAFFDE4 for ; Sat, 20 Apr 2019 18:12:41 +0000 (UTC) (envelope-from 0100016a3bf3407e-b137f8d1-0605-4135-81d1-70daba13774f-000000@amazonses.com) Received: from a8-176.smtp-out.amazonses.com (a8-176.smtp-out.amazonses.com [54.240.8.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 09F1B6CFFC for ; Sat, 20 Apr 2019 18:12:39 +0000 (UTC) (envelope-from 0100016a3bf3407e-b137f8d1-0605-4135-81d1-70daba13774f-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1555783959; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type; bh=vsEmpfbgpnePpFEnjMW68YEbS7xvLTOk75YrVb3iK1Q=; b=CIsysVPlM41j9x/pexARfPSVbHm07oVZJ72VgWxtJhCwCJXYCXvxOY2Ht41ZwMxd PPPUPGi5fPWizVQ6L8Ho6hF89+G7/tP3Bbc9utrqXhGEh+QoagxJWaO5RP/hIXEB+1s oeihZbItScpTnF9wPXComfo7MFuBmx3KErjQhSpo= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1555783959; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Feedback-ID; bh=vsEmpfbgpnePpFEnjMW68YEbS7xvLTOk75YrVb3iK1Q=; b=eIcqekyr0ZWLhSIscp3XCsgGpFLCf8TKTwSLdTaqH5HSRTBy0IVouLbtLkuJCnDC 4KSuZWfHjawckHPK5vP+/jqItX3Uw9wNfeOKqr95suYH8asYX5zxn4Mrn+JXjJtbEcH 1lDFaWOTZALU3nHYo/RXvetpl0fPaeh/OPUidQzg= Subject: Re: svn commit: r340905 - in stable/12: release/pkg_repos usr.sbin/pkg To: Glen Barber Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org, portmgr@freebsd.org References: <201811241747.wAOHlr6W029937@repo.freebsd.org> <0100016a32795508-fd8bbc41-2b38-40ae-903a-e3ef3739dfd8-000000@email.amazonses.com> <20190419130522.GI39941@FreeBSD.org> From: Colin Percival Openpgp: preference=signencrypt Autocrypt: addr=cperciva@tarsnap.com; prefer-encrypt=mutual; keydata= mQGhBElrAAcRBACDfDys4ZtK+ErCJ1HAzYeteKpm3OEsvT/49AjUTLihkF79HhIKrCQU+1KC zv7BwHCMLb6hq30As9L7iFKG7n5QFLFC4Te/VcITUnWHMG/c3ViLOfJGvi+9/nOEHaM1dVJY D6tEp5yM1nHmVQpo9932j4KGuGFR0LhOK5IHXOSfGwCgxSFDPdgxe2OEjWxjGgY+oV3EafcD +JROXCTjlcQiG/OguQH4Vks3mhHfFnEppLxTkDuYgHZQiUtpcT9ssH5khgqoTyMar05OUdAj ZIhNbWDh4LgTj+7ZmvLhXT5Zxw8LX9d7T36aTB8XDQSenDqEtinMWOb0TCBBLbsB8EFG1WTT ESbZci9jJS5yhtktuZoY/eM8uXMD/3k4FWFO80VRRkELSp+XSy/VlSQjyi/rhl2nQq/oOA9F oJbDaB0yq9VNhxP+uFBzBWSqeIX0t1ZWLtNfVFr4TRP5hihI5ICrg/0OpqgisKsU2NFe9xyO hyJLYmfD8ebpDJ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amazonses.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190419130522.GI39941@FreeBSD.org> Content-Type: multipart/mixed; boundary="------------A0326B08556C6D6EF3308B02" Content-Language: en-US X-SES-Outgoing: 2019.04.20-54.240.8.176 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 304096D000 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.93 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.93)[-0.928,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] Status: O X-BeenThere: svn-src-stable-12@freebsd.org X-Mailman-Version: 2.1.29 List-Id: SVN commit messages for only the 12-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:07:14 -0000 X-Original-Date: Sat, 20 Apr 2019 18:12:38 +0000 X-List-Received-Date: Tue, 03 Sep 2019 14:07:14 -0000 This is a multi-part message in MIME format. --------------A0326B08556C6D6EF3308B02 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 4/19/19 6:05 AM, Glen Barber wrote: > On Thu, Apr 18, 2019 at 10:02:53PM +0000, Colin Percival wrote: >> On 11/24/18 9:47 AM, Glen Barber wrote: >>> Log: >>> Revert r340161 in stable/12, setting the default pkg(8) repository back >>> to 'latest' from 'quarterly' prior to branching releng/12.0. >> It looks like this is incorrect for non-x86 architectures. Portmgr may >> correct me here, but it looks like "latest" builds are only done on non-x86 >> architectures on HEAD. (The same problem also applies on stable/11.) >> >> I'm guessing that the answer here is to have different package configurations >> installed depending on the architecture; I knew how to do this with the old >> style of src/etc but I'm not sure how to do it now that pkgbase has spread >> configuration files all over the tree. > > For 13.0-CURRENT, both latest and quarterly are updated. For non-x86 on > 12.0-STABLE and 11.2-STABLE, quarterly is updated (not latest), so from > a general sense of this particular commit, it is correct. > > But you are also correct in your assertion that the current default > (latest) for non-x86 does appear to be incorrect. I think this patch does what we need in stable/12 -- installing a different FreeBSD.conf file depending on whether TARGET_ARCH is amd64/i386. I'm not sure if we should have anything similar in HEAD since we want to use "latest" packages on all architectures there; we might want to have both configuration files in HEAD but always install the same one there. Let me know what you'd like done; this is the last issue (aside from MFCs) blocking ARM64 AMIs from working on stable/12. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid --------------A0326B08556C6D6EF3308B02 Content-Type: text/x-patch; name="FreeBSD-conf.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="FreeBSD-conf.diff" Index: usr.sbin/pkg/FreeBSD.conf =================================================================== --- usr.sbin/pkg/FreeBSD.conf (revision 346346) +++ usr.sbin/pkg/FreeBSD.conf (nonexistent) @@ -1,16 +0,0 @@ -# $FreeBSD$ -# -# To disable this repository, instead of modifying or removing this file, -# create a /usr/local/etc/pkg/repos/FreeBSD.conf file: -# -# mkdir -p /usr/local/etc/pkg/repos -# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf -# - -FreeBSD: { - url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", - mirror_type: "srv", - signature_type: "fingerprints", - fingerprints: "/usr/share/keys/pkg", - enabled: yes -} Property changes on: usr.sbin/pkg/FreeBSD.conf ___________________________________________________________________ Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Index: usr.sbin/pkg/FreeBSD.conf.latest =================================================================== --- usr.sbin/pkg/FreeBSD.conf.latest (nonexistent) +++ usr.sbin/pkg/FreeBSD.conf.latest (working copy) @@ -0,0 +1,16 @@ +# $FreeBSD: stable/12/usr.sbin/pkg/FreeBSD.conf 340905 2018-11-24 17:47:53Z gjb $ +# +# To disable this repository, instead of modifying or removing this file, +# create a /usr/local/etc/pkg/repos/FreeBSD.conf file: +# +# mkdir -p /usr/local/etc/pkg/repos +# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf +# + +FreeBSD: { + url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", + mirror_type: "srv", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes +} Index: usr.sbin/pkg/FreeBSD.conf.quarterly =================================================================== --- usr.sbin/pkg/FreeBSD.conf.quarterly (nonexistent) +++ usr.sbin/pkg/FreeBSD.conf.quarterly (working copy) @@ -0,0 +1,16 @@ +# $FreeBSD: stable/12/usr.sbin/pkg/FreeBSD.conf 340905 2018-11-24 17:47:53Z gjb $ +# +# To disable this repository, instead of modifying or removing this file, +# create a /usr/local/etc/pkg/repos/FreeBSD.conf file: +# +# mkdir -p /usr/local/etc/pkg/repos +# echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf +# + +FreeBSD: { + url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly", + mirror_type: "srv", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes +} Index: usr.sbin/pkg/Makefile =================================================================== --- usr.sbin/pkg/Makefile (revision 346346) +++ usr.sbin/pkg/Makefile (working copy) @@ -1,6 +1,12 @@ # $FreeBSD$ -CONFS= FreeBSD.conf +.if ${TARGET_ARCH} != "amd64" && ${TARGET_ARCH} != "i386" +CONFS= FreeBSD.conf.quarterly +.else +CONFS= FreeBSD.conf.latest +.endif +CONFSNAME= FreeBSD.conf + CONFSDIR= /etc/pkg CONFSMODE= 644 PROG= pkg --------------A0326B08556C6D6EF3308B02--