From: mhmdanas <mhmdanas@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] meson: update to 1.2.0.
Date: Tue, 01 Aug 2023 23:04:50 +0200 [thread overview]
Message-ID: <20230801210450.35LDBYPfDEXs5b4Wt07jmFtAtbXCWrbeF1r3ArQ2OxE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44306@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]
There is an updated pull request by mhmdanas against master on the void-packages repository
https://github.com/mhmdanas/void-packages meson-1.1.1
https://github.com/void-linux/void-packages/pull/44306
meson: update to 1.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
@paper42
Requires #45377 for tests to succeed.
Marking as draft pending further testing from my side.
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/44306.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-meson-1.1.1-44306.patch --]
[-- Type: text/x-diff, Size: 7852 bytes --]
From af0c9f14bf1229fbc5c55aae6ef42c38909337b9 Mon Sep 17 00:00:00 2001
From: triallax <triallax@tutanota.com>
Date: Wed, 7 Jun 2023 14:27:53 +0100
Subject: [PATCH] meson: update to 1.2.0.
---
srcpkgs/meson/patches/fix-tests.diff | 127 +++++++++++++++++++++++++++
srcpkgs/meson/template | 9 +-
2 files changed, 131 insertions(+), 5 deletions(-)
create mode 100644 srcpkgs/meson/patches/fix-tests.diff
diff --git a/srcpkgs/meson/patches/fix-tests.diff b/srcpkgs/meson/patches/fix-tests.diff
new file mode 100644
index 0000000000000..efc78e2100717
--- /dev/null
+++ b/srcpkgs/meson/patches/fix-tests.diff
@@ -0,0 +1,127 @@
+Taken from https://github.com/mesonbuild/meson/pull/12060, with minor
+modifications.
+
+diff --git a/cross/armclang-linux.txt b/cross/armclang-linux.txt
+index 863b355c345..36927b882b5 100644
+--- a/cross/armclang-linux.txt
++++ b/cross/armclang-linux.txt
+@@ -22,7 +22,7 @@ c = ['/opt/arm/developmentstudio-2019.0/sw/ARMCompiler6.12/bin/armclang', '--tar
+ #cpp = '/usr/bin/arm-linux-gnueabihf-g++'
+ ar = '/opt/arm/developmentstudio-2019.0/sw/ARMCompiler6.12/bin/armar'
+ #strip = '/usr/arm-linux-gnueabihf/bin/strip'
+-#pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
++#pkg-config = '/usr/bin/arm-linux-gnueabihf-pkg-config'
+
+ [host_machine]
+ system = 'baremetal'
+diff --git a/cross/linux-mingw-w64-32bit.txt b/cross/linux-mingw-w64-32bit.txt
+index caf1da1a045..91ad9c5029a 100644
+--- a/cross/linux-mingw-w64-32bit.txt
++++ b/cross/linux-mingw-w64-32bit.txt
+@@ -4,7 +4,7 @@ cpp = '/usr/bin/i686-w64-mingw32-g++'
+ objc = '/usr/bin/i686-w64-mingw32-gcc'
+ ar = '/usr/bin/i686-w64-mingw32-ar'
+ strip = '/usr/bin/i686-w64-mingw32-strip'
+-pkgconfig = '/usr/bin/i686-w64-mingw32-pkg-config'
++pkg-config = '/usr/bin/i686-w64-mingw32-pkg-config'
+ windres = '/usr/bin/i686-w64-mingw32-windres'
+ exe_wrapper = 'wine'
+ ld = '/usr/bin/i686-w64-mingw32-ld'
+diff --git a/cross/linux-mingw-w64-64bit.txt b/cross/linux-mingw-w64-64bit.txt
+index 7403803b4c0..08fa7041043 100644
+--- a/cross/linux-mingw-w64-64bit.txt
++++ b/cross/linux-mingw-w64-64bit.txt
+@@ -4,7 +4,7 @@ cpp = '/usr/bin/x86_64-w64-mingw32-g++'
+ objc = '/usr/bin/x86_64-w64-mingw32-gcc'
+ ar = '/usr/bin/x86_64-w64-mingw32-ar'
+ strip = '/usr/bin/x86_64-w64-mingw32-strip'
+-pkgconfig = '/usr/bin/x86_64-w64-mingw32-pkg-config'
++pkg-config = '/usr/bin/x86_64-w64-mingw32-pkg-config'
+ windres = '/usr/bin/x86_64-w64-mingw32-windres'
+ exe_wrapper = 'wine'
+ cmake = '/usr/bin/cmake'
+diff --git a/cross/none.txt b/cross/none.txt
+index 1fbe4713ac0..9eadf974c32 100644
+--- a/cross/none.txt
++++ b/cross/none.txt
+@@ -15,5 +15,5 @@ fc = ['false']
+ objc = ['false']
+ objcpp = ['false']
+ ar = ['false']
+-pkgconfig = ['false']
++pkg-config = ['false']
+ cmake = ['false']
+diff --git a/cross/ubuntu-armhf.txt b/cross/ubuntu-armhf.txt
+index 408c2ceaecb..6409e396b57 100644
+--- a/cross/ubuntu-armhf.txt
++++ b/cross/ubuntu-armhf.txt
+@@ -6,7 +6,7 @@ cpp = ['/usr/bin/arm-linux-gnueabihf-g++']
+ rust = ['rustc', '--target', 'arm-unknown-linux-gnueabihf', '-C', 'linker=/usr/bin/arm-linux-gnueabihf-gcc-7']
+ ar = '/usr/arm-linux-gnueabihf/bin/ar'
+ strip = '/usr/arm-linux-gnueabihf/bin/strip'
+-pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
++pkg-config = '/usr/bin/arm-linux-gnueabihf-pkg-config'
+ ld = '/usr/bin/arm-linux/gnueabihf-ld'
+
+ [built-in options]
+diff --git a/mesonbuild/scripts/env2mfile.py b/mesonbuild/scripts/env2mfile.py
+index 27a7dd96984..df93730424d 100755
+--- a/mesonbuild/scripts/env2mfile.py
++++ b/mesonbuild/scripts/env2mfile.py
+@@ -213,7 +213,7 @@ def detect_cross_debianlike(options: T.Any) -> MachineInfo:
+ except ValueError:
+ pass
+ try:
+- infos.binaries['pkgconfig'] = locate_path("%s-pkg-config" % host_arch)
++ infos.binaries['pkg-config'] = locate_path("%s-pkg-config" % host_arch)
+ except ValueError:
+ pass # pkg-config is optional
+ try:
+diff --git a/test cases/unit/33 cross file overrides always args/ubuntu-armhf-overrides.txt b/test cases/unit/33 cross file overrides always args/ubuntu-armhf-overrides.txt
+index a00a7d1366c..d687b29817a 100644
+--- a/test cases/unit/33 cross file overrides always args/ubuntu-armhf-overrides.txt
++++ b/test cases/unit/33 cross file overrides always args/ubuntu-armhf-overrides.txt
+@@ -6,7 +6,7 @@ cpp = '/usr/bin/arm-linux-gnueabihf-g++'
+ rust = ['rustc', '--target', 'arm-unknown-linux-gnueabihf', '-C', 'linker=/usr/bin/arm-linux-gnueabihf-gcc-7']
+ ar = '/usr/arm-linux-gnueabihf/bin/ar'
+ strip = '/usr/arm-linux-gnueabihf/bin/strip'
+-pkgconfig = '/usr/bin/arm-linux-gnueabihf-pkg-config'
++pkg-config = '/usr/bin/arm-linux-gnueabihf-pkg-config'
+
+ [properties]
+ root = '/usr/arm-linux-gnueabihf'
+diff --git a/test cases/unit/36 exe_wrapper behaviour/broken-cross.txt b/test cases/unit/36 exe_wrapper behaviour/broken-cross.txt
+index a5a39318d2c..3615f92f763 100644
+--- a/test cases/unit/36 exe_wrapper behaviour/broken-cross.txt
++++ b/test cases/unit/36 exe_wrapper behaviour/broken-cross.txt
+@@ -3,7 +3,7 @@ c = '/usr/bin/x86_64-w64-mingw32-gcc'
+ cpp = '/usr/bin/x86_64-w64-mingw32-g++'
+ ar = '/usr/bin/x86_64-w64-mingw32-ar'
+ strip = '/usr/bin/x86_64-w64-mingw32-strip'
+-pkgconfig = '/usr/bin/x86_64-w64-mingw32-pkg-config'
++pkg-config = '/usr/bin/x86_64-w64-mingw32-pkg-config'
+ windres = '/usr/bin/x86_64-w64-mingw32-windres'
+ exe_wrapper = 'broken'
+
+diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
+index 12eafd59598..4327d99fcd0 100644
+--- a/unittests/allplatformstests.py
++++ b/unittests/allplatformstests.py
+@@ -2722,7 +2722,7 @@ def test_native_dep_pkgconfig(self):
+ with tempfile.NamedTemporaryFile(mode='w', delete=False, encoding='utf-8') as crossfile:
+ crossfile.write(textwrap.dedent(
+ '''[binaries]
+- pkgconfig = '{}'
++ pkg-config = '{}'
+
+ [properties]
+
+@@ -2749,7 +2749,7 @@ def test_pkg_config_libdir(self):
+ with tempfile.NamedTemporaryFile(mode='w', delete=False, encoding='utf-8') as crossfile:
+ crossfile.write(textwrap.dedent(
+ '''[binaries]
+- pkgconfig = 'pkg-config'
++ pkg-config = 'pkg-config'
+
+ [properties]
+ pkg_config_libdir = ['{}']
diff --git a/srcpkgs/meson/template b/srcpkgs/meson/template
index c329092f20c0c..1c0ea62408a6a 100644
--- a/srcpkgs/meson/template
+++ b/srcpkgs/meson/template
@@ -1,20 +1,20 @@
# Template file for 'meson'
pkgname=meson
-version=1.1.0
+version=1.2.0
revision=1
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools"
depends="ninja python3-setuptools"
checkdepends="glib-devel gobject-introspection ninja
- gcc-objc++ clang qt5-devel cmake llvm git pkg-config vala python3-devel
- cross-arm-linux-gnueabihf"
+ gcc-objc++ clang qt5-devel qt6-tools cmake llvm git pkg-config vala
+ python3-devel cross-arm-linux-gnueabihf"
short_desc="Super fast build system"
maintainer="Michal Vasilek <michal@vasilek.cz>"
license="Apache-2.0"
homepage="https://mesonbuild.com"
changelog="https://raw.githubusercontent.com/mesonbuild/meson/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
distfiles="https://github.com/mesonbuild/meson/releases/download/${version}/meson-${version}.tar.gz"
-checksum=d9616c44cd6c53689ff8f05fc6958a693f2e17c3472a8daf83cee55dabff829f
+checksum=1c0b634fe6b6a7072e398647f1bf392048577068a5c92ae44d04085dab0ded6f
# XXX: sanitizers aren't available on musl
if [ "$XBPS_TARGET_LIBC" = glibc ]; then
@@ -31,7 +31,6 @@ post_patch() {
do_check() {
# meson depends on trillion of things to perform actual tests
# see checkdepends=() on arch
- # 1 test still fails
( CC=gcc ./run_unittests.py )
}
next prev parent reply other threads:[~2023-08-01 21:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-07 15:08 [PR PATCH] meson: update to 1.1.1 mhmdanas
2023-08-01 19:50 ` [PR PATCH] [Updated] " mhmdanas
2023-08-01 19:56 ` [PR PATCH] [Updated] meson: update to 1.2.0 mhmdanas
2023-08-01 21:04 ` mhmdanas [this message]
2023-08-05 20:02 ` mhmdanas
2023-08-06 12:50 ` [PR REVIEW] " classabbyamp
2023-08-06 12:51 ` mhmdanas
2023-08-06 14:46 ` [PR PATCH] [Updated] " mhmdanas
2023-08-08 16:05 ` mhmdanas
2023-08-10 3:52 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230801210450.35LDBYPfDEXs5b4Wt07jmFtAtbXCWrbeF1r3ArQ2OxE@z \
--to=mhmdanas@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).