Skip to content

Comments

meson: 1.2.3 -> 1.3.0#268583

Merged
mweinelt merged 1 commit intoNixOS:stagingfrom
alyssais:meson-1.3.0
Dec 3, 2023
Merged

meson: 1.2.3 -> 1.3.0#268583
mweinelt merged 1 commit intoNixOS:stagingfrom
alyssais:meson-1.3.0

Conversation

@alyssais
Copy link
Member

@alyssais alyssais commented Nov 19, 2023

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 23.11 Release Notes (or backporting 23.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
  • Fits CONTRIBUTING.md.

@alyssais alyssais changed the base branch from master to staging November 19, 2023 21:02
@alyssais alyssais marked this pull request as draft November 19, 2023 21:04
@alyssais
Copy link
Member Author

@jtojnar it looks like the PR for the patch removed here still hasn't been merged, but now conflicts — would you mind rebasing it?

@jtojnar
Copy link
Member

jtojnar commented Nov 19, 2023

I think the patch should not be needed any more. IIRC, this was meant to fix build of fwupd, which had been passing multiple variables to define_variable, when Meson suddenly started rejecting that, where it previously silently ignored it. I believe fwupd has since fixed the build script.

@alyssais
Copy link
Member Author

Ah cool, okay. Let's try.

@ofborg build fwupd

@ofborg ofborg bot requested a review from AndersonTorres November 19, 2023 23:35
@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 Nov 19, 2023
@alyssais
Copy link
Member Author

Built fwupd locally; seems fine!

@alyssais alyssais marked this pull request as ready for review November 20, 2023 17:44
@mweinelt
Copy link
Member

mweinelt commented Dec 3, 2023

I need this update to unblock meson-python on Python 3.12 in #271586.

Specifically this patch: mesonbuild/meson@20bcca3

Not sure what we need to try before getting it merged.

@alyssais
Copy link
Member Author

alyssais commented Dec 3, 2023

I've done a big build with it (all of Spectrum) and everything on the Nixpkgs side seemed fine. I found mesonbuild/meson#12585 but it's pretty niche (affects pkgsStatic + rust — I'm not sure we even have any packages using Meson and Rust that build statically in Nixpkgs).

@AndersonTorres
Copy link
Member

AndersonTorres commented Dec 3, 2023

but it's pretty niche

famous last words Event-Triggering Speech

Nonetheless I believe we can postpone this and merge now.

@mweinelt
Copy link
Member

mweinelt commented Dec 3, 2023

@alyssais We could also just apply the small patch for now. I think, since the issue you discovered is within the area you care about, you should make the call.

@AndersonTorres
Copy link
Member

@ofborg build fwupd

@alyssais
Copy link
Member Author

alyssais commented Dec 3, 2023

We could also just apply the small patch for now.

To which small patch are you referring?

@mweinelt
Copy link
Member

mweinelt commented Dec 3, 2023

Specifically this patch: mesonbuild/meson@20bcca3

This one

@alyssais
Copy link
Member Author

alyssais commented Dec 3, 2023

Ah, I see. I misread as there being a patch for the issue I linked. I think it's fine to go ahead with this — I'm very likely the only user of the affected behaviour, and my code that uses it is not in Nixpkgs, so I don't think it's right to block Nixpkgs on it.

@mweinelt

This comment was marked as outdated.

@mweinelt
Copy link
Member

mweinelt commented Dec 3, 2023

Fixes the builds on darwin for me.

But meson apparently got the casing for the framework name wrong, which breaks it on case-sensitive file systems. Discovered by @reckenrode, who'll submit a patch upstream shortly.

diff --git a/pkgs/by-name/me/meson/package.nix b/pkgs/by-name/me/meson/package.nix
index e0b251250e87..a4918a293565 100644
--- a/pkgs/by-name/me/meson/package.nix
+++ b/pkgs/by-name/me/meson/package.nix
@@ -1,11 +1,11 @@
 { lib
 , stdenv
 , fetchFromGitHub
-, fetchpatch
 , installShellFiles
 , coreutils
 , darwin
 , libxcrypt
+, openldap
 , ninja
 , pkg-config
 , python3
@@ -14,7 +14,7 @@
 }:
 
 let
-  inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation OpenGL;
+  inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation LDAP OpenGL;
 in
 python3.pkgs.buildPythonApplication rec {
   pname = "meson";
@@ -85,7 +85,9 @@ python3.pkgs.buildPythonApplication rec {
     AppKit
     Cocoa
     Foundation
+    LDAP
     OpenGL
+    openldap
   ];
 
   checkPhase = lib.concatStringsSep "\n" ([

reckenrode added a commit to reckenrode/meson that referenced this pull request Dec 3, 2023
This was encountered while looking into an issue with
NixOS/nixpkgs#268583.

I run my Nix store on case-sensitive APFS, so the test fails due to
trying to link `-framework ldap` instead of `-framework LDAP`.
reckenrode added a commit to reckenrode/meson that referenced this pull request Dec 3, 2023
This was encountered while looking into an issue with
NixOS/nixpkgs#268583.

I run my Nix store on case-sensitive APFS, so the test fails due to
trying to link `-framework ldap` instead of `-framework LDAP`.
@alyssais alyssais force-pushed the meson-1.3.0 branch 2 times, most recently from b69b93e to 937a1f3 Compare December 3, 2023 20:50
Co-authored-by: Martin Weinelt <[email protected]>
@mweinelt mweinelt merged commit b59979c into NixOS:staging Dec 3, 2023
@alyssais alyssais deleted the meson-1.3.0 branch December 3, 2023 21:34
jpakkane pushed a commit to mesonbuild/meson that referenced this pull request Dec 4, 2023
This was encountered while looking into an issue with
NixOS/nixpkgs#268583.

I run my Nix store on case-sensitive APFS, so the test fails due to
trying to link `-framework ldap` instead of `-framework LDAP`.
nirbheek pushed a commit to mesonbuild/meson that referenced this pull request Dec 19, 2023
This was encountered while looking into an issue with
NixOS/nixpkgs#268583.

I run my Nix store on case-sensitive APFS, so the test fails due to
trying to link `-framework ldap` instead of `-framework LDAP`.
gerioldman pushed a commit to gerioldman/meson that referenced this pull request Jul 2, 2024
This was encountered while looking into an issue with
NixOS/nixpkgs#268583.

I run my Nix store on case-sensitive APFS, so the test fails due to
trying to link `-framework ldap` instead of `-framework LDAP`.
Volker-Weissmann pushed a commit to Volker-Weissmann/meson that referenced this pull request May 1, 2025
This was encountered while looking into an issue with
NixOS/nixpkgs#268583.

I run my Nix store on case-sensitive APFS, so the test fails due to
trying to link `-framework ldap` instead of `-framework LDAP`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants