Skip to content

bmake: fix cross - #462500

Merged
alyssais merged 1 commit into
NixOS:stagingfrom
siraben:bmake-cross-fix
May 18, 2026
Merged

alyssais merged 1 commit into
NixOS:stagingfrom
siraben:bmake-cross-fix

Conversation

@siraben

@siraben siraben commented Nov 17, 2025 •

Copy link
Copy Markdown
Member

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@siraben

siraben commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 462500 --package pkgsCross.aarch64-multiplatform.bmake
Commit: 0dc146616a6e25d032b43a68891fabd7a86bcb9c


x86_64-linux

✅ 2 packages built:
  • pkgsCross.aarch64-multiplatform.bmake
  • pkgsCross.aarch64-multiplatform.bmake.man (pkgsCross.aarch64-multiplatform.bmake.man.man)

@nixpkgs-ci
nixpkgs-ci Bot requested a review from thoughtpolice November 17, 2025 07:22
@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. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Nov 17, 2025
@siraben
siraben changed the base branch from master to staging November 17, 2025 08:46
@nixpkgs-ci nixpkgs-ci Bot closed this Nov 17, 2025
@nixpkgs-ci nixpkgs-ci Bot reopened this Nov 17, 2025
@siraben

siraben commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 462500 --package pkgsCross.gnu64.bmake
Commit: 0dc146616a6e25d032b43a68891fabd7a86bcb9c


aarch64-darwin

❌ 2 packages failed to build:
  • pkgsCross.gnu64.bmake
  • pkgsCross.gnu64.bmake.man (pkgsCross.gnu64.bmake.man.man)

@ofborg ofborg Bot added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Nov 17, 2025
@siraben

siraben commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

Cross-compilation on darwin failed because of a transitive failure, gnugrep.

@siraben

siraben commented Apr 13, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 462500 --package pkgsCross.gnu64.bmake
Commit: 24efe3503be871b3313cfef4183b9bbeff1b475e


x86_64-linux

✅ 2 packages built:
  • pkgsCross.gnu64.bmake
  • pkgsCross.gnu64.bmake.man (pkgsCross.gnu64.bmake.man.man)

@siraben

This comment was marked as outdated.

@siraben

siraben commented Apr 15, 2026

Copy link
Copy Markdown
Member Author

When I build with nix build .#pkgsCross.gnu64.bmake it works on my aarch64-darwin, don't know why it's not working with nixpkgs-review

Comment thread pkgs/by-name/bm/bmake/package.nix Resolved
@siraben
siraben force-pushed the bmake-cross-fix branch from ca41e19 to 9b0c0eb Compare May 13, 2026 20:27
@nixpkgs-ci nixpkgs-ci Bot added the 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. label May 13, 2026
@siraben
siraben force-pushed the bmake-cross-fix branch from 9b0c0eb to aabc487 Compare May 13, 2026 23:22
Comment thread pkgs/by-name/bm/bmake/package.nix Resolved
Comment thread pkgs/by-name/bm/bmake/package.nix Resolved
@siraben
siraben force-pushed the bmake-cross-fix branch from aabc487 to ab4e897 Compare May 17, 2026 18:39
@siraben
siraben force-pushed the bmake-cross-fix branch from ab4e897 to 8a93a5d Compare May 17, 2026 20:51
@alyssais
alyssais added this pull request to the merge queue May 18, 2026
Merged via the queue into NixOS:staging with commit 14b995a May 18, 2026
25 of 28 checks passed
al3xtjames added a commit to al3xtjames/nixpkgs that referenced this pull request May 24, 2026
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
andrewzah pushed a commit to andrewzah/nixpkgs that referenced this pull request May 26, 2026
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
@siraben
siraben deleted the bmake-cross-fix branch August 10, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 6.topic: cross-compilation Building packages on a different platform than they will be used on 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