Build of samba fails when distcc is enabled in the features. Reproducible: Always Steps to Reproduce: emerge -1 samba #in system that has feature distcc enabled and actively uses it. Actual Results: Checking for program 'git' : /usr/bin/git Checking for c flags '-MMD' : yes Checking for program 'gdb' : /usr/bin/gdb Checking for header sys/utsname.h : yes Checking uname sysname type : Linux Checking uname machine type : Could not find a .d dependency file, are cflags/cxxflags overwritten? not found Checking uname release type : Could not find a .d dependency file, are cflags/cxxflags overwritten? not found Checking uname version type : Could not find a .d dependency file, are cflags/cxxflags overwritten? not found Checking for header stdio.h : Could not find a .d dependency file, are cflags/cxxflags overwritten? no Checking simple C program : Could not find a .d dependency file, are cflags/cxxflags overwritten? not found The configuration failed (complete log in /var/tmp/portage/net-fs/samba-4.11.13/work/samba-4.11.13-abi_x86_64.amd64/bin/config.log) * ERROR: net-fs/samba-4.11.13::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 5044: Called multilib-minimal_src_configure * environment, line 3459: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 3712: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 3389: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 3387: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 711: Called multilib-minimal_abi_src_configure * environment, line 3453: Called multilib_src_configure * environment, line 3934: 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' '--without-winexe' '--with-acl-support' '--without-ad-dc' '--without-dnsupdate' '--with-ads' '--disable-cephfs' '--without-cluster-support' '--enable-cups' '--without-dmapi' '--without-fam' '--without-gpgme' '--without-json' '--disable-iprint' '--with-pam' '--with-pammodulesdir=/lib64/security' '--without-quotas' '--disable-snapper' '--with-syslog' '--without-systemd' '--systemd-install-services' '--with-systemddir=/lib/systemd/system' '--with-winbind' '--disable-python' '--enable-avahi' '--with-system-mitkrb5' '--without-lttng' '--with-ldap' '--without-profiling-data' '--jobs' '1' '--with-shared-modules=idmap_ad' * environment, line 6266: Called die * The specific snippet of code: * env "${CMD[@]}" || die "configure failed" * Expected Results: A properly built samba FEATURE=-distcc emerge -1 samba does succesfully build. This probably is another victim of waf... maybe all waf wieling ebuilds need to have distcc disabled.
These are all seemingly issues with waf + distcc. I don't think we need multiple bugs for them? Just disable it with package.env for now.
Probably not, i was just bug hunting and made an issue for each problem i encountered. The big picture emerges from those. Thanks for the hint on package.env.. This was found while running an 'emerge -1e world' and solving issues with packages.
Here is the list of all ebuild containing waf: /var/db/repos/gentoo/dev-libs/serd/serd-0.30.6.ebuild /var/db/repos/gentoo/dev-libs/serd/serd-0.30.4.ebuild /var/db/repos/gentoo/dev-libs/sord/sord-9999.ebuild /var/db/repos/gentoo/dev-libs/sord/sord-0.16.6.ebuild /var/db/repos/gentoo/net-fs/samba/samba-4.12.7.ebuild /var/db/repos/gentoo/net-fs/samba/samba-4.12.6.ebuild /var/db/repos/gentoo/net-fs/samba/samba-4.13.0.ebuild /var/db/repos/gentoo/net-fs/samba/samba-4.11.11.ebuild /var/db/repos/gentoo/net-fs/samba/samba-4.11.13.ebuild /var/db/repos/gentoo/media-plugins/ams-lv2/ams-lv2-1.2.2.ebuild /var/db/repos/gentoo/media-plugins/vamp-aubio-plugins/vamp-aubio-plugins-0.5.1-r1.ebuild /var/db/repos/gentoo/media-plugins/mda-lv2/mda-lv2-1.2.4.ebuild /var/db/repos/gentoo/media-libs/aubio/aubio-0.4.9.ebuild /var/db/repos/gentoo/media-libs/lilv/lilv-0.24.10.ebuild /var/db/repos/gentoo/media-libs/lilv/lilv-0.24.8-r1.ebuild /var/db/repos/gentoo/media-libs/suil/suil-0.10.6.ebuild /var/db/repos/gentoo/media-libs/suil/suil-0.10.8.ebuild /var/db/repos/gentoo/media-libs/lvtk/lvtk-1.2.0-r1.ebuild /var/db/repos/gentoo/media-libs/ganv/ganv-1.6.0-r1.ebuild /var/db/repos/gentoo/media-libs/sratom/sratom-0.6.4.ebuild /var/db/repos/gentoo/media-libs/sratom/sratom-0.6.6.ebuild /var/db/repos/gentoo/media-libs/lv2/lv2-1.18.0.ebuild /var/db/repos/gentoo/media-libs/raul/raul-1.0.0_pre20200718.ebuild /var/db/repos/gentoo/media-libs/raul/raul-9999.ebuild /var/db/repos/gentoo/sys-libs/tdb/tdb-1.4.3.ebuild /var/db/repos/gentoo/sys-libs/tevent/tevent-0.10.2.ebuild /var/db/repos/gentoo/sys-libs/ldb/ldb-2.2.0-r1.ebuild /var/db/repos/gentoo/sys-libs/ldb/ldb-2.1.4-r1.ebuild /var/db/repos/gentoo/sys-libs/ldb/ldb-2.0.12-r1.ebuild /var/db/repos/gentoo/sys-libs/talloc/talloc-2.3.1.ebuild /var/db/repos/gentoo/media-sound/patchage/patchage-1.0.2.ebuild /var/db/repos/gentoo/media-sound/jack2/jack2-9999.ebuild /var/db/repos/gentoo/media-sound/jack2/jack2-1.9.14.ebuild /var/db/repos/gentoo/media-sound/jalv/jalv-1.6.4.ebuild /var/db/repos/gentoo/media-sound/ardour/ardour-6.2-r1.ebuild /var/db/repos/gentoo/media-sound/ardour/ardour-9999.ebuild /var/db/repos/gentoo/media-sound/ardour/ardour-6.3.ebuild /var/db/repos/gentoo/media-sound/guitarix/guitarix-0.39.0.ebuild /var/db/repos/gentoo/media-sound/guitarix/guitarix-9999.ebuild /var/db/repos/gentoo/media-sound/guitarix/guitarix-0.40.0.ebuild /var/db/repos/gentoo/media-sound/guitarix/guitarix-0.41.0.ebuild /var/db/repos/gentoo/net-misc/ntpsec/ntpsec-1.1.8.ebuild /var/db/repos/gentoo/net-misc/ntpsec/ntpsec-9999.ebuild /var/db/repos/gentoo/net-misc/ntpsec/ntpsec-1.1.9.ebuild /var/db/repos/gentoo/net-misc/ntpsec/ntpsec-1.1.7-r1.ebuild /var/db/repos/gentoo/media-video/mpv/mpv-0.32.0-r1.ebuild /var/db/repos/gentoo/media-video/mpv/mpv-9999.ebuild /var/db/repos/gentoo/sci-electronics/drahnr-oregano/drahnr-oregano-0.84.40.ebuild Mythtv disables distcc, maybe the waf-utils.eclass needs to dom something along: has distcc "${FEATURES}" || myconf+=(--disable-distcc) Or remove distcc from FEATURES.
I have the same problem. (In reply to Sam James from comment #1) > These are all seemingly issues with waf + distcc. I don't think we need > multiple bugs for them? I don't know what is "waf" > > Just disable it with package.env for now. Do you mean "disable distcc just for samba" or something else ?
(In reply to Christophe PEREZ from comment #4) > I have the same problem. > > (In reply to Sam James from comment #1) > > These are all seemingly issues with waf + distcc. I don't think we need > > multiple bugs for them? > > I don't know what is "waf" > > > > > Just disable it with package.env for now. > > Do you mean "disable distcc just for samba" or something else ? It's the build system which Samba and friends (among others) use. You can disable it for Samba and e.g. talloc with https://wiki.gentoo.org/wiki//etc/portage/package.env
(In reply to Sam James from comment #5) > > Do you mean "disable distcc just for samba" or something else ? > > It's the build system which Samba and friends (among others) use. You can > disable it for Samba and e.g. talloc with > https://wiki.gentoo.org/wiki//etc/portage/package.env I know HOW to disable, but you never say WHAT to disable. Do you talk about "distcc" or "something else" ?
*** Bug 835997 has been marked as a duplicate of this bug. ***
Yes use package.env to set FEATURES="-distcc" for samba and friends.
*** Bug 881491 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 581900 ***