Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/glib/files/, dev-libs/glib/
Date: Sun, 10 Jun 2018 08:25:57
Message-Id: 1528619119.c2b5a3364405a40881ed2ecb776821213d163171.leio@gentoo
1 commit: c2b5a3364405a40881ed2ecb776821213d163171
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 10 07:00:38 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 10 08:25:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2b5a336
7
8 dev-libs/glib-2.54: port to python-single-r1
9
10 Use python-single-r1 instead of python_replicate_script and let
11 upstream --with-python do its work (don't patch it out anymore in
12 gdbus-codegen patch). We pass --with-python to end up with proper
13 /usr/bin/env based shebangs (otherwise it is based on $PYTHON,
14 which includes absolute path, unlike EPYTHON)
15
16 Closes: https://bugs.gentoo.org/651830
17 Package-Manager: Portage-2.3.40, Repoman-2.3.9
18
19 .../files/glib-2.54.3-external-gdbus-codegen.patch | 27 ++--------------------
20 dev-libs/glib/glib-2.54.3-r5.ebuild | 14 ++++-------
21 2 files changed, 6 insertions(+), 35 deletions(-)
22
23 diff --git a/dev-libs/glib/files/glib-2.54.3-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.54.3-external-gdbus-codegen.patch
24 index 45025b65551..4f3e1784c88 100644
25 --- a/dev-libs/glib/files/glib-2.54.3-external-gdbus-codegen.patch
26 +++ b/dev-libs/glib/files/glib-2.54.3-external-gdbus-codegen.patch
27 @@ -4,40 +4,17 @@ Date: Fri, 23 Feb 2018 15:27:33 +0330
28 Subject: [PATCH] glib-2.54.3-external-gdbus-codegen-for-autotools
29
30 ---
31 - configure.ac | 17 ++++++++---------
32 + configure.ac | 1 -
33 docs/reference/gio/Makefile.am | 1 -
34 gio/Makefile.am | 2 +-
35 gio/tests/Makefile.am | 6 ++----
36 gio/tests/gdbus-object-manager-example/Makefile.am | 8 +++-----
37 - 5 files changed, 14 insertions(+), 20 deletions(-)
38 + 5 files changed, 6 insertions(+), 12 deletions(-)
39
40 diff --git a/configure.ac b/configure.ac
41 index 0457c90..07166c9 100644
42 --- a/configure.ac
43 +++ b/configure.ac
44 -@@ -382,14 +382,14 @@ AC_SUBST(PERL_PATH)
45 - # option to specify python interpreter to use; this just sets $PYTHON, so that
46 - # we will fallback to reading $PYTHON if --with-python is not given, and
47 - # python.m4 will get the expected input
48 --AC_ARG_WITH(python,
49 -- AS_HELP_STRING([--with-python=PATH],
50 -- [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]),
51 -- [PYTHON="$withval"], [])
52 --if test x"$PYTHON" = xyes; then
53 -- AC_MSG_ERROR([--with-python option requires a path or program argument])
54 --fi
55 --AM_PATH_PYTHON(2.7,,PYTHON="python2.7")
56 -+#AC_ARG_WITH(python,
57 -+# AS_HELP_STRING([--with-python=PATH],
58 -+# [Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]),
59 -+# [PYTHON="$withval"], [])
60 -+#if test x"$PYTHON" = xyes; then
61 -+# AC_MSG_ERROR([--with-python option requires a path or program argument])
62 -+#fi
63 -+#AM_PATH_PYTHON(2.7,,PYTHON="python2.7")
64 -
65 -
66 - dnl ***********************
67 @@ -3469,7 +3469,6 @@ gobject/glib-mkenums
68 gobject/tests/Makefile
69 gthread/Makefile
70
71 diff --git a/dev-libs/glib/glib-2.54.3-r5.ebuild b/dev-libs/glib/glib-2.54.3-r5.ebuild
72 index 31c751756ab..6f4824c6ad8 100644
73 --- a/dev-libs/glib/glib-2.54.3-r5.ebuild
74 +++ b/dev-libs/glib/glib-2.54.3-r5.ebuild
75 @@ -12,7 +12,7 @@ PYTHON_COMPAT=( python{2_7,3_5,3_6} )
76 GNOME2_LA_PUNT="yes"
77
78 inherit autotools bash-completion-r1 epunt-cxx flag-o-matic gnome2 libtool linux-info \
79 - multilib multilib-minimal pax-utils python-r1 toolchain-funcs versionator virtualx
80 + multilib multilib-minimal pax-utils python-single-r1 toolchain-funcs versionator virtualx
81
82 DESCRIPTION="The GLib library of C routines"
83 HOMEPAGE="https://www.gtk.org/"
84 @@ -84,6 +84,8 @@ pkg_setup() {
85 fi
86 linux-info_pkg_setup
87 fi
88 + # FIXME: Move python deps that are only required at build time of other packages to a split package
89 + python-single-r1_pkg_setup
90 }
91
92 src_prepare() {
93 @@ -120,11 +122,6 @@ src_prepare() {
94 # gdbus-codegen is a separate package
95 eapply "${FILESDIR}"/${PN}-2.54.3-external-gdbus-codegen.patch
96
97 - # Leave python shebang alone - handled by python_replicate_script
98 - # We could call python_setup and give configure a valid --with-python
99 - # arg, but that would mean a build dep on python when USE=utils.
100 - sed -e 's:@PYTHON@:python:' \
101 - -i gobject/glib-{genmarshal.in,mkenums.in} || die
102 # Also needed to prevent cross-compile failures, see bug #267603
103 eautoreconf
104
105 @@ -179,6 +176,7 @@ multilib_src_configure() {
106 $(use_enable systemtap dtrace) \
107 $(use_enable systemtap systemtap) \
108 $(multilib_native_use_enable utils libelf) \
109 + --with-python=${EPYTHON} \
110 --disable-compile-warnings \
111 --enable-man \
112 --with-pcre=system \
113 @@ -222,10 +220,6 @@ multilib_src_install() {
114 multilib_src_install_all() {
115 einstalldocs
116
117 - # FIXME: Move python deps that are only required at build time of other packages to a split package
118 - python_replicate_script "${ED}"/usr/bin/glib-mkenums
119 - python_replicate_script "${ED}"/usr/bin/glib-genmarshal
120 -
121 # gtester-report works only with python2 and is heavily deprecated - https://bugzilla.gnome.org/show_bug.cgi?id=668035#c4
122 # Remove it instead of bothering with making it work with python3 in PYTHON_COMPAT
123 rm "${ED}usr/bin/gtester-report"