Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 194930

Summary: =gnome-base/gnome-vfs-2.18.1:2 links to libacl.so/libattr.so when acl/attr is installed but not requested
Product: Gentoo Linux Reporter: solar (RETIRED) <solar>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description solar (RETIRED) gentoo-dev 2007-10-06 19:42:17 UTC
=gnome-base/gnome-vfs-2.18.1:2 links to libattr.so when attr is installed even when it is not a direct dependcany of gnome-vfs. 

This breakage occurred when using emerge -G world as attr wont be pulled in.

/usr/lib/gnome-vfs-2.0/modules/libfile.so will contain a DT_NEEDED entry for libattr.so.1

How to reproduce.

1)
emerge -Cq attr
emerge gnome-vfs
qlist -oe gnome-vfs | scanelf -qN libattr.so.1 -f -

2)
emerge -q attr
emerge gnome-vfs
qlist -oe gnome-vfs | scanelf -qN libattr.so.1 -f -

# Quick work around:

-IUSE="avahi doc gnutls hal ipv6 samba ssl"
+IUSE="attr avahi doc gnutls hal ipv6 samba ssl"
 
 RDEPEND=">=gnome-base/gconf-2
        >=dev-libs/glib-2.9.3
@@ -54,7 +54,7 @@
                                --with-hal-umount=/usr/bin/gnome-umount \
                                --with-hal-eject=/usr/bin/gnome-eject"
        fi
-
+       use attr || export ac_cv_lib_attr_getxattr=no
        G2CONF="${G2CONF}                 \
                --disable-schemas-install     \


# scanelf results will now be clean.
Comment 1 solar (RETIRED) gentoo-dev 2007-10-06 21:24:47 UTC
This rabbit hole goes deeper.. Same thing happens with libacl.so

We still end up with a bogus entry in the NEEDED table for libacl if the same thing happens.

We can disable linking with acl by doing
use acl  || export ac_cv_lib_acl_acl_get_file=no

but there is a defined reference to acl_get_file() ./modules/file-method-acl.c This looks like it should only happen when HAVE_POSIX_ACL is defined. 

I did not initially see a way to disable that so I just unmerge acl,attr. 
I then rebuilt gnome-vfs then fetched it and installed it locally. 
p00f desktop background,icons and menus started working again.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2007-10-06 21:52:42 UTC
Even gnome-vfs trunk completely autodetects libacl/libxattr [1]. I'll try to cook up a patch that I'll send upstream as well but since I don't (want to) have those libs on my system, I'll need help to test it out :) Thanks

[1] http://svn.gnome.org/viewcvs/gnome-vfs/trunk/configure.in?view=markup (search for ACL_LIBS for the relevant section)
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-10-06 22:55:25 UTC

*** This bug has been marked as a duplicate of bug 191426 ***
Comment 4 solar (RETIRED) gentoo-dev 2007-10-06 23:06:07 UTC
Full listing of other missing libs in this pkg.

!!! ELF DT_NEEDED orphans: gnome-base/gnome-vfs-2.18.1
!!! libgssapi_krb5.so.2 : /usr/lib/gnome-vfs-2.0/modules/libftp.so /usr/lib/gnome-vfs-2.0/modules/libhttp.so
!!! libk5crypto.so.3 : /usr/lib/gnome-vfs-2.0/modules/libftp.so /usr/lib/gnome-vfs-2.0/modules/libhttp.so
!!! libkrb5.so.3 : /usr/lib/gnome-vfs-2.0/modules/libftp.so /usr/lib/gnome-vfs-2.0/modules/libhttp.so