1 |
eva 11/02/04 00:10:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: glib-2.27.93.ebuild |
5 |
Log: |
6 |
Version bump for early new glib testing. |
7 |
|
8 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.442 dev-libs/glib/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.442&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.442&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.441&r2=1.442 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v |
20 |
retrieving revision 1.441 |
21 |
retrieving revision 1.442 |
22 |
diff -u -r1.441 -r1.442 |
23 |
--- ChangeLog 3 Feb 2011 10:17:09 -0000 1.441 |
24 |
+++ ChangeLog 4 Feb 2011 00:10:58 -0000 1.442 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-libs/glib |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.441 2011/02/03 10:17:09 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.442 2011/02/04 00:10:58 eva Exp $ |
30 |
+ |
31 |
+*glib-2.27.93 (04 Feb 2011) |
32 |
+ |
33 |
+ 04 Feb 2011; Gilles Dartiguelongue <eva@g.o> +glib-2.27.93.ebuild: |
34 |
+ Version bump for early new glib testing. |
35 |
|
36 |
03 Feb 2011; Pacho Ramos <pacho@g.o> glib-2.26.1-r1.ebuild: |
37 |
Disable dtrace and systemtap supports until bug #351931 is solved instead of |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-libs/glib/glib-2.27.93.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.27.93.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/glib-2.27.93.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: glib-2.27.93.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.27.93.ebuild,v 1.1 2011/02/04 00:10:58 eva Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
PYTHON_DEPEND="2" |
54 |
|
55 |
inherit autotools gnome.org libtool eutils flag-o-matic pax-utils python virtualx |
56 |
|
57 |
DESCRIPTION="The GLib library of C routines" |
58 |
HOMEPAGE="http://www.gtk.org/" |
59 |
|
60 |
LICENSE="LGPL-2" |
61 |
SLOT="2" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
63 |
IUSE="debug doc fam +introspection selinux +static-libs test xattr" |
64 |
|
65 |
RDEPEND="virtual/libiconv |
66 |
sys-libs/zlib |
67 |
xattr? ( sys-apps/attr ) |
68 |
fam? ( virtual/fam )" |
69 |
DEPEND="${RDEPEND} |
70 |
>=dev-util/pkgconfig-0.16 |
71 |
>=sys-devel/gettext-0.11 |
72 |
doc? ( |
73 |
>=dev-libs/libxslt-1.0 |
74 |
>=dev-util/gtk-doc-1.13 |
75 |
~app-text/docbook-xml-dtd-4.1.2 ) |
76 |
test? ( >=sys-apps/dbus-1.2.14 )" |
77 |
PDEPEND="introspection? ( dev-libs/gobject-introspection ) |
78 |
!<gnome-base/gvfs-1.6.4-r990" # Earlier versions do not work with glib |
79 |
|
80 |
# XXX: Consider adding test? ( sys-devel/gdb ); assert-msg-test tries to use it |
81 |
|
82 |
pkg_setup() { |
83 |
python_set_active_version 2 |
84 |
} |
85 |
|
86 |
src_prepare() { |
87 |
if use ia64 ; then |
88 |
# Only apply for < 4.1 |
89 |
local major=$(gcc-major-version) |
90 |
local minor=$(gcc-minor-version) |
91 |
if (( major < 4 || ( major == 4 && minor == 0 ) )); then |
92 |
epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch" |
93 |
fi |
94 |
fi |
95 |
|
96 |
# Don't fail gio tests when ran without userpriv, upstream bug 552912 |
97 |
# This is only a temporary workaround, remove as soon as possible |
98 |
epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch" |
99 |
|
100 |
# Fix gmodule issues on fbsd; bug #184301 |
101 |
epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch |
102 |
|
103 |
# Don't check for python, hence removing the build-time python dep. |
104 |
# We remove the gdb python scripts in src_install due to bug 291328 |
105 |
epatch "${FILESDIR}/${PN}-2.25-punt-python-check.patch" |
106 |
|
107 |
# Fix test failure when upgrading from 2.22 to 2.24, upstream bug 621368 |
108 |
epatch "${FILESDIR}/${PN}-2.24-assert-test-failure.patch" |
109 |
|
110 |
# Do not try to remove files on live filesystem, upstream bug #619274 |
111 |
sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \ |
112 |
-i "${S}"/gio/tests/desktop-app-info.c || die "sed failed" |
113 |
|
114 |
# Disable failing tests, upstream bug #??? |
115 |
epatch "${FILESDIR}/${PN}-2.26.0-disable-locale-sensitive-test.patch" |
116 |
epatch "${FILESDIR}/${PN}-2.26.0-disable-volumemonitor-broken-test.patch" |
117 |
|
118 |
if ! use test; then |
119 |
# don't waste time building tests |
120 |
sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \ |
121 |
|| die "sed failed" |
122 |
fi |
123 |
|
124 |
# Needed for the punt-python-check patch. |
125 |
# Also needed to prevent croscompile failures, see bug #267603 |
126 |
eautoreconf |
127 |
|
128 |
[[ ${CHOST} == *-freebsd* ]] && elibtoolize |
129 |
|
130 |
epunt_cxx |
131 |
} |
132 |
|
133 |
src_configure() { |
134 |
local myconf |
135 |
|
136 |
# Building with --disable-debug highly unrecommended. It will build glib in |
137 |
# an unusable form as it disables some commonly used API. Please do not |
138 |
# convert this to the use_enable form, as it results in a broken build. |
139 |
# -- compnerd (3/27/06) |
140 |
# disable-visibility needed for reference debug, bug #274647 |
141 |
use debug && myconf="--enable-debug --disable-visibility" |
142 |
|
143 |
# Always use internal libpcre, bug #254659 |
144 |
econf ${myconf} \ |
145 |
$(use_enable xattr) \ |
146 |
$(use_enable doc man) \ |
147 |
$(use_enable doc gtk-doc) \ |
148 |
$(use_enable fam) \ |
149 |
$(use_enable selinux) \ |
150 |
$(use_enable static-libs static) \ |
151 |
--enable-regex \ |
152 |
--with-pcre=internal \ |
153 |
--with-threads=posix |
154 |
} |
155 |
|
156 |
src_install() { |
157 |
local f |
158 |
emake DESTDIR="${D}" install || die "Installation failed" |
159 |
|
160 |
# Do not install charset.alias even if generated, leave it to libiconv |
161 |
rm -f "${ED}/usr/lib/charset.alias" |
162 |
|
163 |
# Don't install gdb python macros, bug 291328 |
164 |
rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/" |
165 |
|
166 |
dodoc AUTHORS ChangeLog* NEWS* README || die "dodoc failed" |
167 |
|
168 |
insinto /usr/share/bash-completion |
169 |
for f in gdbus gsettings; do |
170 |
newins "${ED}/etc/bash_completion.d/${f}-bash-completion.sh" ${f} || die |
171 |
done |
172 |
rm -rf "${ED}/etc" |
173 |
} |
174 |
|
175 |
src_test() { |
176 |
unset DBUS_SESSION_BUS_ADDRESS |
177 |
export XDG_CONFIG_DIRS=/etc/xdg |
178 |
export XDG_DATA_DIRS=/usr/local/share:/usr/share |
179 |
export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" |
180 |
export XDG_DATA_HOME="${T}" |
181 |
unset GSETTINGS_BACKEND # bug 352451 |
182 |
|
183 |
# Related test is a bit nitpicking |
184 |
mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR/temp" |
185 |
chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR/temp" |
186 |
|
187 |
# Hardened: gdb needs this, bug #338891 |
188 |
if host-is-pax ; then |
189 |
pax-mark -mr "${S}"/tests/.libs/assert-msg-test \ |
190 |
|| die "Hardened adjustment failed" |
191 |
fi |
192 |
|
193 |
# Need X for dbus-launch session X11 initialization |
194 |
Xemake check || die "tests failed" |
195 |
} |
196 |
|
197 |
pkg_preinst() { |
198 |
# Only give the introspection message if: |
199 |
# * The user has it enabled |
200 |
# * Has glib already installed |
201 |
# * Previous version was different from new version |
202 |
if use introspection && has_version "${CATEGORY}/${PN}"; then |
203 |
if ! has_version "=${CATEGORY}/${PF}"; then |
204 |
ewarn "You must rebuild gobject-introspection so that the installed" |
205 |
ewarn "typelibs and girs are regenerated for the new APIs in glib" |
206 |
fi |
207 |
fi |
208 |
} |
209 |
|
210 |
pkg_postinst() { |
211 |
# Inform users about possible breakage when updating glib and not dbus-glib, bug #297483 |
212 |
if has_version dev-libs/dbus-glib; then |
213 |
ewarn "If you experience a breakage after updating dev-libs/glib try" |
214 |
ewarn "rebuilding dev-libs/dbus-glib" |
215 |
fi |
216 |
} |