package/fakeroot: add upstream patches to fix glibc 2.33 compatibility
authorJörg Krause <joerg.krause@embedded.rocks>
Mon, 15 Feb 2021 13:47:31 +0000 (14:47 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 15 Feb 2021 22:08:05 +0000 (23:08 +0100)
commitf45925a951318e9e53bead80b363e004301adc6f
tree458d6acf5c97d25712ef37ad8a74360870c43583
parentf9596e50ece8f3ba290953b596280f976e23ec67
package/fakeroot: add upstream patches to fix glibc 2.33 compatibility

Glibc 2.33 removed `_STAT_VER`. On host machines, 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 package maintainer threads, e.g.:
https://bugs.archlinux.org/task/69572
https://bugzilla.redhat.com/show_bug.cgi?id=1889862#c13

A patch series was prepared by Ilya Lipnitskiy which included two other
patches not related to the glibc 2.33 compatibility issue and submitted as
merge request for upstream:
https://www.mail-archive.com/openwrt-devel@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.

Tested on my Arch Linux machine, building a UBIFS/OverlayFS-based root
filesystem for an i.MX6ULL target board.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Tested-by: Bartosz Bilas <b.bilas@grinn-global.com>
[Peter: drop patch numbering (PATCH x/y) as pointed out by check-package]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/fakeroot/0002-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch [new file with mode: 0644]
package/fakeroot/0003-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch [new file with mode: 0644]
package/fakeroot/0004-configure.ac-fix-__xmknod-at-pointer-argument.patch [new file with mode: 0644]
package/fakeroot/fakeroot.mk