Created attachment 264302 [details] src.conf I build FreeBSD from source by following stable/15 branch. I disable some components via /etc/src.conf and I also use META_MODE. Issuing `make packages` in /usr/src results in failure due to etcupdate.8.gz Full build log, src.conf and src-env.conf attached.
Created attachment 264303 [details] src-env.conf
Created attachment 264304 [details] full build log (compressed)
I did run `make buildworld` and `make buildkernel` prior to `make packages` to clarify the steps.
the make packages output suggests that etcupdate.8.gz is not being built: --- realinstall_subdir_usr.sbin/etcupdate --- install -N /usr/src/etc -U -M /usr/obj/usr/src/amd64.amd64/worldstage/var/src/distfiles/METALOG -D /usr/obj/usr/src/amd64.amd64/worldstage/var/src/distfiles -T package=utilities -o root -g wheel -m 444 etcupdate.8.gz /usr/obj/usr/src/amd64.amd64/worldstage/usr/share/man/man8/ install: etcupdate.8.gz: No such file or directory *** [realmaninstall-MAN] Error code 71 however i can't produce this with the provided src.conf, even building from a clean objdir, and regardless of meta mode setting. could you please provide the output from make buildworld as well?
^Triage: Remove regression keyword. pkgbase wasn't a supported installation option in 14.x, so even if it doesn't work in 15.0, this isn't a regression.
Created attachment 264340 [details] make buildworld (compressed)
from what i seeing, etcupdate did build. ls -l /usr/obj/usr/src/amd64.amd64/usr.sbin/etcupdate/ total 33 KB -rw-r--r-- 1 0 0 982B 5 жовт. 07:47:37 2025 _SCRIPTSINS_etcupdate.sh.meta drwxrwxr-x 2 0 0 256B 6 жовт. 10:39:34 2025 ./ drwxrwxr-x 200 0 0 13K 6 жовт. 10:45:46 2025 ../ -rw-r--r-- 1 0 0 6,7K 6 жовт. 10:39:34 2025 etcupdate.8.gz -rw-r--r-- 1 0 0 1,5K 6 жовт. 10:39:34 2025 etcupdate.8.gz.meta -rw-r--r-- 1 0 0 977B 5 жовт. 07:47:37 2025 realmaninstall-MAN.meta
err, only man pages compressed is what i meant to write in comment
there is something going on with your "make buildworld" involving /var/src/distfiles. i don't know what this is, and i cannot find any reference to it in the src tree. do you know what this is? can you confirm you're using a clean src tree with no local changes?
followup question: are you setting DISTDIR anywhere during the build?
i have DISTDIR= /var/src/distfiles that is set for the port's distfiles, according to man 5 make.conf DISTDIR (str) Where distfiles are kept. Normally, this is distfiles in PORTSDIR. it is set in my /etc/make.conf. make buildworld was performed in clean state and with clean /usr/obj ( i did run make clean in /usr/src ) Also, my /usr/obj is on tmpfs if it matters. There is no more other settings on my system.
PORTSDIR= /home/oleh/development/git/ports DISTDIR= /var/src/distfiles WRKDIRPREFIX= /tmp/port-build PACKAGES= /var/src/packages this is what I have in /etc/make.conf. nothing against documented variables.
the problem here is that DISTDIR is used in both src and ports with a completely different meaning. you can't have DISTDIR set when building src packages, or the build will fail (it's used for some non-pkgbase targets). as a workaround, you can try something like this in /etc/make.conf: .if ${PWD:M/usr/ports*} DISTDIR=/var/src/distfiles .endif a proper fix here probably requires renaming one or both variables. neither is documented in make.conf(5), so i'm not sure which is more widely used.
this, indeed, allowed to build packages.to me this was not known fact about DISTDIR
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f7dc7d7af3683836fcca68018a678b242d2e2620 commit f7dc7d7af3683836fcca68018a678b242d2e2620 Author: Lexi Winter <ivy@FreeBSD.org> AuthorDate: 2025-10-08 03:22:32 +0000 Commit: Lexi Winter <ivy@FreeBSD.org> CommitDate: 2025-10-08 03:22:32 +0000 Makefile: Force DISTDIR=/ for (update-)packages The make(1) variable DISTDIR is used by both ports and src with a different meaning. Some users may set DISTDIR in /etc/make.conf for ports, which previously worked fine when building src since the src targets which used this variable were not very commonly used (mainly, make distributeworld). Unfortunately, with pkgbase becoming the default, this is no longer true since make (update-)packages invokes make stageworld, which is sensitive to DISTDIR, and these users find that their build now fails. A correct fix for this probably requires renaming one or both of the DISTDIR variables, but for now, work around the problem by setting DISTDIR=/ for the user-facing pkgbase targets, packages and update-package. Since setting DISTDIR doesn't work for these targets anyway, this should not break any existing configurations. MFC after: 1 week PR: 290010 Reported by: Oleh Vinichenko <moonlapse81@gmail.com> Reviewed by: imp, bapt Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D52929 Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3e25b34d0159283490a3a8fa9a381cf80f177e5c commit 3e25b34d0159283490a3a8fa9a381cf80f177e5c Author: Lexi Winter <ivy@FreeBSD.org> AuthorDate: 2025-10-08 03:22:32 +0000 Commit: Lexi Winter <ivy@FreeBSD.org> CommitDate: 2025-10-10 04:29:35 +0000 Makefile: Force DISTDIR=/ for (update-)packages The make(1) variable DISTDIR is used by both ports and src with a different meaning. Some users may set DISTDIR in /etc/make.conf for ports, which previously worked fine when building src since the src targets which used this variable were not very commonly used (mainly, make distributeworld). Unfortunately, with pkgbase becoming the default, this is no longer true since make (update-)packages invokes make stageworld, which is sensitive to DISTDIR, and these users find that their build now fails. A correct fix for this probably requires renaming one or both of the DISTDIR variables, but for now, work around the problem by setting DISTDIR=/ for the user-facing pkgbase targets, packages and update-package. Since setting DISTDIR doesn't work for these targets anyway, this should not break any existing configurations. MFC after: 1 week PR: 290010 Reported by: Oleh Vinichenko <moonlapse81@gmail.com> Reviewed by: imp, bapt Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D52929 (cherry picked from commit f7dc7d7af3683836fcca68018a678b242d2e2620) Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=182eef99ee7ba237f7f302ac4a2cda7b9babac23 commit 182eef99ee7ba237f7f302ac4a2cda7b9babac23 Author: Lexi Winter <ivy@FreeBSD.org> AuthorDate: 2025-10-08 03:22:32 +0000 Commit: Lexi Winter <ivy@FreeBSD.org> CommitDate: 2025-10-10 06:15:56 +0000 Makefile: Force DISTDIR=/ for (update-)packages The make(1) variable DISTDIR is used by both ports and src with a different meaning. Some users may set DISTDIR in /etc/make.conf for ports, which previously worked fine when building src since the src targets which used this variable were not very commonly used (mainly, make distributeworld). Unfortunately, with pkgbase becoming the default, this is no longer true since make (update-)packages invokes make stageworld, which is sensitive to DISTDIR, and these users find that their build now fails. A correct fix for this probably requires renaming one or both of the DISTDIR variables, but for now, work around the problem by setting DISTDIR=/ for the user-facing pkgbase targets, packages and update-package. Since setting DISTDIR doesn't work for these targets anyway, this should not break any existing configurations. MFC after: 1 week PR: 290010 Reported by: Oleh Vinichenko <moonlapse81@gmail.com> Reviewed by: imp, bapt Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D52929 (cherry picked from commit f7dc7d7af3683836fcca68018a678b242d2e2620) Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)