]> code.ossystems Code Review - openembedded-core.git/commit
pseudo: Fix attr errors due to incorrect library resolution issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Jun 2020 16:56:14 +0000 (17:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Jun 2020 11:27:51 +0000 (12:27 +0100)
commit82655cb26ad01de9587ef41eaef155c61c361f67
tree3e1952285a69e1dfdf8fe118bba3b15c3d503d35
parenta8e5bce0ec329e9fc4b0839e48f2dc3dfec1814d
pseudo: Fix attr errors due to incorrect library resolution issues

On a tumbleweed system, "install X Y" was showing the error:

pseudo: ENOSYS for 'fsetxattr'.

which was being caused by dlsym() for that function returning NULL. This
appears to be due to it finding an unresolved symbol in libacl for this
symbol in libattr. It hasn't been resolved so its NULL. dlerror() returns
nothing since this is a valid symbol entry, its just not the one we want.

We can add the glibc version string for the symbol we actually want so we get
that version rather than the libattr/libacl one. The calls in libattr are just
wrappers around the libc version so our attaching to the libc versions should
intercept any accesses via these too.

[YOCTO #13952]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/pseudo/files/xattr_version.patch [new file with mode: 0644]
meta/recipes-devtools/pseudo/pseudo_git.bb