Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539598 - net-wireless/wpa_supplicant-2.3-r2 USE=-dbus- dbus/dbus_old.c:10:23: fatal error: dbus/dbus.h: No such file or directory
Summary: net-wireless/wpa_supplicant-2.3-r2 USE=-dbus- dbus/dbus_old.c:10:23: fatal er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 11:33 UTC by Khayyam
Modified: 2019-04-24 09:04 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,56.03 KB, text/plain)
2015-02-10 11:34 UTC, Khayyam
Details
dot-config-wpa_supplicant-2.3 (dot-config-wpa_supplicant-2.3,636 bytes, text/plain)
2015-02-10 19:20 UTC, Khayyam
Details
dot-config-wpa_supplicant-2.3-r2 (dot-config-wpa_supplicant-2.3-r2,17.93 KB, text/plain)
2015-02-10 19:21 UTC, Khayyam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khayyam 2015-02-10 11:33:05 UTC
With the switch to EAPI=5 and Kconfig_style_config() the build fails when USE="-dbus" is set (and no dbus is available). The issues doesn't occur with wpa_supplicant-2.3 (EAPI=4 sans Kconfig_style_config) so the issue must be with the function itself. Please see attatched build.log 

Reproducible: Always

Steps to Reproduce:
1. no sys-apps/dbus installed 
2. USE="-dbus" emerge wpa_supplicant
3. 
Actual Results:  
Build fails

Expected Results:  
Builds without support for dbus 

Portage 2.2.14 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.8.3, glibc-2.19-r1, 3.13.11-ck i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.11-ck-i686-Genuine_Intel-R-_CPU_T2500_@_2.00GHz-with-gentoo-2.2
KiB Mem:     2052992 total,   1043304 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Tue, 10 Feb 2015 09:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo foo-overlay mv local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/src/distfiles"
EMERGE_DEFAULT_OPTS=" -j1 --load-average=1.00 --nospinner --quiet=n --quiet-build=n --ask-enter-invalid --misspell-suggestions=n --with-bdeps=y --ignore-built-slot-operator-deps=y"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="REMOVED"
INSTALL_MASK=" /usr/share/bash-completion /usr/share/gtk-doc /usr/share/applications /usr/lib/systemd /lib/systemd /etc/systemd /lib/udev /etc/xdg"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/pkg/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-4 --quiet --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/pkg/gentoo"
PORTDIR_OVERLAY="/var/pkg/foo-overlay /var/pkg/mv /var/pkg/local"
USE="acl acpi alsa berkdb bzip2 caps cli cracklib crypt cxx dri fortran gdbm iconv maildir mmx mmxext modules ncurses nptl openmp pam pcre readline session sse sse2 sse3 ssl tcpd truetype unicode vim-syntax x86 xattr zlib zsh-completion" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm i386 mips" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON

# emerge -pv wpa-supplicant
[ebuild   R   ~] net-wireless/wpa_supplicant-2.3-r2::local  USE="readline ssl -ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 (-selinux) -smartcard -wimax -wps" 0 KiB
Comment 1 Khayyam 2015-02-10 11:34:09 UTC
Created attachment 396074 [details]
build.log
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-10 19:10:30 UTC
Could you try and run "ebuild EBUILDNAME clean configure" for both of them, and attach the .config files from the two versions, so I can take a look at them?

