Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590432 - net-misc/networkmanager-1.2.4 : fails to build : define one of SUSPEND_RESUME_SYSTEMD, SUSPEND_RESUME_CONSOLEKIT ...
Summary: net-misc/networkmanager-1.2.4 : fails to build : define one of SUSPEND_RESUME...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 590462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-04 08:25 UTC by Helmut Jarausch
Modified: 2016-09-11 18:50 UTC (History)
7 users (show)

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


Attachments
build log (networkmanager-1.2.4.build,880.96 KB, text/plain)
2016-08-04 08:25 UTC, Helmut Jarausch
Details
build.log (build.log,878.65 KB, text/plain)
2016-08-04 12:45 UTC, Tony Vroon (RETIRED)
Details
nm-upower-fix.patch (nm-upower-fix.patch,2.04 KB, patch)
2016-08-04 15:01 UTC, Ben Kohler
Details | Diff
ebuild for applying the patch (networkmanager-1.2.4.ebuild,10.60 KB, text/plain)
2016-08-04 16:12 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2016-08-04 08:25:54 UTC
Created attachment 442452 [details]
build log

net-misc/networkmanager-1.2.4  fails to build with
src/nm-sleep-monitor.c
#error define one of SUSPEND_RESUME_SYSTEMD, SUSPEND_RESUME_CONSOLEKIT, or SUSPEND_RESUME_UPOWER
...
'_NMLOG_PREFIX_NAME' undeclared 

emerge --info net-misc/networkmanager
Portage 2.3.0 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r2, 4.7.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.0-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.2
KiB Mem:     7905836 total,   1504916 free
KiB Swap:    4194300 total,   4194236 free
Timestamp of repository gentoo: Thu, 04 Aug 2016 06:45:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.7 [disabled]
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.3-r7::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.2.7::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::local, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

java
    location: /usr/local/portage/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

lisp
    location: /usr/local/portage/layman/lisp
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/lisp.git
    masters: gentoo
    priority: 50

science
    location: /usr/local/portage/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

sunrise
    location: /usr/local/portage/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

x11
    location: /usr/local/portage/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 qt5 readline sdl seccomp session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xulrunner xv xvid 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="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="3dnow mmx 3dnowext mmxext popcnt sse sse2 sse3 sse4a" 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" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/networkmanager-1.2.2::gentoo was built with the following:
USE="consolekit dhclient introspection modemmanager ncurses nss ppp wext wifi -bluetooth -connection-sharing -gnutls -resolvconf (-selinux) -systemd -teamd -test -vala" ABI_X86="64 -32 -x32"
Comment 1 Martin Dummer 2016-08-04 10:29:13 UTC
In can confirm this build failure, same error message on my machine..



net-misc/networkmanager-1.2.4::gentoo [1.2.2::gentoo] USE="bluetooth consolekit introspection modemmanager ncurses nss ppp resolvconf wext wifi -connection-sharing -dhclient -gnutls (-selinux) -systemd -teamd {-test} -vala" ABI_X86="(64) -32 (-x32)"
Comment 2 Austin S. Hemmelgarn 2016-08-04 11:51:45 UTC
Same here.

net-misc/networkmanager-1.2.4 [1.2.2] USE="consolekit dhclient ncurses nss resolvconf wifi -bluetooth -connection-sharing -gnutls -introspection -modemmanager -ppp (-selinux) -systemd -teamd {-test} -vala -wext" ABI_X86="32 (64) (-x32)"
Comment 3 jms 2016-08-04 12:44:31 UTC
same here
pb with nm-sleep-monitor.c

/var/tmp/portage/net-misc/networkmanager-1.2.4/work/NetworkManager-1.2.4/src/nm-sleep-monitor.c:63:2: error: #error define one of SUSPEND_RESUME_SYSTEMD, SUSPEND_RESUME_CONSOLEKIT, or SUSPEND_RESUME_UPOWER
 #error define one of SUSPEND_RESUME_SYSTEMD, SUSPEND_RESUME_CONSOLEKIT, or SUSPEND_RESUME_UPOWER
  ^
