Gentoo Archives: gentoo-commits

From: "Mart Raudsepp (leio)" <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/glib: ChangeLog glib-2.16.3-r1.ebuild
Date: Tue, 01 Jul 2008 00:52:26
Message-Id: E1KDU6W-0003yD-EE@stork.gentoo.org
1 leio 08/07/01 00:52:20
2
3 Modified: ChangeLog
4 Added: glib-2.16.3-r1.ebuild
5 Log:
6 Fix for a heap-based buffer overflow possibility in the included modified copy of PCRE, bug 230039, related to CVE-2008-2371
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 i686, RepoMan options: --force)
8
9 Revision Changes Path
10 1.323 dev-libs/glib/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.323&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/ChangeLog?rev=1.323&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/ChangeLog?r1=1.322&r2=1.323
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v
19 retrieving revision 1.322
20 retrieving revision 1.323
21 diff -u -r1.322 -r1.323
22 --- ChangeLog 30 Jun 2008 16:18:04 -0000 1.322
23 +++ ChangeLog 1 Jul 2008 00:52:19 -0000 1.323
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-libs/glib
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.322 2008/06/30 16:18:04 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.323 2008/07/01 00:52:19 leio Exp $
29 +
30 +*glib-2.16.3-r1 (01 Jul 2008)
31 +
32 + 01 Jul 2008; Mart Raudsepp <leio@g.o>
33 + +files/glib-2.16.3-pcre-buffer-overflow.patch, +glib-2.16.3-r1.ebuild:
34 + Fix for a heap-based buffer overflow possibility in the included modified
35 + copy of PCRE, bug 230039, related to CVE-2008-2371
36
37 30 Jun 2008; Jeroen Roovers <jer@g.o> glib-2.16.3.ebuild:
38 Stable for HPPA (bug #227679).
39
40
41
42 1.1 dev-libs/glib/glib-2.16.3-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/glib-2.16.3-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/glib/glib-2.16.3-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: glib-2.16.3-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.16.3-r1.ebuild,v 1.1 2008/07/01 00:52:19 leio Exp $
52
53 inherit gnome.org libtool eutils flag-o-matic
54
55 DESCRIPTION="The GLib library of C routines"
56 HOMEPAGE="http://www.gtk.org/"
57
58 LICENSE="LGPL-2"
59 SLOT="2"
60 KEYWORDS="alpha amd64 ~arm hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd"
61 IUSE="debug doc fam hardened selinux xattr"
62
63 RDEPEND="virtual/libc
64 virtual/libiconv
65 xattr? ( sys-apps/attr )
66 fam? ( virtual/fam )"
67 DEPEND="${RDEPEND}
68 >=dev-util/pkgconfig-0.16
69 >=sys-devel/gettext-0.11
70 doc? (
71 >=dev-libs/libxslt-1.0
72 >=dev-util/gtk-doc-1.8
73 ~app-text/docbook-xml-dtd-4.1.2
74 )"
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79
80 if use ppc64 && use hardened ; then
81 replace-flags -O[2-3] -O1
82 epatch "${FILESDIR}/glib-2.6.3-testglib-ssp.patch"
83 fi
84
85 if use ia64 ; then
86 # Only apply for < 4.1
87 local major=$(gcc-major-version)
88 local minor=$(gcc-minor-version)
89 if (( major < 4 || ( major == 4 && minor == 0 ) )); then
90 epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
91 fi
92 fi
93
94 sed -e "s/MATCH_LIMIT_RECURSION=10000000/MATCH_LIMIT_RECURSION=8192/g" \
95 -i "${S}/glib/pcre/Makefile.in" "${S}/glib/pcre/Makefile.am"
96
97 # Bug 230039, heap based buffer overflow in included copy of pcre (CVE-2008-2371)
98 epatch "${FILESDIR}/${P}-pcre-buffer-overflow.patch"
99
100 # GNOME bug #538836, fix gio test failure on various arches
101 sed -i -e 's:|\\<g_atomic_int\\|:|\\<g_atomic_int\\|\\<g_atomic_pointer_get\\|:' \
102 "${S}/gio/pltcheck.sh"
103
104 # Fix gmodule issues on fbsd; bug #184301
105 epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
106
107 [[ ${CHOST} == *-freebsd* ]] && elibtoolize
108 }
109
110 src_compile() {
111 local myconf
112
113 epunt_cxx
114
115 # Building with --disable-debug highly unrecommended. It will build glib in
116 # an unusable form as it disables some commonly used API. Please do not
117 # convert this to the use_enable form, as it results in a broken build.
118 # -- compnerd (3/27/06)
119 use debug && myconf="--enable-debug"
120
121 # always build static libs, see #153807
122 econf ${myconf} \
123 $(use_enable xattr) \
124 $(use_enable doc man) \
125 $(use_enable doc gtk-doc) \
126 $(use_enable fam) \
127 $(use_enable selinux) \
128 --enable-static \
129 --with-threads=posix || die "configure failed"
130
131 emake || die "make failed"
132 }
133
134 src_install() {
135 emake DESTDIR="${D}" install || die "Installation failed"
136
137 # Do not install charset.alias even if generated, leave it to libiconv
138 rm -f "${D}/usr/lib/charset.alias"
139
140 dodoc AUTHORS ChangeLog* NEWS* README
141 }
142
143
144
145 --
146 gentoo-commits@l.g.o mailing list