Skip to content

bmake: restore missing bsd.*.mk symlinks on Darwin - #523510

Merged
mdaniels5757 merged 2 commits into
NixOS:stagingfrom
al3xtjames:bmake-staging
May 25, 2026
Merged

mdaniels5757 merged 2 commits into
NixOS:stagingfrom
al3xtjames:bmake-staging

Conversation

@al3xtjames

Copy link
Copy Markdown
Contributor

bmake's installPhase was updated in #462500 to manually install the binaries and share Makefiles for bmake as the boot-strap script invokes bmake (breaking cross builds). This caused the darwin.locale build to regress as bmake could no longer find bsd.prog.mk. The install-sh script (which is invoked by the install-mk target used by the boot-strap script) creates bsd.-prefixed symlinks to the Makefiles under share on BSD systems, including Darwin. Update bmake's installPhase to invoke install-mk to ensure that the symlinks are created. install-mk does not invoke bmake so this should not break cross builds.

Things done

bmake's installPhase was updated in NixOS#462500 to manually install the
binaries and share Makefiles for bmake as the boot-strap script invokes
bmake (breaking cross builds). This caused the darwin.locale build to
regress as bmake could no longer find bsd.prog.mk [1]. The install-sh
script (which is invoked by the install-mk target used by the boot-strap
script) creates bsd.-prefixed symlinks to the Makefiles under share on
BSD systems, including Darwin. Update bmake's installPhase to invoke
install-mk to ensure that the symlinks are created. install-mk does not
invoke bmake so this should not break cross builds.

[1]: https://github.com/apple-oss-distributions/adv_cmds/blob/2bdd0b49a2d51a3249eecdb04277da034f54eca6/locale/BSDmakefile#L9
@nixpkgs-ci
nixpkgs-ci Bot requested a review from thoughtpolice May 24, 2026 02:07
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels May 24, 2026
@ofborg ofborg Bot added 6.topic: bsd Running or building packages on BSD 6.topic: darwin Running or building packages on Darwin labels May 24, 2026
@mdaniels5757

mdaniels5757 commented May 25, 2026 •

Copy link
Copy Markdown
Member

Tested by building an intermediate/bootstrap locale on aarch64-darwin using this. (No point building LLVM an extra time or two.)

@mdaniels5757
mdaniels5757 added this pull request to the merge queue May 25, 2026
Merged via the queue into NixOS:staging with commit 94f850a May 25, 2026
28 of 30 checks passed
@al3xtjames
al3xtjames deleted the bmake-staging branch May 25, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: bsd Running or building packages on BSD 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants