Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672314 - =net-fs/samba-4.9.3[addc, system-mitkrb5] - src_configure(): The MIT Kerberos build of Samba as an AD DC is experimental. Therefore --with-system-mitkrb5 requires either --with-experimental-mit-ad-dc or --without-ad-dcThe MIT Kerberos build of Samba as...
Summary: =net-fs/samba-4.9.3[addc, system-mitkrb5] - src_configure(): The MIT Kerberos...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-01 06:30 UTC by Oleh
Modified: 2019-01-28 10:10 UTC (History)
0 users

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 Oleh 2018-12-01 06:30:16 UTC
As in summary

Reproducible: Always

Steps to Reproduce:
1. USE="addc" emerge samba
2. system-mitkrb5 is set enabled by default in ebuild
3. notice build failure
Actual Results:  
Checking linker accepts -Wl,-no-undefined                                                       : yes
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : no
Checking for program python                                                                     : /usr/bin/python2.7
Checking for program xsltproc                                                                   : /usr/bin/xsltproc
Checking for Python version >= 2.4.2                                                            : ok 2.7.15
Checking for python headers                                                                     : using cache
Checking for system pyldb-util (>=1.4.3 <=1.4.999)                                              : yes
Checking for system ldb (>=1.4.3 <=1.4.999)                                                     : yes
Checking for a 64-bit host to support lmdb                                                      : ok
Checking linker accepts -Wl,-no-undefined                                                       : yes
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : no
Checking linker accepts ['-Wl,--wrap=test']                                                     : yes
The MIT Kerberos build of Samba as an AD DC is experimental. Therefore --with-system-mitkrb5 requires either --with-experimental-mit-ad-dc or --without-ad-dc
 * ERROR: net-fs/samba-4.9.3::net-kit failed (configure phase):
 *   configure failed
 *
 * Call stack:
 *     ebuild.sh, line   92:  Called src_configure
 *   environment, line 3421:  Called multilib-minimal_src_configure
 *   environment, line 1994:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *   environment, line 2208:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1924:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *   environment, line 1922:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *   environment, line  465:  Called multilib-minimal_abi_src_configure
 *   environment, line 1988:  Called multilib_src_configure
 *   environment, line 2430:  Called waf-utils_src_configure '--enable-fhs' '--sysconfdir=/etc' '--localstatedir=/var' '--with-modulesdir=/usr/lib64/samba' '--with-piddir=/run/samba' '--bundled-libraries=NONE' '--builtin-libraries=NONE' '--disable-rpath' '--disable-rpath-install' '--nopyc' '--nopyo' '--with-acl-support' '--with-dnsupdate' '--with-ads' '--disable-cephfs' '--without-cluster-support' '--disable-cups' '--without-dmapi' '--without-fam' '--without-gpgme' '--with-json-audit' '--disable-iprint' '--with-pam' '--with-pammodulesdir=/lib64/security' '--without-quotas' '--without-syslog' '--without-systemd' '--with-winbind' '--disable-avahi' '--with-system-mitkrb5' '--enable-gnutls' '--without-lttng' '--with-ldap' '--with-shared-modules=idmap_ad'
Comment 1 Ivan 2019-01-28 07:44:10 UTC
I have the same problem... still no solution?
Comment 2 Ivan 2019-01-28 09:38:39 UTC
I found solution..
Note, EXTRA_ECONF doesn't work in this case
So you have to edit ebuild file 
# vi /usr/portage/net-fs/samba/samba-4.9.4-r1.ebuild

then add string "--with-experimental-mit-ad-dc" in local_myconf section
It looks like:
...
    local myconf=(
        --enable-fhs
        --sysconfdir="${EPREFIX}/etc"
        --localstatedir="${EPREFIX}/var"
        --with-modulesdir="${EPREFIX}/usr/$(get_libdir)/samba"
        --with-piddir="${EPREFIX}/run/${PN}"
        --bundled-libraries="${bundled_libs}"
        --builtin-libraries=NONE
        --disable-rpath
        --disable-rpath-install
        --nopyc
        --nopyo
        --with-experimental-mit-ad-dc
...
Then we have to make manifest:
# cd /usr/portage/net-fs/samba/
# ebuild samba-4.9.4-r1.ebuild manifest

Then we can compile and install samba witout any error :)
Comment 3 Larry the Git Cow gentoo-dev 2019-01-28 10:10:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16489c03f3f13228dddda3e442a3b5b6d6da892e

commit 16489c03f3f13228dddda3e442a3b5b6d6da892e
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-01-28 10:10:21 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-01-28 10:10:21 +0000

    net-fs/samba: Fixed build with USE="addc system-mitkrb5"
    
    Closes: https://bugs.gentoo.org/672314
    Package-Manager: Portage-2.3.58, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-fs/samba/samba-4.9.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)