From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9322B13832E for ; Thu, 4 Aug 2016 17:27:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14946E0ABC; Thu, 4 Aug 2016 17:27:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8AB92E0ABC for ; Thu, 4 Aug 2016 17:27:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F0D47340C3F for ; Thu, 4 Aug 2016 17:27:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4A6A241F for ; Thu, 4 Aug 2016 17:27:01 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1470331467.393984133a76c16b28926eb17352f2bb10df7512.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/networkmanager/files/, net-misc/networkmanager/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/networkmanager/files/1.2.4-upower.patch net-misc/networkmanager/networkmanager-1.2.4.ebuild X-VCS-Directories: net-misc/networkmanager/files/ net-misc/networkmanager/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 393984133a76c16b28926eb17352f2bb10df7512 X-VCS-Branch: master Date: Thu, 4 Aug 2016 17:27:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1dae521a-1e94-4363-bc8f-43d0bc2f2eeb X-Archives-Hash: 47a2b26c0a24ea1d82bd32a785fe60db commit: 393984133a76c16b28926eb17352f2bb10df7512 Author: Mike Gilbert gentoo org> AuthorDate: Thu Aug 4 17:23:44 2016 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Aug 4 17:24:27 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39398413 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(+) diff --git a/net-misc/networkmanager/files/1.2.4-upower.patch b/net-misc/networkmanager/files/1.2.4-upower.patch new file mode 100644 index 0000000..a08e34a --- /dev/null +++ b/net-misc/networkmanager/files/1.2.4-upower.patch @@ -0,0 +1,67 @@ +From f864c58cfe87533c69dcf00e3ea236809392a8e0 Mon Sep 17 00:00:00 2001 +From: Beniamino Galvani +Date: Thu, 4 Aug 2016 16:25:30 +0200 +Subject: build: fix build with '--with-suspend-resume=upower' + +Now we have a single file for all suspend APIs and the selection is +done through the preprocessor: remove stale AM_CONDITIONALs and define +SUSPEND_RESUME_UPOWER when needed. + +Fixes: c76eb3e8f7a80b69c570b513ee3eb16bea1b34bd +(cherry picked from commit e4b2c989dc51818e52906b5120ea6a0659274631) + +diff --git a/configure.ac b/configure.ac +index 46775c3..7869f07 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -472,7 +472,9 @@ if test "z$with_suspend_resume" = "z"; then + fi + + case $with_suspend_resume in +- upower) ;; ++ upower) ++ AC_DEFINE([SUSPEND_RESUME_UPOWER], 1, [Define to 1 to use UPower suspend api]) ++ ;; + systemd) + PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd >= 209],, + [PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd-login >= 183])]) +@@ -485,9 +487,6 @@ case $with_suspend_resume in + AC_MSG_ERROR(--with-suspend-resume must be one of [upower, systemd, consolekit]) + ;; + esac +-AM_CONDITIONAL(SUSPEND_RESUME_UPOWER, test "x$with_suspend_resume" = "xupower") +-AM_CONDITIONAL(SUSPEND_RESUME_SYSTEMD, test "x$with_suspend_resume" = "xsystemd") +-AM_CONDITIONAL(SUSPEND_RESUME_CONSOLEKIT, test "x$with_suspend_resume" = "xconsolekit") + + # SELinux support + AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux=yes|no|auto], [Build with SELinux (default: auto)]),,[with_selinux=auto]) +-- +cgit v0.10.2 + +--- a/config.h.in ++++ b/config.h.in +@@ -216,6 +216,9 @@ + /* Define to 1 to use systemd suspend api */ + #undef SUSPEND_RESUME_SYSTEMD + ++/* Define to 1 to use UPower suspend api */ ++#undef SUSPEND_RESUME_UPOWER ++ + /* Define to 1 if libsystemd-journald is available */ + #undef SYSTEMD_JOURNAL + +--- a/configure ++++ b/configure +@@ -22776,7 +22776,11 @@ + fi + + case $with_suspend_resume in +- upower) ;; ++ upower) ++ ++$as_echo "#define SUSPEND_RESUME_UPOWER 1" >>confdefs.h ++ ++ ;; + systemd) + + pkg_failed=no diff --git a/net-misc/networkmanager/networkmanager-1.2.4.ebuild b/net-misc/networkmanager/networkmanager-1.2.4.ebuild index 56aa7e0..c4cc3d4 100644 --- a/net-misc/networkmanager/networkmanager-1.2.4.ebuild +++ b/net-misc/networkmanager/networkmanager-1.2.4.ebuild @@ -122,6 +122,11 @@ src_prepare() { DOC_CONTENTS="To modify system network connections without needing to enter the root password, add your user account to the 'plugdev' group." + local PATCHES=( + # https://bugs.gentoo.org/590432 + "${FILESDIR}/1.2.4-upower.patch" + ) + use vala && vala_src_prepare gnome2_src_prepare }