In file included from /var/tmp/portage/net-misc/networkmanager-1.2.4/work/NetworkManager-1.2.4/shared/nm-default.h:83:0,
                 from /var/tmp/portage/net-misc/networkmanager-1.2.4/work/NetworkManager-1.2.4/src/nm-sleep-monitor.c:20:
/var/tmp/portage/net-misc/networkmanager-1.2.4/work/NetworkManager-1.2.4/src/nm-sleep-monitor.c: In function ‘drop_inhibitor’:
/var/tmp/portage/net-misc/networkmanager-1.2.4/work/NetworkManager-1.2.4/src/nm-sleep-monitor.c:104:17: error: ‘_NMLOG_PREFIX_NAME’ undeclared (first use in this function)
                 _NMLOG_PREFIX_NAME \
 


 emerge --info net-misc/networkmanager
Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.22-r4, 4.6.3-gentoo-jms-006 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.3-gentoo-jms-006-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7672824 total,    508980 free
KiB Swap:    8396796 total,   8066320 free
Timestamp of repository gentoo: Thu, 04 Aug 2016 11:45:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /portage
    sync-type: rsync
    sync-uri: rsync://rsync.fr.gentoo.org/gentoo-portage
    priority: -1000

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 0

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe "
DISTDIR="/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch 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://91.121.124.139/gentoo-distfiles/ http://91.121.125.139/gentoo-distfiles/ ftp://ftp.swin.edu.au/gentoo  ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/portage/packages"
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="X a52 aac aacs aalib acl acpi alsa amd64 ao avahi bash-completion bdplus berkdb bindist bluetooth bluray branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dhcpcd dri dri3 dts dv dvb dvd dvdnav dvdr emboss encode epub evdev exif ffmpeg firefox flac fontconfig fortran gd gdbm gif glamor gpm gstreamer gtk gzip iconv icu imap inotify ipv6 jpeg jpeg2k kde kipi lame laptop lcms ldap libkms libnotify lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mmxext mng mod modules motif mp3 mp4 mpeg mtp multilib mysql ncurse ncurses networkmanager nls nptl ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 quicktime raw readline resolvconf scanner sdl seccomp semantic-desktop sematic-deskyop session smp solid spell sse sse2 ssl startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vdpau video vim-syntax vorbis widgets wifi win32codecs wxwidgets x x264 xattr xcb xcomposit xcomposite xine xinerama xml xosd xpm xscreensaver xulrunner xv xvid zip zlib" ABI_X86="64 32" 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="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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en-GB es-VE fr-FR en es fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB es_VE fr_FR en es fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia modesetting" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/networkmanager-1.2.2::gentoo was built with the following:
USE="bluetooth consolekit introspection modemmanager ncurses nss ppp resolvconf wext wifi -connection-sharing -dhclient -gnutls (-selinux) -systemd -teamd -test -vala" ABI_X86="32 64 -x32"
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2016-08-04 12:45:34 UTC
Created attachment 442506 [details]
build.log

Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/developer, gcc-5.4.0, glibc-2.23-r2, 4.6.5-gentoo x86_64)
=================================================================
System uname: Linux-4.6.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4702MQ_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:    16290752 total,   8944560 free
KiB Swap:   32001476 total,  32001476 free
Timestamp of repository gentoo: Thu, 04 Aug 2016 10:00:02 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r3::gentoo, 1.11.6-r2::gentoo, 1.12.6::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x skype-eula skype-4.0.0.7-copyright Oracle-BCLA-JavaSE google-chrome PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo"
LANG="en_GB.utf8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
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="X a52 aac aacplus aalib acl acpi adplug alsa amd64 amr apng archive atsc autoipd avahi avx bash-completion berkdb binfilter bluetooth branding bs2b bzip2 cairo caps cdda cdparanoia cdr cgroups cli consolekit cracklib crypt cups curl cxx dbus device-mapper dhcp dhcpcd dirac djvu dri dts dtv dvd dvdr dvi egl emboss encode evo exif extras faac fat fbcon fec ffmpeg fftw firefox fits flac flite fontconfig fortran fpx freerdp ftdi fuse g3dvl gbm gcj gcrypt gd gdbm gegl geoloc gif gimp gjs glamor gles gnome-keyring gnutls gpg gphoto2 gpm graphite graphviz grc gs gsm gstreamer gtk gtk3 health http hwdb iconv icu idn introspection iphone iproute2 ipv6 javascript jbig jce jemalloc jpeg jpeg2k kdrive lame lapack lcms ldap libass libcaca libcanberra libkms libnl libnotify libsamplerate libssh2 llvm llvm-gcc lto lzma lzo mad map mbim md5sum minizip mmx mmxext mng modemmanager modplug modules mp3 mp4 mpeg mpg123 mudflap multilib natspec ncat ncurses ndiff network network-cron networkmanager nls nping nptl nsplugin ntp odf ofono ogg openconnect openexr opengl openmp openvpn opus osmesa pager pam pango pcre pdf pjproject pkcs11 png pnm policykit postproc ppds proprietary-codecs pth pulseaudio qt-static qt3support rdp readline realtime rle rtlsdr rtmp schroedinger sdl seccomp secure-delete session sid smartcard smime smp sna sndfile snmp speex spell sse sse2 ssh ssl ssse3 startup-notification svc svg system-cairo system-icu system-jpeg system-libvpx system-sqlite t1lib theora threads thumbnail thunar tiff timezone trellis truetype udev udisks unicode upnp upower urandom usb uxa v4l v4l2 vala vocoder vorbis vpx vte wavelet wavpack webkit webstart widevine winbind wmf wps wxwidgets x264 xattr xcb xfce xinerama xml xmlwriter xmp xpm xps xrandr xv xvfb xvid xvmc zeroconf zlib" ABI_X86="64" 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="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2016-08-04 12:46:22 UTC
Have team Gnome tested a USE="-systemd" build?
Comment 6 Ben Kohler gentoo-dev 2016-08-04 13:37:26 UTC
Non-systemd builds are passing --with-suspend-resume=upower, but looking at the configure script it looks like 'upower' selection is pretty much a no-op, it doesn't set the SUSPEND_RESUME_UPOWER var, and probably not even tested upstream.

