Le Sun, Nov 03, 2024 at 01:15:01PM +0100, Marc Espie a écrit : > On Sun, Nov 03, 2024 at 11:08:34AM +0100, Landry Breuil wrote: > > Le Sun, Nov 03, 2024 at 10:33:22AM +0100, Rafael Sadowski a écrit : > > > On Sun Nov 03, 2024 at 10:28:06AM +0100, Marc Espie wrote: > > > > pkg_mklocatedb includes an option -K that will store all pkg_create > > > > annotations such as fontdir, etc > > > > > > > > even though it makes for a much larger pkglocatedb, it can occasionally > > > > be > > > > useful for introspection purposes (like finding out if some directories > > > > contain several types of info, like info files + man pages... should be > > > > rather unlikely, I know...) > > > > > > > > Could we build this by default ? shouldn't take too much extra time. > > > > > > Storage is cheap this days, so I opt to enabled it by default without a > > > flavor. > > > > Only if it doesn't make pkg_locate much slower/results more confusing :) > > > > > answer would be yes to both > hence the flavor
i've tried building both variants in parallel, and it took the same time: Link to /usr/ports/packages/amd64/ftp/pkglocatedb-1.5.tgz 99m54.97s real 49m52.27s user 28m44.75s system Link to /usr/ports/packages/amd64/ftp/pkglocatedb-1.5-keywords.tgz 99m54.47s real 49m56.80s user 28m51.59s system the resulting db has the same size, unless i failed at something ? -rw-r--r-- 1 landry wheel 44483948 Nov 5 00:14 /usr/obj/ports/pkglocatedb-1.5-keywords/pkglocatedb-1.5/pkglocatedb -rw-r--r-- 1 landry wheel 44133124 Nov 5 00:14 /usr/obj/ports/pkglocatedb-1.5/pkglocatedb-1.5/pkglocatedb afaict it does store keywords: $locate -d /usr/obj/ports/pkglocatedb-1.5-keywords/pkglocatedb-1.5/pkglocatedb @fontdir |wc -l 196 $locate -d /usr/obj/ports/pkglocatedb-1.5/pkglocatedb-1.5/pkglocatedb @fontdir |wc -l 0 but from my understanding the flavor is mostly for development ? so yeah not enabling the feature by default makes sense. Landry