]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 26 Jun 2020 21:53:05 +0000 (11:53 -1000)
commit60ae9e6d31dcfc06961fedf7622a204162d3f464
tree7bf956f076c258f2d8fabdb938535844ea251dc7
parent24f4f4551d220030c0f847c648a49a15bf1fe6eb
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>
(cherry picked from commit 82655cb26ad01de9587ef41eaef155c61c361f67)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/pseudo/files/xattr_version.patch [new file with mode: 0644]
meta/recipes-devtools/pseudo/pseudo_git.bb