Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749324 - net-fs/samba-4.11.13 FEATURES="distcc" - Could not find a .d dependency file, are cflags/cxxflags overwritten?
Summary: net-fs/samba-4.11.13 FEATURES="distcc" - Could not find a .d dependency file,...
Status: RESOLVED DUPLICATE of bug 581900
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 835997 881491 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-15 16:46 UTC by Nico Baggus
Modified: 2022-11-25 05:59 UTC (History)
5 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 Nico Baggus 2020-10-15 16:46:19 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-16 02:39:11 UTC
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.
Comment 2 Nico Baggus 2020-10-16 21:36:59 UTC
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.
Comment 3 Nico Baggus 2020-10-16 21:48:09 UTC
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.
Comment 4 Christophe PEREZ 2021-02-28 14:35:15 UTC
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 ?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-28 15:45:10 UTC
(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
Comment 6 Christophe PEREZ 2021-02-28 15:48:19 UTC
(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" ?
Comment 7 Ben Kohler gentoo-dev 2022-07-28 19:22:10 UTC
*** Bug 835997 has been marked as a duplicate of this bug. ***
Comment 8 Ben Kohler gentoo-dev 2022-07-28 19:23:06 UTC
Yes use package.env to set FEATURES="-distcc" for samba and friends.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-18 04:15:10 UTC
*** Bug 881491 has been marked as a duplicate of this bug. ***
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-25 05:59:45 UTC

*** This bug has been marked as a duplicate of bug 581900 ***