summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2018-06-19 15:07:46 -0400
committerMike Frysinger <vapier@gentoo.org>2018-06-19 15:08:35 -0400
commit8071cfdfab2d1de53bc2963098ac9df0c73a59bd (patch)
tree8c12f271af203863e76dbc74bc9e0b66a34ddcb5 /sys-apps
parentdev-libs/spsdeclib: New package (diff)
downloadgentoo-8071cfdfab2d1de53bc2963098ac9df0c73a59bd.tar.gz
gentoo-8071cfdfab2d1de53bc2963098ac9df0c73a59bd.tar.bz2
gentoo-8071cfdfab2d1de53bc2963098ac9df0c73a59bd.zip
sys-apps/attr: add some symbol sanity checks #644048
Bug: https://bugs.gentoo.org/644048
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/attr/attr-2.4.48-r1.ebuild20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-apps/attr/attr-2.4.48-r1.ebuild b/sys-apps/attr/attr-2.4.48-r1.ebuild
index 5eb5ee5fc071..0b5b137eba15 100644
--- a/sys-apps/attr/attr-2.4.48-r1.ebuild
+++ b/sys-apps/attr/attr-2.4.48-r1.ebuild
@@ -46,6 +46,26 @@ multilib_src_configure() {
multilib_src_install() {
emake DESTDIR="${D}" install
+ # Sanity check until we track down why this is happening. #644048
+ local lib="${ED}/usr/$(get_libdir)/libattr.so.1"
+ if [[ -e ${lib} ]] ; then
+ local versions=$(readelf -V "${lib}")
+ local symbols=$(readelf -sW "${lib}")
+ if [[ "${versions}" != *"ATTR_1.0"* || \
+ "${versions}" != *"ATTR_1.1"* || \
+ "${versions}" != *"ATTR_1.2"* || \
+ "${versions}" != *"ATTR_1.3"* || \
+ "${symbols}" != *"getxattr@ATTR_1.0"* ]] ; then
+ echo "# readelf -V ${lib}"
+ echo "${versions}"
+ echo "# readelf -sW ${lib}"
+ echo "${symbols}"
+ die "symbol version sanity check failed; please comment on https://bugs.gentoo.org/644048"
+ else
+ einfo "${lib} passed symbol checks"
+ fi
+ fi
+
if multilib_is_native_abi; then
# we install attr into /bin, so we need the shared lib with it
gen_usr_ldscript -a attr