Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605814 - net-misc/networkmanager-1.4.4 - configure: error: --with-suspend-resume must be one of upower, systemd, consolekit
Summary: net-misc/networkmanager-1.4.4 - configure: error: --with-suspend-resume must ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-15 20:09 UTC by Harris Landgarten
Modified: 2017-01-16 02:40 UTC (History)
2 users (show)

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


Attachments
build.log (484510707-install-net-misc_networkmanager-1.4.4:0::gentoo.out,14.36 KB, text/plain)
2017-01-15 20:24 UTC, Harris Landgarten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2017-01-15 20:09:11 UTC
checking for gobject-introspection... no (disabled, use --enable-introspection to enable)
checking for QT... yes
checking for SYSTEMD_200... yes
checking for LIBSYSTEMD... yes
configure: error: --with-suspend-resume must be one of upower, systemd, consolekit

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =net-misc/networkmanager-1.4.4:0::gentoo --destination installed --replacing =net-misc/networkmanager-1.4.2:0::installed --x-of-y 1 of 1:
  * When installing 'net-misc/networkmanager-1.4.4:0::gentoo' replacing { 'net-misc/networkmanager-1.4.2:0::installed' }:
  * When running an ebuild command on 'net-misc/networkmanager-1.4.4:0::gentoo':
  * Install failed for 'net-misc/networkmanager-1.4.4:0::gentoo' (paludis::ActionFailedError)

note. systemd use flag is enabled
Comment 1 Mike Gilbert gentoo-dev 2017-01-15 20:21:56 UTC
Please attache a build log and provide emerge --info.
Comment 2 Harris Landgarten 2017-01-15 20:24:53 UTC
Created attachment 460224 [details]
build.log
Comment 3 jorgicio 2017-01-16 00:14:42 UTC
I found a workaround to rid that:

Depending on what you use (systemd or something else), set the EXTRA_ECONF variable in an env file. I use OpenRC and upower, so I have set to:

EXTRA_CONF="--with-suspend-resume=upower"

Then set net-misc/networkmanager with that file in your packages.env file or directory.
Comment 4 jorgicio 2017-01-16 02:05:19 UTC
(In reply to jorgicio from comment #3)
> I found a workaround to rid that:
> 
> Depending on what you use (systemd or something else), set the EXTRA_ECONF
> variable in an env file. I use OpenRC and upower, so I have set to:
> 
> EXTRA_CONF="--with-suspend-resume=upower"
> 
> Then set net-misc/networkmanager with that file in your packages.env file or
> directory.

Sorry: I mean EXTRA_ECONF.
Comment 5 Mike Gilbert gentoo-dev 2017-01-16 02:40:16 UTC
Thanks for the report; I just ran into this myself.

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

commit a79db02fc8cd32562817094c665000ea3bfec550
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Jan 15 21:39:03 2017 -0500

    net-misc/networkmanager: stop passing --with-suspend-resume=no
    
    This causes configure to fail when USE=systemd for non-native abis.
    --with-suspend-resume must be either systemd, upower, or consolekit.
    
    Additionally, configure checks for libsystemd using pkg-config if we pass
    --with-suspend-resume=systemd. There's no real need for this since the
    daemon communicates with systemd using dbus. The pkg-config check is
    only there to look for a new-enough version of systemd.
    
    Passing --with-suspend-resume=consolekit does not perform any pkg-config
    check. Therefore, let's use consolekit as the fallback value for the
    systemd non-native abi case.
    
    Bug: https://bugs.gentoo.org/605814
    Package-Manager: Portage-2.3.3_p32, Repoman-2.3.1_p25

 net-misc/networkmanager/networkmanager-1.4.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)