summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/meson/meson.inc1
-rw-r--r--meta/recipes-devtools/meson/meson/0001-minstall-Correctly-set-uid-gid-of-installed-files.patch28
2 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/meson/meson.inc b/meta/recipes-devtools/meson/meson.inc
index 622c22affd..8454d18c28 100644
--- a/meta/recipes-devtools/meson/meson.inc
+++ b/meta/recipes-devtools/meson/meson.inc
@@ -14,6 +14,7 @@ SRC_URI = "https://github.com/mesonbuild/meson/releases/download/${PV}/meson-${P
14 file://disable-rpath-handling.patch \ 14 file://disable-rpath-handling.patch \
15 file://cross-prop-default.patch \ 15 file://cross-prop-default.patch \
16 file://0001-modules-python.py-do-not-substitute-python-s-install.patch \ 16 file://0001-modules-python.py-do-not-substitute-python-s-install.patch \
17 file://0001-minstall-Correctly-set-uid-gid-of-installed-files.patch \
17 " 18 "
18SRC_URI[sha256sum] = "72e1c782ba9bda204f4a1ed57f98d027d7b6eb9414c723eebbd6ec7f1955c8a6" 19SRC_URI[sha256sum] = "72e1c782ba9bda204f4a1ed57f98d027d7b6eb9414c723eebbd6ec7f1955c8a6"
19 20
diff --git a/meta/recipes-devtools/meson/meson/0001-minstall-Correctly-set-uid-gid-of-installed-files.patch b/meta/recipes-devtools/meson/meson/0001-minstall-Correctly-set-uid-gid-of-installed-files.patch
new file mode 100644
index 0000000000..d55b7cc7c7
--- /dev/null
+++ b/meta/recipes-devtools/meson/meson/0001-minstall-Correctly-set-uid-gid-of-installed-files.patch
@@ -0,0 +1,28 @@
1From 3f6f4964dc79ae986f44afe1687922381f237edd Mon Sep 17 00:00:00 2001
2From: Peter Kjellerstedt <pkj@axis.com>
3Date: Wed, 3 Mar 2021 12:47:28 +0100
4Subject: [PATCH] minstall: Correctly set uid/gid of installed files
5
6In commit caab4d3d, the uid and gid arguments passed to os.chown() by
7set_chown() were accidentally swapped, causing files to end up with
8incorrect owner/group if the owner and group are not the same.
9
10Upstream-Status: Backport [https://github.com/mesonbuild/meson/commit/6226ac26ef63335bfb817db02b3f295c78214a82]
11Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
12---
13 mesonbuild/minstall.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
17index 785ff5869..07da408aa 100644
18--- a/mesonbuild/minstall.py
19+++ b/mesonbuild/minstall.py
20@@ -148,7 +148,7 @@ def set_chown(path: str, user: T.Optional[str] = None, group: T.Optional[str] =
21 Use a real function rather than a lambda to help mypy out. Also real
22 functions are faster.
23 """
24- real_os_chown(path, gid, uid, dir_fd=dir_fd, follow_symlinks=follow_symlinks)
25+ real_os_chown(path, uid, gid, dir_fd=dir_fd, follow_symlinks=follow_symlinks)
26
27 try:
28 os.chown = chown