But it looks like --with-suspend-resume=consolekit does work fine.  I guess someone needs to ask upstream if upower is supposed to work here?

If not then we could use REQUIRED_USE for force either systemd or consolekit to be set, and set --with-suspend-resume based on USE=systemd or USE=consolekit


Oh btw I did just test and modifying the ebuild to pass --with-suspend-resume=consolekit does appear to work fine
Comment 7 Ben Kohler gentoo-dev 2016-08-04 13:39:25 UTC
From work/NetworkManager-1.2.4/configure :

case $with_suspend_resume in
    upower) ;;
    systemd)

...
#tons of systemd detection logic
...
        ;;
    consolekit)

$as_echo "#define SUSPEND_RESUME_CONSOLEKIT 1" >>confdefs.h

        ;;
    *)  
        as_fn_error $? "--with-suspend-resume must be one of upower, systemd, consolekit" "$LINENO" 5
        ;;
Comment 8 Ben Kohler gentoo-dev 2016-08-04 14:00:12 UTC
*** Bug 590462 has been marked as a duplicate of this bug. ***
Comment 9 Mike Gilbert gentoo-dev 2016-08-04 14:25:15 UTC
(In reply to Tony Vroon from comment #5)
> Have team Gnome tested a USE="-systemd" build?

I committed the version bump; no "blame" falls on the gnome team here.
Comment 10 Ben Kohler gentoo-dev 2016-08-04 15:01:17 UTC
Created attachment 442516 [details, diff]
nm-upower-fix.patch

I got in touch with upstream and they provided me this patch.  A couple of caveats to applying it locally:

1) will need to inherit autotools, and run eautoreconf after applying


