Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vcpkg-tool-meson] Update meson to a more recent version #28084

Merged
merged 123 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
5f36007
update meson
Neumann-A Nov 30, 2022
12664f7
v db
Neumann-A Nov 30, 2022
e8a9ec3
install old python module
Neumann-A Dec 2, 2022
d2f214a
remove automatic python lib linkage.
Neumann-A Dec 2, 2022
9b82b99
fix patch
Neumann-A Dec 2, 2022
deaeb19
fix python dep
Neumann-A Dec 5, 2022
cb360de
remove python setting so that it can be passed via the portfile if ne…
Neumann-A Dec 5, 2022
82ab77a
remove python patch
Neumann-A Dec 5, 2022
6aabafa
Remove old module installation
Neumann-A Dec 5, 2022
034a5da
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Dec 6, 2022
d4a693b
remove everything except for osx
Neumann-A Dec 6, 2022
2a0c322
kill zlib
Neumann-A Dec 6, 2022
9e4e1de
use build.x_args
Neumann-A Dec 6, 2022
8847269
use build. also for the linker
Neumann-A Dec 6, 2022
b45ebe1
add missing \n
Neumann-A Dec 6, 2022
a8eeebe
update to 1.0 and check python version
Neumann-A Jan 5, 2023
af4f354
pass compiler flags via prog variables for sanity checks
Neumann-A Jan 5, 2023
1373c84
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 5, 2023
406fe9b
reset stuff
Neumann-A Jan 5, 2023
8e87d29
remove build. stuff
Neumann-A Jan 5, 2023
1b8c4f5
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 7, 2023
d2658d1
fix intl ?
Neumann-A Jan 7, 2023
4ad2599
bump v
Neumann-A Jan 7, 2023
ae52424
bump gobject introspection
Neumann-A Jan 7, 2023
fd44704
fix thorvg
Neumann-A Jan 7, 2023
4d52e12
v db
Neumann-A Jan 7, 2023
99d5587
fix uwp toolchain for meson.
Neumann-A Jan 8, 2023
ce09cce
meson fixes.
Neumann-A Jan 8, 2023
7a62d91
remove /TC and /TP flag
Neumann-A Jan 9, 2023
4b6e09f
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 9, 2023
680e38e
v db
Neumann-A Jan 9, 2023
390f8b3
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Feb 8, 2023
37bd521
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Feb 23, 2023
a19f3d0
move meson to DOWNLOADS.
Neumann-A Feb 23, 2023
72e237c
write version in helper port
Neumann-A Feb 23, 2023
6f75017
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Feb 24, 2023
a184de5
set meson script path correctly
Neumann-A Feb 24, 2023
3239e10
remove unnecessary variables
Neumann-A Feb 24, 2023
f2869e1
move port configs after common definitions.
Neumann-A Feb 24, 2023
5d22ad8
fix find_acquire_program
Neumann-A Feb 24, 2023
aa7cdf0
Merge branch 'update_meson_to_0.64.1' of https://github.com/Neumann-A…
Neumann-A Feb 24, 2023
ff2d520
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Feb 24, 2023
5aab89d
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Feb 27, 2023
bcd8cb9
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Feb 28, 2023
dccaca3
Merge branch 'master' of https://github.com/microsoft/vcpkg into upda…
LilyWangLL Mar 1, 2023
036efc6
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Mar 1, 2023
d8b2ecf
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Mar 2, 2023
5ef0613
v db
Neumann-A Mar 2, 2023
f2ca091
v db
Neumann-A Mar 2, 2023
f97db09
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Mar 6, 2023
3c1e2e2
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Mar 24, 2023
799fc5d
use separate arguments in script
Neumann-A Mar 24, 2023
17c480f
v db
Neumann-A Mar 24, 2023
9b705cf
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Mar 27, 2023
c3080ec
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Mar 30, 2023
eccdc49
v db
Neumann-A Mar 30, 2023
4253c22
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Apr 10, 2023
ae83875
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Apr 19, 2023
31767b2
v db
Neumann-A Apr 19, 2023
96e45d0
Merge branch 'master' into update_meson_to_0.64.1
Neumann-A Apr 21, 2023
75fbc49
only copy pdb if it exists
Neumann-A Apr 22, 2023
8b7b054
update to 1.1.0 and fix options detection
Neumann-A Apr 22, 2023
116cba6
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A May 3, 2023
bd92110
v db
Neumann-A May 3, 2023
b23d717
fix libnice-gst build
Neumann-A May 3, 2023
6ea3786
v db
Neumann-A May 3, 2023
974b25e
re-add python dep patch
Neumann-A May 3, 2023
81e67cd
v db
Neumann-A May 3, 2023
a7c734b
Fix x86 builds
Neumann-A May 4, 2023
c271a93
v db
Neumann-A May 4, 2023
825f5d4
remove double version
Neumann-A May 9, 2023
8a08729
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A May 11, 2023
93c96ea
revert uwp changes since they are not necessary here
Neumann-A May 11, 2023
a2b7069
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 1, 2024
82c40ac
upgrade to 1.3.1
Neumann-A Jan 1, 2024
1bd9b1f
port version
Neumann-A Jan 1, 2024
aff2a24
- fix path
Neumann-A Jan 1, 2024
9ebd174
Make meson in downloads more robust by having a calculated hash in th…
Neumann-A Jan 3, 2024
4e01a94
v
Neumann-A Jan 3, 2024
130d4d0
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 4, 2024
fc41c6a
add missing meson dependency to libnice
Neumann-A Jan 4, 2024
11ad785
try meson version 1.2.3 - 1.3.1 breaks transitive deps in gdk-pixbuf
Neumann-A Jan 4, 2024
9617237
back to 1.1.1
Neumann-A Jan 4, 2024
dfbceeb
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Jan 8, 2024
b50f213
add missing ,
Neumann-A Jan 13, 2024
c575c22
format
Neumann-A Jan 13, 2024
ed36237
v db
Neumann-A Jan 13, 2024
839f1d3
Merge branch 'update_meson_to_0.64.1' of https://github.com/Neumann-A…
Neumann-A Jan 13, 2024
4859873
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Jan 14, 2024
779b34a
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 22, 2024
6052354
back to 1.3.1 with fix for gdk-pixbuf
Neumann-A Jan 22, 2024
d8c42eb
Merge branch 'update_meson_to_0.64.1' of https://github.com/Neumann-A…
Neumann-A Jan 22, 2024
3e58895
v db
Neumann-A Jan 22, 2024
fee4d29
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 23, 2024
68d18cb
add meson dependency
Neumann-A Jan 23, 2024
a51bfce
fix port version
Neumann-A Jan 23, 2024
3ee7b5b
v db
Neumann-A Jan 23, 2024
8898e38
remove version.txt
Neumann-A Jan 23, 2024
bd8ac3f
add dep
Neumann-A Jan 24, 2024
e87d06e
v db
Neumann-A Jan 24, 2024
2e67bac
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Jan 24, 2024
54f252e
remove 1.1.1 from db
Neumann-A Jan 24, 2024
7f60154
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Jan 26, 2024
9bbcdef
adjust python3 for mesa?
Neumann-A Jan 30, 2024
83694f8
Merge branch 'update_meson_to_0.64.1' of https://github.com/Neumann-A…
Neumann-A Jan 30, 2024
1173ecd
Fix typo and add python dir to path
Neumann-A Jan 30, 2024
e6e19d4
cleanup
Neumann-A Jan 30, 2024
0b00d59
bump version
Neumann-A Jan 30, 2024
1fd2824
v db
Neumann-A Jan 30, 2024
fb349d7
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Feb 7, 2024
e4b8cbe
v db
Neumann-A Feb 7, 2024
a5efc83
Fix xcb-util-errors
Neumann-A Feb 9, 2024
cd53697
v db
Neumann-A Feb 9, 2024
e494f63
Merge branch 'microsoft:master' into update_meson_to_0.64.1
Neumann-A Feb 19, 2024
d3c0db0
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Feb 28, 2024
2babb21
update to 1.3.2
Neumann-A Feb 29, 2024
811a333
v db
Neumann-A Feb 29, 2024
e3ab038
Merge remote-tracking branch 'upstream/master' into update_meson_to_0…
Neumann-A Mar 8, 2024
7fc8fc4
adjust to z_vcpkg_setup_pkgconfig_path change
Neumann-A Mar 8, 2024
5df1477
v db
Neumann-A Mar 8, 2024
372a52c
restore python in the old template
Neumann-A Mar 9, 2024
9b36347
remove sysroot adjustmnet in xcb-proto
Neumann-A Mar 9, 2024
ed2ffa9
v db
Neumann-A Mar 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions ports/vcpkg-tool-meson/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

