From owner-freebsd-questions@freebsd.org Fri May 28 07:30:00 2021 Return-Path: Delivered-To: freebsd-questions@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 B422E64D8FB for ; Fri, 28 May 2021 07:30:00 +0000 (UTC) (envelope-from lumiwa@dismail.de) Received: from mx1.dismail.de (mx1.dismail.de [78.46.223.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mx1.dismail.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FrxCq2q0nz4XMN for ; Fri, 28 May 2021 07:29:58 +0000 (UTC) (envelope-from lumiwa@dismail.de) Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f23d985a for ; Fri, 28 May 2021 09:29:56 +0200 (CEST) Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 11b3447e for ; Fri, 28 May 2021 09:29:56 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id a98fc945 for ; Fri, 28 May 2021 09:29:56 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 6af0cf81 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Fri, 28 May 2021 09:29:54 +0200 (CEST) Date: Fri, 28 May 2021 03:29:51 -0400 From: LuMiWa To: freebsd-questions@freebsd.org Subject: Re: Updating /usr/ports Message-ID: <20210528032951.25d33aff@dismail.de> In-Reply-To: References: <20210524124023.6372a3383876a1196cf81705@3dresearch.com> <20210526001153.e668d925df825e3486c5f7b9@3dresearch.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4FrxCq2q0nz4XMN X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.10 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[78.46.223.134:from]; R_DKIM_ALLOW(-0.20)[dismail.de:s=20190914]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:78.46.223.134]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[78.46.223.134:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; DWL_DNSWL_LOW(-1.00)[dismail.de:dkim]; DKIM_TRACE(0.00)[dismail.de:+]; DMARC_POLICY_ALLOW(-0.50)[dismail.de,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:78.46.0.0/15, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[78.46.223.134:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 07:30:00 -0000 On Thu, 27 May 2021 17:01:52 -0700 Kevin Oberman wrote: > On Tue, May 25, 2021 at 9:13 PM Janos Dohanics > wrote: >=20 > > On Mon, 24 May 2021 12:35:00 -0700 > > Kevin Oberman wrote: > > > > > On Mon, May 24, 2021 at 9:41 AM Janos Dohanics > > > wrote: > > > > > > > Hello, > > > > > > > > The Handbook says "As needed, update /usr/ports after the > > > > initial Git checkout: > > > > > > > > # git -C /usr/ports pull" > > > > > > > > [root@frigg ~]# portversion -v | grep -c "<" > > > > [Reading data from pkg(8) ... - 294 packages found - done] > > > > 7 > > > > > > > > [root@frigg ~]# git -C /usr/ports pull > > > > [...] > > > > 855 files changed, 8990 insertions(+), 7435 deletions(-) > > > > > > > > [root@frigg ~]# portversion -v | grep -c "<" > > > > [Reading data from pkg(8) ... - 294 packages found - done] > > > > 7 > > > > > > > > However, you also need to 'make index' which the Handbook does > > > > not mention: > > > > > > > > [root@frigg /usr/ports]# make index > > > > > > > > [root@frigg /usr/ports]# portversion -v | grep -c "<" > > > > [Reading data from pkg(8) ... - 294 packages found - done] > > > > [Updating the portsdb in /usr/ports ... - > > > > 31205 port entries found > > > > ......... > > > > > > 1000.........2000.........3000.........4000.........5000.........6000..= .......7000.........8000.........9000.........10000.........11000.........1= 2000.........13000.........14000.........15000.........16000.........17000.= ........18000.........19000.........20000.........21000.........22000......= ...23000.........24000.........25000.........26000.........27000.........28= 000.........29000.........30000.........31000.. > > ..... > > > > done] 12 > > > > > > > > -- > > > > Janos Dohanics > > > > > > > If you don't mind being a couple of hours out of date, "make > > > -C /usr/ports feetchindex.". The index file is generated every 3 > > > hours (I think), and it's a lot faster than making it yourself. > > > > Thanks, I know about 'make fetchindex' - this happens to be a > > reasonably fast machine. > > > > My point is though that 'git -C /usr/ports pull' apparently doesn't > > update the port index, and the Handbook doesn't say you need to do > > 'make index' or 'make fetchindex'. > > > > Also, 'portsnap fetch' && 'portsnap update' did update the index. My > > reading of the Handbook was that 'git -C /usr/ports pull' alone gave > > the same result as 'portsnap fetch' && 'portsnap update'. > > > > > Also, the grep is not needed. 'pkg version -vl<" (or, "-vL=3D" to > > > catch orphaned ports) will do the same thing. Don't worry if you > > > are not using ports. pkg does exactly the same things for both > > > ports and packages except for actually building ports. I thought > > > that portversion was long gone. It's not on either v12 or 13 on > > > my systems. > > > > My bad habit, thank you for the reminder! > > > > -- > > Janos Dohanics > > > If you are trying to replace portsnap, I think the answer is > net/gitup. This only requires a single command, "gitup ports", and > you get your index updated along with updating all ports. I believe > that the plan is to put gitup into the base system fairly soon. I > have not looked at whether 14-current has gitup, yet. >=20 > And, yes, it looks like the handbook needs some work as gitup is not > yet even mentioned. Like portsnap, gitup is for people who want to > maintain an up to date ports tree, but not good for developers. They > do need to use git and either generate the index or fetch it. > -- I am using "gitup ports" and it works without problem. --=20 =E2=80=9CThinking is difficult, that=E2=80=99s why most people judge.=E2=80= =9D Carl Jung