2) the sed in src_prepare to remove examples, leavings a dangling "\" on the line above, which breaks automake, need to either remove that sed or add another sed for the dangling \
Comment 11 Ben Kohler gentoo-dev 2016-08-04 15:10:55 UTC
I guess one could use the information from this patch to directly edit configure rather than configure.ac, to eliminate the aforementioned problems, and keep the ebuild simple.
Comment 12 Helmut Jarausch 2016-08-04 16:12:41 UTC
Created attachment 442524 [details]
ebuild for applying the patch

Thanks for the patch, ti works just fine.
I've attached an ebuild which applies this patch.
Comment 13 Mike Gilbert gentoo-dev 2016-08-04 16:13:23 UTC
(In reply to Ben Kohler from comment #10)

Thanks, I will get this committed today.
Comment 14 Mike Gilbert gentoo-dev 2016-08-04 17:28:00 UTC
commit 393984133a76c16b28926eb17352f2bb10df7512
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Aug 4 13:23:44 2016 -0400

    net-misc/networkmanager: fix build with USE=-systemd

    Thanks to Ben Kohler for getting this sorted with upstream.

    Bug: https://bugs.gentoo.org/590432

    Package-Manager: portage-2.3.0_p16

 net-misc/networkmanager/files/1.2.4-upower.patch   | 67 ++++++++++++++++++++++
 .../networkmanager/networkmanager-1.2.4.ebuild     |  5 ++
 2 files changed, 72 insertions(+)
Comment 15 Joakim Tjernlund 2016-08-04 20:04:45 UTC
(In reply to Ben Kohler from comment #6)
> Non-systemd builds are passing --with-suspend-resume=upower, but looking at
> the configure script it looks like 'upower' selection is pretty much a
> no-op, it doesn't set the SUSPEND_RESUME_UPOWER var, and probably not even
> tested upstream.
> 
> But it looks like --with-suspend-resume=consolekit does work fine.  I guess
> someone needs to ask upstream if upower is supposed to work here?
> 
> If not then we could use REQUIRED_USE for force either systemd or consolekit
> to be set, and set --with-suspend-resume based on USE=systemd or
> USE=consolekit
> 
> 
> Oh btw I did just test and modifying the ebuild to pass
> --with-suspend-resume=consolekit does appear to work fine

Is not consolekit a better choice these days? I figured modern upower
had removed suspend/resume ?
Comment 16 Mike Gilbert gentoo-dev 2016-08-04 20:43:09 UTC
(In reply to Joakim Tjernlund from comment #15)
> Is not consolekit a better choice these days? I figured modern upower
> had removed suspend/resume ?

Yes, the ebuild should probably prefer consolekit over upower. That will require an updated dependency on a newer version of consolekit and someone to test that it actually works.
Comment 17 Joakim Tjernlund 2016-08-04 20:53:05 UTC
(In reply to Mike Gilbert from comment #16)
> (In reply to Joakim Tjernlund from comment #15)
> > Is not consolekit a better choice these days? I figured modern upower
> > had removed suspend/resume ?
> 
> Yes, the ebuild should probably prefer consolekit over upower. That will
> require an updated dependency on a newer version of consolekit and someone
> to test that it actually works.

Right

On a related note, there is a new matching nm-applet too. Migth
be a good idea to keep these two in sync
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-09-11 15:01:21 UTC
FTR, I pushed 1.4.0 with the consolekit as an additional suspend manager option.
Comment 19 Mike Gilbert gentoo-dev 2016-09-11 15:50:27 UTC
commit d2ec3b3226445b3d14df4d1a4039969d1c4afca7
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Sep 11 11:49:10 2016 -0400

    net-misc/networkmanager: depend on >=sys-auth/consolekit-1.0.0
    
    Needed for suspend/resume support.
    
    Bug: https://bugs.gentoo.org/590432
    Package-Manager: portage-2.3.0_p24

 net-misc/networkmanager/networkmanager-1.4.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 20 Joakim Tjernlund 2016-09-11 18:50:17 UTC
Could support for dhcpcd be added back? I believe the problems with
IPv6 has been resolved in 6.11.3