set(program MESON)
set(program_version 0.63.0)
set(program_version 0.64.1)
set(program_name meson)
set(search_names meson meson.py)
set(interpreter PYTHON3)
set(apt_package_name "meson")
set(brew_package_name "meson")
set(ref bb91cea0d66d8d036063dedec1f194d663399cdf)
set(ref e000aa11373298c6c07e264d4436b5075210bd11)
set(paths_to_search "${CURRENT_PACKAGES_DIR}/tools/meson")
set(download_urls "https://github.com/mesonbuild/meson/archive/${ref}.tar.gz")
set(download_filename "meson-${ref}.tar.gz")
set(download_sha512 e5888eb35dd4ab5fc0a16143cfbb5a7849f6d705e211a80baf0a8b753e2cf877a4587860a79cad129ec5f3474c12a73558ffe66439b1633d80b8044eceaff2da)
set(download_sha512 a51f799183bdcf309b52487e3b98b7b9a83379c411375369b24fdb1ebd3eedd550b922fe98117040c8033c8b476a12c9e730c67c403efa711802dfdca88c34c8)
set(supported_on_unix ON)
set(version_command --version)
set(extra_search_args EXACT_VERSION_MATCH)
Expand All @@ -33,6 +33,12 @@ vcpkg_find_acquire_program(PYTHON3)
# )

if(NOT "${program}")
vcpkg_download_distfile(
python_module_path
URLS https://raw.githubusercontent.com/mesonbuild/meson/9c6dab2cfd310ef2d840a2a7a479ce6b9e563b1d/mesonbuild/modules/python.py
FILENAME python-meson-module-9c6dab.py
SHA512 6e93dad2d12929757a37b97c44f697413504e7238ff7bb4e87925a3b5ba6d9eae7c25ae4d1a022ee836747fac760662a33d1ea88c7c74712673ce64e538eb691
)
Neumann-A marked this conversation as resolved.
Show resolved Hide resolved
vcpkg_download_distfile(archive_path
URLS ${download_urls}
SHA512 "${download_sha512}"
Expand All @@ -48,9 +54,11 @@ if(NOT "${program}")
SOURCE_PATH "${CURRENT_PACKAGES_DIR}"
PATCHES
meson-intl.patch
python-lib-dep.patch
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools/meson/test cases")
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-port-config.cmake" @ONLY)
file(INSTALL "${python_module_path}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/meson/mesonbuild/modules" RENAME "python.py")
Neumann-A marked this conversation as resolved.
Show resolved Hide resolved
endif()

z_vcpkg_find_acquire_program_find_internal("${program}"
Expand Down
16 changes: 16 additions & 0 deletions ports/vcpkg-tool-meson/python-lib-dep.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/tools/meson/mesonbuild/modules/python.py b/tools/meson/mesonbuild/modules/python.py
index 84ec524..2789134 100644
--- a/tools/meson/mesonbuild/modules/python.py
+++ b/tools/meson/mesonbuild/modules/python.py
@@ -305,10 +305,7 @@ def python_factory(env: 'Environment', for_machine: 'MachineChoice',
set_env('PKG_CONFIG_PATH', old_pkg_path)

candidates.append(functools.partial(wrap_in_pythons_pc_dir, pkg_name, env, kwargs, installation))
- # We only need to check both, if a python install has a LIBPC. It might point to the wrong location,
- # e.g. relocated / cross compilation, but the presence of LIBPC indicates we should definitely look for something.
- if pkg_libdir is not None:
- candidates.append(functools.partial(PythonPkgConfigDependency, pkg_name, env, kwargs, installation))
+ candidates.append(functools.partial(PythonPkgConfigDependency, pkg_name, env, kwargs, installation))

if DependencyMethods.SYSTEM in methods:
candidates.append(functools.partial(PythonSystemDependency, 'python', env, kwargs, installation))
2 changes: 1 addition & 1 deletion ports/vcpkg-tool-meson/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vcpkg-tool-meson",
"version": "0.63",
"version": "0.64.1",
"description": "Meson build system",
"homepage": "https://github.com/mesonbuild/meson",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7825,7 +7825,7 @@
"port-version": 0
},
"vcpkg-tool-meson": {
"baseline": "0.63",
"baseline": "0.64.1",
"port-version": 0
},
"vcpkg-tool-mozbuild": {
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-tool-meson.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7ac7f928585a6a56f706b7a829e768793555d2c2",
"version": "0.64.1",
"port-version": 0
},
{
"git-tree": "bee0cb6c5edf45133ebc9643b86c9c775ab36cfe",
"version": "0.63",
Expand Down