[Bug 283340] build: distributeworld -DNO_ROOT does not set SSL cert links uname / gname in METALOG

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Jan 2025 18:40:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283340

--- Comment #3 from Jose Luis Duran <jlduran@FreeBSD.org> ---
The metalog file should have a:
    /set uname=root gname=wheel
Definition at the beginning of the file that should prevent this from
happening.

At any rate, the patch applied in 10fa3f2518d4 ("certctl: Set METALOG ownership
to root:wheel") broke my NanoBSD NO_ROOT builds (WIP) because the password
database file does not yet exist when certctl.sh is rehashed:
    install: Can't open `/usr/obj/jlduran/obj/_.w/etc/group': No such file or
directory
    install: Unable to use user and group databases in
`/usr/obj/jlduran/obj/_.w/etc': No such file or directory

One “hack” that could work is to remove the -N flag from the INSTALLFLAGS.
Or perhaps move the rehash later in the Makefile?

-- 
You are receiving this mail because:
You are the assignee for the bug.