* Jan Pazdziora:
So do you recommend for fakechroot to hardcode something like
--- a/src/libfakechroot.h
+++ b/src/libfakechroot.h
@@ -224,4 +224,14 @@ int fakechroot_try_cmd_subst (char *, const char *, char *);
int snprintf(char *, size_t, const char *, ...);
#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
+
#endif
for all the arches?
Yes, the fakeroot case is really quite unusual, I think.
> There's a Fedora-specific hack in rawhide glibc to bring back
the
> __xstat and related symbols for linking. This in the process of being
> upstreamed.
Does that include __fxstatat64? And is the hack already in
glibc-2.32.9000-16.fc34 or is it on the way to rawhide?
Looking at the current rawhide buildroot, it's already there:
# eu-readelf --symbols=.dynsym /lib64/libc.so.6 | grep __fxstat64
1059: 00000000000f1880 84 FUNC GLOBAL DEFAULT 15 __fxstat64@(a)GLIBC_2.2.5
The @@ means it's available for linking.
It's missing from upstream right now, but we'll fix that before the
upstream release.
Thanks,
Florian
--
Red Hat GmbH,
https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill