[PATCH] fakeroot: fix to work with glibc 2.33
nbd at nbd.name
Thu Feb 11 05:39:17 EST 2021
On 2021-02-11 04:14, Ilya Lipnitskiy wrote:
> The following commit removed _STAT_VER definitions from glibc:
> That subsequently broke fakeroot:
> Make the patch based on Jan Pazdziora's suggestion from here:
> Tested on my x86_64 Arch Linux machine, fakeroot unit tests pass.
> Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy at gmail.com>
If I'm not misreading the code, it seems to me that this patch might be
incomplete. The old glibc version was carrying inline wrappers for stat,
stat64, etc. Because binaries compiled against the old glibc version
were only containing references to the wrapped internal functions and
never the main functions directly, fakeroot seems to be handling only
the __ prefixed internal functions.
Defining _STAT_VER fixes the compile error and should work with binaries
compiled against old glibc, but I wonder if this also works with newer
binaries that now reference different functions.
Did you explicitly test that?
Thanks for looking into this,
More information about the openwrt-devel