Skip to content

pkgsStatic.glib: fix build#191197

Merged
Ma27 merged 1 commit intoNixOS:stagingfrom
alyssais:glib-static-tests
Sep 17, 2022
Merged

pkgsStatic.glib: fix build#191197
Ma27 merged 1 commit intoNixOS:stagingfrom
alyssais:glib-static-tests

Conversation

@alyssais
Copy link
Copy Markdown
Member

Description of changes

Since #183507, glib's tests are built (but not run by default) in pkgsStatic. This broke the build because some of the tests required shared libraries. This patch (which is awaiting review upstream) disables building those libraries and any tests that depend on them in a static-only build.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Since 9f309c8 ("stdenv: mesonFlags: use canExecute in needs_exe_wrapper"),
glib's tests are built (but not run by default) in pkgsStatic.  This
broke the build because some of the tests required shared libraries.
This patch (which is awaiting review upstream) disables building those
libraries and any tests that depend on them in a static-only build.
@alyssais alyssais added the 6.topic: static Static builds (e.g. pkgsStatic) label Sep 14, 2022
@ofborg ofborg bot added 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-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Sep 14, 2022
@7c6f434c
Copy link
Copy Markdown
Member

The patch looks good, in my opinion

@Ma27 Ma27 merged commit 39dd03d into NixOS:staging Sep 17, 2022
@alyssais alyssais deleted the glib-static-tests branch September 18, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: static Static builds (e.g. pkgsStatic) 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-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants