1 |
commit: e2673ffa4a653dddadec904d6f48baa1fa4c9d0c |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 00:04:46 2015 +0000 |
4 |
Commit: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 00:11:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=e2673ffa |
7 |
|
8 |
dev-libs/glib: pull in elfutils only when USE=utils |
9 |
|
10 |
It's only used by /usr/bin/gresource, which is a debugging utility. |
11 |
|
12 |
Gentoo-Bug: 542816 |
13 |
Reported-by: Nikoli |
14 |
|
15 |
.../{glib-2.46.0.ebuild => glib-2.46.0-r1.ebuild} | 20 +++++------ |
16 |
dev-libs/glib/glib-9999.ebuild | 41 ++++++++++++---------- |
17 |
dev-libs/glib/metadata.xml | 11 +++++- |
18 |
3 files changed, 43 insertions(+), 29 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/glib/glib-2.46.0.ebuild b/dev-libs/glib/glib-2.46.0-r1.ebuild |
21 |
similarity index 96% |
22 |
rename from dev-libs/glib/glib-2.46.0.ebuild |
23 |
rename to dev-libs/glib/glib-2.46.0-r1.ebuild |
24 |
index d91e744..9534f7a 100644 |
25 |
--- a/dev-libs/glib/glib-2.46.0.ebuild |
26 |
+++ b/dev-libs/glib/glib-2.46.0-r1.ebuild |
27 |
@@ -39,17 +39,18 @@ RDEPEND=" |
28 |
>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
29 |
>=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}] |
30 |
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
31 |
- || ( |
32 |
- >=dev-libs/elfutils-0.142 |
33 |
- >=dev-libs/libelf-0.8.12 |
34 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
35 |
- ) |
36 |
selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
37 |
xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
38 |
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
39 |
utils? ( |
40 |
${PYTHON_DEPS} |
41 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
42 |
+ >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
43 |
+ || ( |
44 |
+ >=dev-libs/elfutils-0.142 |
45 |
+ >=dev-libs/libelf-0.8.12 |
46 |
+ >=sys-freebsd/freebsd-lib-9.2_rc1 |
47 |
+ ) |
48 |
+ ) |
49 |
abi_x86_32? ( |
50 |
!<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
51 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
52 |
@@ -188,11 +189,9 @@ multilib_src_configure() { |
53 |
*) myconf="${myconf} --with-threads=posix" ;; |
54 |
esac |
55 |
|
56 |
- # Only used by the gresource bin |
57 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
58 |
- |
59 |
# FIXME: Always use internal libpcre, bug #254659 |
60 |
- # (maybe consider going back to system lib |
61 |
+ # (maybe consider going back to system lib) |
62 |
+ # libelf used only by the gresource bin |
63 |
ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
64 |
$(use_enable xattr) \ |
65 |
$(use_enable fam) \ |
66 |
@@ -200,6 +199,7 @@ multilib_src_configure() { |
67 |
$(use_enable static-libs static) \ |
68 |
$(use_enable systemtap dtrace) \ |
69 |
$(use_enable systemtap systemtap) \ |
70 |
+ $(multilib_native_use_enable utils libelf) \ |
71 |
--disable-compile-warnings \ |
72 |
--enable-man \ |
73 |
--with-pcre=internal \ |
74 |
|
75 |
diff --git a/dev-libs/glib/glib-9999.ebuild b/dev-libs/glib/glib-9999.ebuild |
76 |
index a322b93..330eb7f 100644 |
77 |
--- a/dev-libs/glib/glib-9999.ebuild |
78 |
+++ b/dev-libs/glib/glib-9999.ebuild |
79 |
@@ -2,6 +2,10 @@ |
80 |
# Distributed under the terms of the GNU General Public License v2 |
81 |
# $Id$ |
82 |
|
83 |
+# Until bug #537330 glib is a reverse dependency of pkgconfig and, then |
84 |
+# adding new dependencies end up making stage3 to grow. Every addition needs |
85 |
+# then to be think very closely. |
86 |
+ |
87 |
EAPI="5" |
88 |
PYTHON_COMPAT=( python2_7 ) |
89 |
# Building with --disable-debug highly unrecommended. It will build glib in |
90 |
@@ -12,7 +16,8 @@ GCONF_DEBUG="yes" |
91 |
# pkg-config |
92 |
GNOME2_LA_PUNT="yes" |
93 |
|
94 |
-inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic gnome2-utils multilib pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal |
95 |
+inherit autotools bash-completion-r1 gnome2 libtool eutils flag-o-matic multilib \ |
96 |
+ pax-utils python-r1 toolchain-funcs versionator virtualx linux-info multilib-minimal |
97 |
if [[ ${PV} = 9999 ]]; then |
98 |
inherit gnome2-live |
99 |
fi |
100 |
@@ -41,17 +46,18 @@ RDEPEND=" |
101 |
>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
102 |
>=virtual/libffi-3.0.13-r1[${MULTILIB_USEDEP}] |
103 |
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] |
104 |
- || ( |
105 |
- >=dev-libs/elfutils-0.142 |
106 |
- >=dev-libs/libelf-0.8.12 |
107 |
- >=sys-freebsd/freebsd-lib-9.2_rc1 |
108 |
- ) |
109 |
selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) |
110 |
xattr? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) |
111 |
fam? ( >=virtual/fam-0-r1[${MULTILIB_USEDEP}] ) |
112 |
utils? ( |
113 |
${PYTHON_DEPS} |
114 |
- >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] ) |
115 |
+ >=dev-util/gdbus-codegen-${PV}[${PYTHON_USEDEP}] |
116 |
+ || ( |
117 |
+ >=dev-libs/elfutils-0.142 |
118 |
+ >=dev-libs/libelf-0.8.12 |
119 |
+ >=sys-freebsd/freebsd-lib-9.2_rc1 |
120 |
+ ) |
121 |
+ ) |
122 |
abi_x86_32? ( |
123 |
!<=app-emulation/emul-linux-x86-baselibs-20130224-r9 |
124 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
125 |
@@ -150,16 +156,15 @@ src_prepare() { |
126 |
|
127 |
# Some tests need ipv6, upstream bug #667468 |
128 |
if [[ -n "${IPV6_DISABLED}" ]]; then |
129 |
- sed -i -e "/socket\/ipv6_sync/d" gio/tests/socket.c || die |
130 |
- sed -i -e "/socket\/ipv6_async/d" gio/tests/socket.c || die |
131 |
- sed -i -e "/socket\/ipv6_v4mapped/d" gio/tests/socket.c || die |
132 |
+ sed -i -e "/gdbus\/peer-to-peer/d" gio/tests/gdbus-peer.c || die |
133 |
+ sed -i -e "/gdbus\/delayed-message-processing/d" gio/tests/gdbus-peer.c || die |
134 |
+ sed -i -e "/gdbus\/nonce-tcp/d" gio/tests/gdbus-peer.c || die |
135 |
fi |
136 |
|
137 |
- # Test relies on /usr/bin/true, but we have /bin/true, upstream bug #698655 |
138 |
- sed -i -e "s:/usr/bin/true:/bin/true:" gio/tests/desktop-app-info.c || die |
139 |
- |
140 |
# thread test fails, upstream bug #679306 |
141 |
- epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
142 |
+ # FIXME: we need to check if it's still failing as upstream thinks something |
143 |
+ # is wrong in our setups |
144 |
+ #epatch "${FILESDIR}/${PN}-2.34.0-testsuite-skip-thread4.patch" |
145 |
|
146 |
# This test is prone to fail, bug #504024, upstream bug #723719 |
147 |
sed -i -e '/gdbus-close-pending/d' gio/tests/Makefile.am || die |
148 |
@@ -209,12 +214,11 @@ multilib_src_configure() { |
149 |
*) myconf="${myconf} --with-threads=posix" ;; |
150 |
esac |
151 |
|
152 |
- # Only used by the gresource bin |
153 |
- multilib_is_native_abi || myconf="${myconf} --disable-libelf" |
154 |
- |
155 |
[[ ${PV} = 9999 ]] && myconf="${myconf} $(use_enable doc gtk-doc)" |
156 |
|
157 |
- # Always use internal libpcre, bug #254659 |
158 |
+ # FIXME: Always use internal libpcre, bug #254659 |
159 |
+ # (maybe consider going back to system lib) |
160 |
+ # libelf used only by the gresource bin |
161 |
ECONF_SOURCE="${S}" gnome2_src_configure ${myconf} \ |
162 |
$(use_enable xattr) \ |
163 |
$(use_enable fam) \ |
164 |
@@ -222,6 +226,7 @@ multilib_src_configure() { |
165 |
$(use_enable static-libs static) \ |
166 |
$(use_enable systemtap dtrace) \ |
167 |
$(use_enable systemtap systemtap) \ |
168 |
+ $(multilib_native_use_enable utils libelf) \ |
169 |
--disable-compile-warnings \ |
170 |
--enable-man \ |
171 |
--with-pcre=internal \ |
172 |
|
173 |
diff --git a/dev-libs/glib/metadata.xml b/dev-libs/glib/metadata.xml |
174 |
index 7224311..9dda65d 100644 |
175 |
--- a/dev-libs/glib/metadata.xml |
176 |
+++ b/dev-libs/glib/metadata.xml |
177 |
@@ -3,9 +3,18 @@ |
178 |
<pkgmetadata> |
179 |
<herd>gnome</herd> |
180 |
<use> |
181 |
+ <flag name="dbus">Enable dependencies required by glib libraries |
182 |
+ using dbus service to manage settings saving</flag> |
183 |
+ <flag name="mime">Pull in shared MIME database that many glib-based |
184 |
+ applications require at runtime to detect or open files. Warning: |
185 |
+ do not disable this flag unless installing on a headless server.</flag> |
186 |
<flag name="systemtap">Build support for profiling and tracing using |
187 |
<pkg>dev-util/systemtap</pkg></flag> |
188 |
<flag name="utils">Install gtester-report utility to generate test |
189 |
- report files for your software.</flag> |
190 |
+ report files for your software; build gresource utility with |
191 |
+ ELF support.</flag> |
192 |
</use> |
193 |
+ <upstream> |
194 |
+ <remote-id type="cpe">cpe:/a:gnome:glib</remote-id> |
195 |
+ </upstream> |
196 |
</pkgmetadata> |