Index | Thread | Search

From:
"H. Hartzer" <h@hartzer.sh>
Subject:
Re: Mirroring distfiles for installed ports/packages
To:
"Stuart Henderson" <stu@spacehopper.org>
Cc:
<ports@openbsd.org>
Date:
Wed, 07 May 2025 18:51:34 +0000

Download raw body.

Thread
Hi Stuart,

Stuart Henderson wrote:
> pkg_info -Pa
>
> One way to do it is write the pkgpaths to a file and "cd /usr/ports;
> SUBDIRLIST=/tmp/pkgpaths make fetch" (that wouldn't pull in distfiles
> for dependencies though).

Thank you! For some reason, I had been running pkg_info -aQ 'keyword' to
search for packages. I guess the -a wasn't necessary, and I assumed it
meant all packages.

This left me with pkg_info -Pa | grep /, which included output like:

www/webkitgtk4,webkitgtk41

I was curious if dpb could handle it, so I ran this:

./infrastructure/bin/dpb -F 2 www/webkitgtk4,webkitgtk41

Which ran for a while and fetched a bunch of stuff.

I don't think it fetched the actual webkit distfiles, though?

$ cat /usr/ports/www/webkitgtk4/distinfo
SHA256 (webkitgtk-2.48.1.tar.xz) = mO/fIcTNyg/gtzq1qMtSCTtapS2bGwFqk/cdv6HrJY8=
SIZE (webkitgtk-2.48.1.tar.xz) = 44168216

$ find /usr/ports/distfiles -name 'webkit*'
(nothing)

-Henrich