lol

Merge pull request #268583 from alyssais/meson-1.3.0

meson: 1.2.3 -> 1.3.0

authored by

Martin Weinelt and committed by
GitHub
b59979cb f19f14a0

+35 -13
+27
pkgs/by-name/me/meson/007-darwin-case-sensitivity.patch
··· 1 + From a908a574daf8bac10bb2a0ee3771052d2167a85f Mon Sep 17 00:00:00 2001 2 + From: Randy Eckenrode <randy@largeandhighquality.com> 3 + Date: Sun, 3 Dec 2023 15:41:20 -0500 4 + Subject: [PATCH] Fix test failure on Darwin on a case-sensitive fs 5 + 6 + This was encountered while looking into an issue with 7 + https://github.com/NixOS/nixpkgs/pull/268583. 8 + 9 + I run my Nix store on case-sensitive APFS, so the test fails due to 10 + trying to link `-framework ldap` instead of `-framework LDAP`. 11 + --- 12 + test cases/osx/5 extra frameworks/meson.build | 2 +- 13 + 1 file changed, 1 insertion(+), 1 deletion(-) 14 + 15 + diff --git a/test cases/osx/5 extra frameworks/meson.build b/test cases/osx/5 extra frameworks/meson.build 16 + index f6c01e63a1bd..96532846c632 100644 17 + --- a/test cases/osx/5 extra frameworks/meson.build 18 + +++ b/test cases/osx/5 extra frameworks/meson.build 19 + @@ -7,7 +7,7 @@ dep_main = dependency('Foundation') 20 + assert(dep_main.type_name() == 'extraframeworks', 'type_name is ' + dep_main.type_name()) 21 + 22 + # https://github.com/mesonbuild/meson/issues/10002 23 + -ldap_dep = dependency('ldap', method : 'extraframework') 24 + +ldap_dep = dependency('LDAP', method : 'extraframework') 25 + assert(ldap_dep.type_name() == 'extraframeworks', 'type_name is ' + ldap_dep.type_name()) 26 + 27 + stlib = static_library('stat', 'stat.c', install : true, dependencies: [opengl_dep, ldap_dep])
+8 -13
pkgs/by-name/me/meson/package.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 - , fetchpatch 5 4 , installShellFiles 6 5 , coreutils 7 6 , darwin 8 7 , libxcrypt 8 + , openldap 9 9 , ninja 10 10 , pkg-config 11 11 , python3 ··· 14 14 }: 15 15 16 16 let 17 - inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation OpenGL; 17 + inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation LDAP OpenGL; 18 18 in 19 19 python3.pkgs.buildPythonApplication rec { 20 20 pname = "meson"; 21 - version = "1.2.3"; 21 + version = "1.3.0"; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "mesonbuild"; 25 25 repo = "meson"; 26 26 rev = "refs/tags/${version}"; 27 - hash = "sha256-dgYYz3tQDG6Z4eE77WO2dXdardxVzzGaFLQ5znPcTlw="; 27 + hash = "sha256-Jt3PWnbv/8P6Rvf3E/Yli2vdtfgx3CmsW+jlc9CK5KA="; 28 28 }; 29 29 30 30 patches = [ ··· 66 66 # Nixpkgs cctools does not have bitcode support. 67 67 ./006-disable-bitcode.patch 68 68 69 - # Fix passing multiple --define-variable arguments to pkg-config. 70 - # https://github.com/mesonbuild/meson/pull/10670 71 - (fetchpatch { 72 - url = "https://github.com/mesonbuild/meson/commit/d5252c5d4cf1c1931fef0c1c98dd66c000891d21.patch"; 73 - hash = "sha256-GiUNVul1N5Fl8mfqM7vA/r1FdKqImiDYLXMVDt77gvw="; 74 - excludes = [ 75 - "docs/yaml/objects/dep.yaml" 76 - ]; 77 - }) 69 + # https://github.com/mesonbuild/meson/pull/12587 70 + ./007-darwin-case-sensitivity.patch 78 71 ]; 79 72 80 73 buildInputs = lib.optionals (python3.pythonOlder "3.9") [ ··· 95 88 AppKit 96 89 Cocoa 97 90 Foundation 91 + LDAP 98 92 OpenGL 93 + openldap 99 94 ]; 100 95 101 96 checkPhase = lib.concatStringsSep "\n" ([