Solved readline 8.2.10

FreeBSD 13.2-RELEASE-p8

devel/readline was installed a few days ago with no errors. However I'm now being informed that ...

Code:
readline-8.2.10                    >   succeeds index (index has 8.2.:[.1]})

and to me that index looks corrupted. This isn't a major issue but any ideas what's gone wrong here?
 
Don't have the answers but make fetchindex seems to make it happier.
Code:
root@r430:/usr/ports/devel/ # pkg version -vIL=
readline-8.2.10                    >   succeeds index (index has 8.2.:[.1]})
root@r430:/usr/ports/devel/ # cd /usr/ports/
root@r430:/usr/ports # make fetchindex
/usr/bin/env  fetch -am -o /usr/ports/INDEX-13.xz  https://download.FreeBSD.org/ports/index/INDEX-13.xz
/usr/ports/INDEX-13.xz                                1793 kB  976 kBps    01s
root@r430:/usr/ports # pkg version -vIL=
root@r430:/usr/ports #

EDIT: but after portsnap fetch update, back to the same "succeeds index" message that I (briefly!) got rid of.

readline-8.2.:[.1]}

Is actually in the INDEX-13 file, after make fetchindex it changes to

readline-8.2.10

Running make index gives the same result in INDEX-13

readline-8.2.10
 
Well after 4 months devel/readline has just updated to 8.2.13 but I still have the same 'succeeds index' issue. Reading the following topic ...


suggests this was due to an older version of make in FreeBSD 12.4-STABLE causing it but that wasn't the case for me as I experienced this with FreeBSD 13.2-RELEASE-p8 when devel/readline updated to 8.2.10.
.

I'm now on FreeBSD 13.3-RELEASE-p3 and have tried forcing removal of devel/readline via ports to prevent it removing dependencies and re-installing it but the same issue persisits.
 
suggests this was due to an older version of make in FreeBSD 12.4-STABLE causing it but that wasn't the case for me as I experienced this with FreeBSD 13.2-RELEASE-p8
So, you build your INDEX locally yourself with make index? Cause otherwise, your local make isn't relevant and the question would be how exactly you obtained your INDEX in the first place.
 
There are 3 cron jobs that run nightly, /usr/sbin/portsnap cron, /usr/sbin/portsnap update > nul and /usr/sbin/pkg version -v -L '='
in that order.

If anything needs updating I run portupgrade -arR.
 
Get rid of portsnap. I guess the INDEX distributed by portsnap is still built on some ancient machine. It's deprecated in 13 and removed from 14 (although available as a port).

If you really think you need INDEX, either get it with make fetchindex or build it yourself locally (which is the only way to have it fully correct as soon as you do change port options btw).
 
The portsnap INDEX file and the fetchindex INDEX file are different.
Yes they are. portsnap needs its own service-side infrastructure (to prepare the diffs for the portsnap utility to download) and I assume this also creates and diffs an INDEX and it's done on some ancient system. And given portsnap was already removed from base, I see why nobody bothers investing work on its infrastructure any more.

The INDEX fetched by make fetchindex on the other hand is correct for a ports tree with all default options. But again, as soon as you change options (which affect dependencies), the only way to get a fully correct INDEX is building yourself with make index.

I personally don't bother with INDEX at all and just regularly update my ports tree to run poudriere-bulk(8) on it.
 
FreeBSD 13.3-RELEASE-p3

I must have missed a step here somewhere. As per post #14 above I have successfully moved to devel/git and I get informed by email that updates have been downloaded. However I haven't been informed of any updates to install since installing devel/git, which is about 3 weeks now. I have a suspicion it has something to do with the INDEX file as /usr/sbin/pkg version -v -L '=' does nothing. It looks like I have to run MAKE FETCHINDEX, but can't confirm this step is actually required.
 
I have a suspicion it has something to do with the INDEX file
That's right. You can download an up-to-date version of /usr/ports/INDEX-13 using cd /usr/ports && make fetchindex. If you changed config options it's better to generate that file using cd /usr/ports && make index, because changing config options may alter dependencies. Once /usr/ports/INDEX-nn is updated the pkg-utilities will automatically update INDEX-nn.db when invoked.
 
Yes, INDEX[-xx] is a generated file, so it has no place in a git repository. And as Tieks hinted again, its contents depend on port build options (and also, DEFAULT_VERSIONS, theoretically anything else that could influence how specific ports are built).

portsnap had its own infrastructure generating some INDEX for the "all default options" case (as we now know, using meanwhile outdated tools) and automatically fetched that. I always disliked the idea, because of the possible surprises for people who do build with custom build options.

Using git directly, yes, if you want anything requiring INDEX, you must fetch or build it yourself.
 
Back
Top