diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-02-21 00:50:34 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-05-01 17:06:03 -0500 |
commit | 0a81bc0366ff9f8cbbf5ea08222783a3ccba6ea5 (patch) | |
tree | dc21886bea98e765b2fa045bf8dc392824970074 /system/fakeroot/also-wrap-stat-library-call.patch | |
parent | a6f4202a9870e093a9fd488b3fcdec6eac29fc94 (diff) | |
download | packages-0a81bc0366ff9f8cbbf5ea08222783a3ccba6ea5.tar.gz packages-0a81bc0366ff9f8cbbf5ea08222783a3ccba6ea5.tar.bz2 packages-0a81bc0366ff9f8cbbf5ea08222783a3ccba6ea5.tar.xz packages-0a81bc0366ff9f8cbbf5ea08222783a3ccba6ea5.zip |
system/fakeroot: Remove glibc patch
Diffstat (limited to 'system/fakeroot/also-wrap-stat-library-call.patch')
-rw-r--r-- | system/fakeroot/also-wrap-stat-library-call.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/system/fakeroot/also-wrap-stat-library-call.patch b/system/fakeroot/also-wrap-stat-library-call.patch deleted file mode 100644 index 40c830a36..000000000 --- a/system/fakeroot/also-wrap-stat-library-call.patch +++ /dev/null @@ -1,63 +0,0 @@ -Subject: Also wrap the "stat" library call -Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de> -Date: 2021-12-20 -Bug-Debian: https://bugs.debian.org/1001961 -Forwarded: Yes - - Seems changes in glibc 2.33 caused the stat() function to be mapped - into a stat() library call instead of __xstat() as it used to be. - - However, fakeroot does not wrap this, causing files to be reported - with the real owner, not 0 as expected. - - The fix for this got a bit ugly as the abstraction in configure.ac - would not allow wrapping both "stat" and "__xstat". So enhance the - search list capabilities with an optional symbol how the wrapped - function is named internally. Also hack the parser so "stat" gets - actually probed and not mistaken for __xstat. - - Using "realstat" as a symbol is not the best choice as it might be - confusing, but "statstat" seemed even worse. - ---- a/configure.ac -+++ b/configure.ac -@@ -353,9 +353,13 @@ - - :>fakerootconfig.h.tmp - --for SEARCH in %stat f%stat l%stat f%statat %stat64 f%stat64 l%stat64 f%statat64 %mknod %mknodat; do -- FUNC=`echo $SEARCH|sed -e 's/.*%//'` -+for SEARCH in %stat s%tat@realstat f%stat l%stat f%statat %stat64 f%stat64 l%stat64 f%statat64 %mknod %mknodat; do -+ FUNC=`echo $SEARCH|sed -e 's/.*%// ; s/@.*//'` - PRE=`echo $SEARCH|sed -e 's/%.*//'` -+ SYMBOL=`echo $SEARCH|sed -e 's/.*@//'` -+ if test "$SYMBOL" = "$SEARCH" ; then -+ SYMBOL="${PRE}${FUNC}" -+ fi - FOUND= - for WRAPPED in __${PRE}x${FUNC} _${PRE}x${FUNC} __${PRE}${FUNC}13 ${PRE}${FUNC}; do - AC_CHECK_FUNCS($WRAPPED,FOUND=$WRAPPED) -@@ -366,8 +370,8 @@ - dnl for WRAPPED in _${PRE}${FUNC}; do - dnl FOUND=$WRAPPED - if test -n "$FOUND"; then -- PF=[`echo ${PRE}${FUNC}| tr '[a-z]' '[A-Z]'`] -- DEFINE_WRAP=[`echo wrap_${PRE}${FUNC}| tr '[a-z]' '[A-Z]'`] -+ PF=[`echo $SYMBOL | tr '[a-z]' '[A-Z]'`] -+ DEFINE_WRAP=[`echo wrap_${SYMBOL}| tr '[a-z]' '[A-Z]'`] - DEFINE_NEXT=[`echo wrap_${FOUND}| tr '[a-z]' '[A-Z]'`] - DEFINE_ARG=[`echo wrap_${FOUND}| tr '[a-z]' '[A-Z]'`] - AC_DEFINE_UNQUOTED(WRAP_${PF}, $FOUND) -@@ -509,6 +513,12 @@ - #define TMP_STAT __astat - #define NEXT_STAT_NOARG next___astat - -+#define WRAP_REALSTAT __astat -+#define WRAP_REALSTAT_QUOTE __astat -+#define WRAP_REALSTAT_RAW __astat -+#define TMP_REALSTAT __astat -+#define NEXT_REALSTAT_NOARG next___astat -+ - #define WRAP_LSTAT_QUOTE __astat - #define WRAP_LSTAT __astat - #define WRAP_LSTAT_RAW __astat |