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

Bug 600832

Summary: net-fs/cifs-utils-6.6-r2[-ads,-creds]: configure failed: configure: error: keyutils.h not found, consider installing keyutils-libs-devel.
Product: Gentoo Linux Reporter: Nick Reale <NReale3370>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: RESOLVED FIXED    
Severity: normal CC: ostash
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge info

Description Nick Reale 2016-11-25 17:35:46 UTC
Created attachment 454356 [details]
build.log

When trying to emerge cifs-utils, using the "pam" and "caps" USE flags, the compile fails with:

[ebuild     U ] net-fs/cifs-utils-6.6-r2 [6.6-r1] USE="caps pam -acl -ads -caps-ng -creds" 

checking keyutils.h usability... no
checking keyutils.h presence... no
checking for keyutils.h... no
configure: WARNING: keyutils.h not found, consider installing keyutils-libs-devel. Disabling cifs.upcall.
configure: WARNING: keyutils.h not found, consider installing keyutils-libs-devel. Disabling cifs.idmap.
checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether WBC_ID_TYPE_BOTH enum value is defined... no
checking for keyutils.h... (cached) no
configure: error: keyutils.h not found, consider installing keyutils-libs-devel.
Comment 1 Nick Reale 2016-11-25 17:36:14 UTC
Created attachment 454358 [details]
emerge info
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-11-25 22:02:18 UTC
commit 9bd5c23e4f377a62b9c448ffb3aa305e34373321
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Fri Nov 25 23:00:22 2016

    net-fs/cifs-utils: Make dependency on sys-apps/keyutils unconditional.

    This fixes bug #600832

    Package-Manager: portage-2.3.2
Comment 3 Nick Reale 2016-11-25 23:51:49 UTC
Experimenting on my end this afternoon, I think keyutils is only required for the pam USE flag.  I disabled the pam flag and it compiled fine.
Comment 4 SpanKY gentoo-dev 2017-02-12 08:09:12 UTC
*** Bug 608968 has been marked as a duplicate of this bug. ***
Comment 5 Ostashevskyi Viktor 2017-02-12 14:31:11 UTC
Why do we require keyutils both when creds is set and when not?

RDEPEND="
        !net-fs/mount-cifs
        !<net-fs/samba-3.6_rc1
        sys-apps/keyutils
        ads? (
                sys-libs/talloc
                virtual/krb5
        )
        caps? ( !caps-ng? ( sys-libs/libcap ) )
        caps? ( caps-ng? ( sys-libs/libcap-ng ) )
        creds? ( sys-apps/keyutils )
        pam? ( virtual/pam )
"
Comment 6 Larry the Git Cow gentoo-dev 2022-07-28 19:04:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03369cd396fa27bebdc06e62f17930a8bb7e6c06

commit 03369cd396fa27bebdc06e62f17930a8bb7e6c06
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2022-07-28 18:57:52 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2022-07-28 19:04:16 +0000

    net-fs/cifs-utils: only require keyutils for USE ads, creds, or pam
    
    Closes: https://bugs.gentoo.org/600832
    Closes: https://bugs.gentoo.org/784833
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-fs/cifs-utils/cifs-utils-6.15-r1.ebuild | 142 ++++++++++++++++++++++++++++
 1 file changed, 142 insertions(+)