Repository navigation
Open
Description
Summary
On base-64-lts 25.4.0, building a package from a trunk pkgsrc tree after ./bootstrap --unprivileged ends in a circular dependency on digest:
=> Bootstrap dependency digest>=20211023: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Installing dependencies for digest-20220214
...
ERROR: [bsd.pkg.mk] Circular dependency detected
Mechanism (from the tree)
mk/fetch/bsd.fetch-vars.mk:117andmk/checksum/bsd.checksum-vars.mk:22declareUSE_TOOLS+= digest:bootstrap, sodigestis expected from the bootstrap.bootstrap/bootstrapnever builds or installsdigest(no reference to it; the bootstrap prefix ends up with onlybmake,bsdinstall, and thepkg_*tools).mk/tools/digest.mk:57-69falls back toTOOLS_DEPENDS.digest = digest>=20211023:../../pkgtools/digestwhen no usable system digest is found, andpkgtools/digestitself needsdigestto build.- The base-system
/usr/bin/digeston SmartOS rejects-Vand-a BLAKE2s, so pkgsrc treats it as version 20010301 and does not use it.
Environment
- Image:
base-64-lts25.4.0, with/usr/bin/digestpresent (digest -a sha512works;digest -Vand-a BLAKE2sare rejected). - Binary repo for the other tools:
https://pkgsrc.smartos.org/packages/SmartOS/trunk/x86_64/All.
Steps to reproduce
- On a fresh 25.4.0 zone,
cd <trunk tree>/bootstrap && ./bootstrap --prefix=<P> --workdir=<W> --unprivileged. Exits 0. - Build any package that uses
USE_TOOLSwithdigest:bootstrap(for examplepkgtools/digestitself) from the same tree withPATH=<P>/bin:<P>/sbin:/usr/bin:/usr/sbin:/sbin. Result:Circular dependency detected.
Workaround that works (untrusted first pass, then rebuild)
- Build
pkgtools/digestwithbmake buildusing only the system tools: producesdigest-20220214, which runs and reports-V 20220214. - Rebuild it cleanly with that binary's output: the two binaries are identical (same SHA512).
- Passing
TOOLS_PLATFORM.digest=<that binary>to the package build removes the circular dependency. - The build then stops at
devel/nbpatchwithfatal error: tzfile.h: No such file or directory, which is libnbcompat-20251029 binary sets HAVE_TZFILE_H 1 on base-64-lts 25.4.0; devel/nbpatch fails #426.
Expected
The bootstrap should provide digest (the tree says it's a :bootstrap tool), or digest.mk should be able to use a working system digest without a -V check.
Notes
- Related: libnbcompat-20251029 binary sets HAVE_TZFILE_H 1 on base-64-lts 25.4.0; devel/nbpatch fails #426 (libnbcompat
HAVE_TZFILE_H). Fixing libnbcompat-20251029 binary sets HAVE_TZFILE_H 1 on base-64-lts 25.4.0; devel/nbpatch fails #426 alone is not enough: the circulardigestdependency stops the build beforenbpatchon a clean bootstrap.
Metadata
Metadata
Assignees
Labels
No labels
Activity
misc/rozi: update to 0.1.1