package/fakeroot: add upstream patches to fix glibc 2.33 compatibility
PATCH 1/1 package/fakeroot: add upstream patches to fix glibc 2.33 compatibility
Glibc 2.33 removed _STAT_VER. On host systems, which updated to glibc 2.33, building host-fakeroot breaks:
```
In file included from communicate.h:20,
from libfakeroot.c:60:
libfakeroot.c: In function ?chown?:
libfakeroot.c:99:40: error: ?_STAT_VER? undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
```The issue has been discussed on some system package threads, e.g.:
https://bugs.archlinux.org/task/69572
https://bugzilla.redhat.com/show_bug.cgi?id=1889862#c13
A patch set was prepared by Ilya Lipnitskiy which included two other patches not related to the glibc 2.33 compatibility and prepared as merge request for upstream:
https://www.mail-archive.com/openwrt-devel at lists.openwrt.org/msg57280.html
Upstream accepted the merge request:
https://salsa.debian.org/clint/fakeroot/-/merge_requests/10
Note, that this patch series only contains the necessay patches for glibc 2.33 compatibility.
--- ...fine-_STAT_VER-if-not-already-define.patch | 45 +++++++++++ ...d-wrappers-for-new-glibc-2.33-symbol.patch | 80 +++++++++++++++++++ ....ac-fix-__xmknod-at-pointer-argument.patch | 66 +++++++++++++++ package/fakeroot/fakeroot.mk | 1 + 4 files changed, 192 insertions(+) create mode 100644 package/fakeroot/0005-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch create mode 100644 package/fakeroot/0006-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch create mode 100644 package/fakeroot/0007-configure.ac-fix-__xmknod-at-pointer-argument.patch
package/fakeroot/0005-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 03bc0ee07fb6e293d081ffd8af1654788b434f6a Mon Sep 17 00:00:00 2001 +From: Ilya Lipnitskiy <[email protected]> +Date: Thu, 11 Feb 2021 20:59:25 -0800 +Subject: [PATCH 1/3] libfakeroot.c: define _STAT_VER if not already defined +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +glibc 2.33 does does declare `_STAT_VER` anymore. + +Based on patch from Jan Pazdziora: +https://lists.fedoraproject.org/archives/list/devel at lists.fedoraproject.org/message/SMQ3RYXEYTVZH6PLQMKNB3NM4XLPMNZO/ + +Backported from: feda578ca3608b7fc9a28a3a91293611c0ef47b7 + +Signed-off-by: Ilya Lipnitskiy <[email protected]> +Signed-off-by: J?rg Krause <[email protected]> +--- + libfakeroot.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/libfakeroot.c b/libfakeroot.c +index 3e80e38..14cdbc4 100644 +--- a/libfakeroot.c ++++ b/libfakeroot.c +@@ -90,6 +90,16 @@ + #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b) + #endif + ++#ifndef _STAT_VER ++ #if defined (__aarch64__) ++ #define _STAT_VER 0 ++ #elif defined (__x86_64__) ++ #define _STAT_VER 1 ++ #else ++ #define _STAT_VER 3 ++ #endif ++#endif ++ + /* + These INT_* (which stands for internal) macros should always be used when + the fakeroot library owns the storage of the stat variable. +-- +2.30.1 +
package/fakeroot/0006-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch new file +80 -0
80 lines not on this page · raw message
package/fakeroot/0007-configure.ac-fix-__xmknod-at-pointer-argument.patch new file +66 -0
66 lines not on this page · raw message
package/fakeroot/fakeroot.mk +1 -0
@@ -16,6 +16,7 @@ HOST_FAKEROOT_CONF_ENV = \ ac_cv_header_sys_capability_h=no \ ac_cv_func_capset=no # 0003-Select-TCP-when-lack-of-SYSV-IPC.patch touches configure.ac +# 0007-configure.ac-fix-__xmknod-at-pointer-argument.patch touches configure.ac HOST_FAKEROOT_AUTORECONF = YES FAKEROOT_LICENSE = GPL-3.0+ FAKEROOT_LICENSE_FILES = COPYING
Signature · 1 line
2.30.1
PATCH 1/1 package/fakeroot: add upstream patches to fix glibc 2.33 compatibility
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"J?rg" == J?rg Krause <[email protected]> writes:
Glibc 2.33 removed
_STAT_VER. On host systems, which updated to glibc 2.33, building host-fakeroot breaks:``` In file included from communicate.h:20, from libfakeroot.c:60: libfakeroot.c: In function ?chown?: libfakeroot.c:99:40: error: ?_STAT_VER? undeclared (first use in this function) 99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b) ```The issue has been discussed on some system package threads, e.g.:
https://bugs.archlinux.org/task/69572
https://bugzilla.redhat.com/show_bug.cgi?id=1889862#c13A patch set was prepared by Ilya Lipnitskiy which included two other patches not related to the glibc 2.33 compatibility and prepared as merge request for upstream:
https://www.mail-archive.com/openwrt-devel at lists.openwrt.org/msg57280.html
Quoted 7 lines
Upstream accepted the merge request:
https://salsa.debian.org/clint/fakeroot/-/merge_requests/10Note, that this patch series only contains the necessay patches for glibc 2.33 compatibility.
Signed-off-by J?rg Krause <[email protected]>
Committed to 2020.02.x, thanks.
For 2020.11.x I have backported the commit from master instead.
Signature · 1 line
Bye, Peter Korsgaard