Date: Fri, 28 May 2021 03:29:51 -0400 From: LuMiWa <lumiwa@dismail.de> To: freebsd-questions@freebsd.org Subject: Re: Updating /usr/ports Message-ID: <20210528032951.25d33aff@dismail.de> In-Reply-To: <CAN6yY1sXbiogdGo2_1Nc4Cfoi61CR-M6zUTFsTpz8_SWj1_w_w@mail.gmail.com> References: <20210524124023.6372a3383876a1196cf81705@3dresearch.com> <CAN6yY1tjCCiSahAaVAnH2HAWuZCAw29ZEPrP2LerhEuFaK=8xw@mail.gmail.com> <20210526001153.e668d925df825e3486c5f7b9@3dresearch.com> <CAN6yY1sXbiogdGo2_1Nc4Cfoi61CR-M6zUTFsTpz8_SWj1_w_w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 27 May 2021 17:01:52 -0700 Kevin Oberman <rkoberman@gmail.com> wrote: > On Tue, May 25, 2021 at 9:13 PM Janos Dohanics <web@3dresearch.com> > wrote: >=20 > > On Mon, 24 May 2021 12:35:00 -0700 > > Kevin Oberman <rkoberman@gmail.com> wrote: > > > > > On Mon, May 24, 2021 at 9:41 AM Janos Dohanics > > > <web@3dresearch.com> 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 <format:bdb_btree> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210528032951.25d33aff>