Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580812 - net-fs/samba-4.4.2 automagic dependency on dev-libs/libaio
Summary: net-fs/samba-4.4.2 automagic dependency on dev-libs/libaio
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-22 10:27 UTC by Timo Gurr (RETIRED)
Modified: 2020-01-07 21:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr (RETIRED) gentoo-dev 2016-04-22 10:27:05 UTC
When libaio is around during build time samba links to it:

>>> package: dev-libs/libaio-0.3.110
 *  - /lib/libaio.so.1
 *  - /lib/libaio.so.1.0.1
 *      used by /usr/lib/samba/vfs/aio_linux.so (net-fs/samba-4.4.2)

I could observe this problem on different systems, samba is build with:

[ebuild   R   #] net-fs/samba-4.4.2::gentoo  USE="acl addns ads gnutls ldap pam system-mitkrb5 winbind -addc -avahi -client -cluster -cups -dmapi -fam -iprint -quota (-selinux) -syslog -systemd {-test}" PYTHON_TARGETS="python2_7" 0 KiB
Comment 1 Fab 2016-04-29 10:17:00 UTC
Confirming this.

Building samba-4.2.11 package on a build farm with USE="-aio" but with dev-libs/libaio installed, then emerging the samba tbz2 package on clients systems on the local network results in :

>  # revdep-rebuild -i -- -avk
>  * Configuring search environment for revdep-rebuild
>
>  * Checking reverse dependencies
>  * Packages containing binaries and libraries broken by a package update
>  * will be emerged.

>  * Collecting system binaries and libraries
>  * Generated new 1_files.rr
>  * Collecting complete LD_LIBRARY_PATH
>  * Generated new 2_ldpath.rr
>  * Checking dynamic linking consistency
> [ 83% ]  *   broken /usr/lib64/samba/vfs/aio_linux.so (requires libaio.so.1)
> [ 100% ]
Comment 2 János Tóth F. 2016-10-07 08:02:10 UTC
Actually, this "bug" is the only thing which makes it possible to use the aio_linux VFS modul sincs the aio useflag disappeared for the recent (~amd64) samba ebuilds (which used to pull in libaio).

I think somebody misinterpreted the Samba changelog about dropping the POSIX AIO support. That was a different thing (I don't even know if the POSIX AIO solution really required libaio or not, I never tried to use that one) but this kernel call based custom VFS module (which is still available in Samba 4.5) actually depends on libaio.

So, if you want Samba to be fully functional (including the aio_linux VFS module), all you can do is manually emerging libaio and let samba passively (not explicitly guided by relevant useflag) find it.


I think the aio useflag should be restored (to support aio_linux) and only then this bug should be fixed (to really kill aio if it's actually desired).
Comment 3 Ben Kohler gentoo-dev 2020-01-07 21:19:36 UTC
All current samba ebuild depend directly on libaio