I think it might be related to it copying defconfig at first, which the old version didn't.
Comment 3 Khayyam 2015-02-10 19:19:46 UTC
(In reply to Bjarke Istrup Pedersen from comment #2)
> Could you try and run "ebuild EBUILDNAME clean configure" for both of them,
> and attach the .config files from the two versions, so I can take a look at
> them?

Bjarke ... sure, attatched.
Comment 4 Khayyam 2015-02-10 19:20:37 UTC
Created attachment 396130 [details]
dot-config-wpa_supplicant-2.3
Comment 5 Khayyam 2015-02-10 19:21:05 UTC
Created attachment 396132 [details]
dot-config-wpa_supplicant-2.3-r2
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-10 20:11:15 UTC
When doing this, do you have the dbus useflag set as -dbus?

Could you do this, and paste the output: emerge -pv =wpa_supplicant-2.3-r2

From what I can see in the -r2 config, it was generated with dbus enabled.
Comment 7 Khayyam 2015-02-10 22:55:08 UTC
(In reply to Bjarke Istrup Pedersen from comment #6)
> When doing this, do you have the dbus useflag set as -dbus?
> 
> Could you do this, and paste the output: emerge -pv =wpa_supplicant-2.3-r2
> 
> From what I can see in the -r2 config, it was generated with dbus enabled.

USE"-dbus" is explictly set in make.conf

emerge -pv =wpa_supplicant-2.3-r2::gentoo

These are the packages that would be merged, in order:

Calculating dependencies  .... done!
[ebuild   R   ~] net-wireless/wpa_supplicant-2.3-r2::gentoo [2.3-r2::local] USE="hs2.0%* readline ssl -ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 (-selinux) -smartcard -tdls% -uncommon-eap-types% -wimax -wps" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

That is for the same ebuild that "ebuild {x} clean configure" was run against (you can ignore the fact that there is the same package installed from ::local ... this is mearly a bump of net-wireless/wpa_supplicant-2.3 I'd merged to see if the issue was something other than the ebuild).
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-11 08:32:22 UTC
Okay, that is interresting.

Could you try and remove the lines from the ebuild that enables the DBUS stuff, and see if that makes it compile? (Just to see if it for some reason thinks +dbus is enabled when it shouldn't be)
Comment 9 Khayyam 2015-02-11 08:52:21 UTC
(In reply to Bjarke Istrup Pedersen from comment #8)
 
> Could you try and remove the lines from the ebuild that enables the DBUS
> stuff, and see if that makes it compile? (Just to see if it for some reason
> thinks +dbus is enabled when it shouldn't be)

sure ...

diff ~portdir/net-wireless/wpa_supplicant/wpa_supplicant-2.3-r2.ebuild ~pkg/local/net-wireless/wpa_supplicant/wpa_supplicant-2.3-r2.ebuild
155,159c155,159
< 	if use dbus ; then
< 		Kconfig_style_config CTRL_IFACE_DBUS
< 		Kconfig_style_config CTRL_IFACE_DBUS_NEW
< 		Kconfig_style_config CTRL_IFACE_DBUS_INTRO
< 	fi
---
> 	#if use dbus ; then
> 	#	Kconfig_style_config CTRL_IFACE_DBUS
> 	#	Kconfig_style_config CTRL_IFACE_DBUS_NEW
> 	#	Kconfig_style_config CTRL_IFACE_DBUS_INTRO
> 	#fi

emerge =wpa_supplicant/wpa_supplicant-2.3-r2::local
[...]
Makefile:1678: recipe for target 'dbus/dbus_old.o' failed
make: *** [dbus/dbus_old.o] Error 1
Comment 10 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-11 09:57:57 UTC
Okay, when doing this, does the generated .config file inside /var/tmp/portage/net-wireless/..... contain the DBUS lines enabled?
Comment 11 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-11 10:11:14 UTC
Okay, I found the issue - when we enable CONFIG_CTRL_IFACE, it also enables all the DBUS stuff, since the sed command is broken...

I have fixed it now, so it includes the '=' in the search, which seems to fix it.

It generates it correct for me now - but could you try and see if it fixes it for you too.

To do so, wait a few hours and sync the tree, or change this line in the ebuild:

sed -i "/^# *$CONFIG_PARAM/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM"

To this:

sed -i "/^# *$CONFIG_PARAM=/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM"

That should fix it for you too.
Comment 12 Khayyam 2015-02-11 13:16:35 UTC
(In reply to Bjarke Istrup Pedersen from comment #11)
 
> It generates it correct for me now - but could you try and see if it fixes
> it for you too.

Yes, that seems to work ... thanks.
Comment 13 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-02-11 16:48:08 UTC
Great, thanks for finding and reporting :-)
Comment 14 Daniel Kenzelmann 2019-04-24 09:04:37 UTC
Seems to occur again in net-wireless/wpa_supplicant-2.8-r1:

[ebuild     U  ] net-wireless/wpa_supplicant-2.8-r1::gentoo [2.7-r3::gentoo] USE="fils%* hs2-0 readline -ap -bindist -dbus -eap-sim -eapol_test -fasteap -libressl -macsec -p2p -privsep (-ps3) -qt5 (-selinux) -smartcard -tdls -uncommon-eap-types (-wimax) -wps"



[..]
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found

[..]

dbus/dbus_dict_helpers.c:10:10: fatal error: dbus/dbus.h: No such file or directory
 #include <dbus/dbus.h>
          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1963: dbus/dbus_dict_helpers.o] Error 1
make: *** Waiting for unfinished jobs....

==========================

emerge --info:


Portage 2.3.64 (python 3.6.8-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-8.3.0, glibc-2.29-r2, 5.0.9-gentoo x86_64)
=================================================================
System uname: Linux-5.0.9-gentoo-x86_64-AMD_E-350_Processor-with-gentoo-2.6
KiB Mem:    15996216 total,   6825536 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 24 Apr 2019 07:15:01 +0000
Head commit of repository gentoo: 8b4d41dcc8cec461e6e10e1a92157d6d1d22c794
sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          5.0_p7::gentoo
dev-lang/perl:            5.28.2::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo
dev-util/cmake:           3.14.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

k8n
    location: /usr/local/portage
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=btver1 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=btver1 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE en en_GB en_US zh zh_CN"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 caps crypt cups cxx hardened iconv idn iproute2 ipv6 libtirpc lzma maildir mmx mmxext ncurses nls nptl offensive pam pcre pie png popcnt readline seccomp smp spice sse sse2 sse3 sse4a ssl ssp ssse3 syslog udev unicode usb vhosts vorbis xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="de de-DE en en-GB en-US zh zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS