Gentoo Archives: gentoo-commits

From: NP Hardass <np-hardass@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-mate:master commit in: mate-base/mate-panel/, mate-base/mate-panel/files/
Date: Tue, 26 Jan 2016 18:09:48
Message-Id: 1453466092.579f6785b0d016a6e721fdced998bdedcc0c7d13.np-hardass@gentoo
1 commit: 579f6785b0d016a6e721fdced998bdedcc0c7d13
2 Author: Gokturk Yuksek <gokturk <AT> binghamton <DOT> edu>
3 AuthorDate: Sat Jan 3 21:13:00 2015 +0000
4 Commit: NP Hardass <np-hardass <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 22 12:34:52 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-mate.git/commit/?id=579f6785
7
8 mate-base/mate-panel: fix compilation failure with USE=networkmanager #570266
9
10 mate-panel-1.8.1 fails to compile with >=net-misc/networkmanager-1.0.8
11 due to a missing include directive ('-I'). Substitute network manager
12 CFLAGS and LIBS supplied by the pkgconfig macro in configure.ac and
13 use it for applets/clock.
14
15 Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=570266
16 Upstream-PR-URL: https://github.com/mate-desktop/mate-panel/pull/388
17
18 Package-Manager: portage-2.2.24
19 Signed-off-by: NP-Hardass <NP-Hardass <AT> gentoo.org>
20
21 ...mate-panel-1.8.1-fix-networkmanager-flags.patch | 53 ++++++++++++++++++++++
22 mate-base/mate-panel/mate-panel-1.8.1-r1.ebuild | 5 +-
23 2 files changed, 56 insertions(+), 2 deletions(-)
24
25 diff --git a/mate-base/mate-panel/files/mate-panel-1.8.1-fix-networkmanager-flags.patch b/mate-base/mate-panel/files/mate-panel-1.8.1-fix-networkmanager-flags.patch
26 new file mode 100644
27 index 0000000..f677269
28 --- /dev/null
29 +++ b/mate-base/mate-panel/files/mate-panel-1.8.1-fix-networkmanager-flags.patch
30 @@ -0,0 +1,53 @@
31 +From f03dff4c416d417238dcd625a24ea85e380e599c Mon Sep 17 00:00:00 2001
32 +From: Gokturk Yuksek <gokturk@××××××××××.edu>
33 +Date: Sun, 3 Jan 2016 03:17:40 -0500
34 +Subject: [PATCH 1/1] applets/clock: add missing pkgconfig flags for
35 + NetworkManager
36 +
37 +mate-panel-1.8 fails to compile with NetworkManager >=1.0.8 due to a
38 +missing include directive ('-I'). Substitute network manager CFLAGS
39 +and LIBS supplied by the pkgconfig macro in configure.ac and use it
40 +for applets/clock.
41 +
42 +Signed-off-by: Gokturk Yuksek <gokturk@××××××××××.edu>
43 +---
44 + applets/clock/Makefile.am | 2 ++
45 + configure.ac | 2 ++
46 + 2 files changed, 4 insertions(+)
47 +
48 +diff --git a/applets/clock/Makefile.am b/applets/clock/Makefile.am
49 +index 950ecdd..bfb6b45 100644
50 +--- a/applets/clock/Makefile.am
51 ++++ b/applets/clock/Makefile.am
52 +@@ -39,6 +39,7 @@ CLOCK_CPPFLAGS = \
53 + $(AM_CPPFLAGS) \
54 + $(LIBMATE_PANEL_APPLET_CFLAGS) \
55 + $(CLOCK_CFLAGS) \
56 ++ $(NETWORK_MANAGER_CFLAGS) \
57 + -I$(srcdir)/../../libmate-panel-applet \
58 + -I$(top_builddir)/libmate-panel-applet \
59 + -DMATELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
60 +@@ -51,6 +52,7 @@ CLOCK_LDADD = \
61 + ../../libmate-panel-applet/libmate-panel-applet-4.la \
62 + $(CLOCK_LIBS) \
63 + $(LIBMATE_PANEL_APPLET_LIBS) \
64 ++ $(NETWORK_MANAGER_LIBS) \
65 + libsystem-timezone.la \
66 + -lm
67 +
68 +diff --git a/configure.ac b/configure.ac
69 +index af5a422..6d1389e 100644
70 +--- a/configure.ac
71 ++++ b/configure.ac
72 +@@ -156,6 +156,8 @@ else
73 + fi
74 + if test "x$HAVE_NETWORK_MANAGER" = "xyes" ; then
75 + AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Defined if NetworkManager support is enabled])
76 ++ AC_SUBST(NETWORK_MANAGER_CFLAGS)
77 ++ AC_SUBST(NETWORK_MANAGER_LIBS)
78 + fi
79 +
80 + # Make it possible to compile the applets in-process
81 +--
82 +2.4.10
83 +
84
85 diff --git a/mate-base/mate-panel/mate-panel-1.8.1-r1.ebuild b/mate-base/mate-panel/mate-panel-1.8.1-r1.ebuild
86 index 6bef441..5acf34d 100644
87 --- a/mate-base/mate-panel/mate-panel-1.8.1-r1.ebuild
88 +++ b/mate-base/mate-panel/mate-panel-1.8.1-r1.ebuild
89 @@ -1,4 +1,4 @@
90 -# Copyright 1999-2015 Gentoo Foundation
91 +# Copyright 1999-2016 Gentoo Foundation
92 # Distributed under the terms of the GNU General Public License v2
93 # $Id$
94
95 @@ -60,7 +60,8 @@ src_prepare() {
96 # Disable python check.
97 sed -e '/AM_PATH_PYTHON/d' -i configure.ac || die
98
99 - epatch "${FILESDIR}/${P}-update_marco_wm_name.patch"
100 + epatch "${FILESDIR}/${P}-update_marco_wm_name.patch" \
101 + "${FILESDIR}/${P}-fix-networkmanager-flags.patch"
102
103 epatch_user