summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2010-12-07 18:03:17 +0000
committerGilles Dartiguelongue <eva@gentoo.org>2010-12-07 18:03:17 +0000
commit1005af00b5ba65e280fef131cb5323cfaaa95efd (patch)
tree7bc07b391da30f02bc6588b4dfc6b961eaf63357 /dev-libs
parentStable for PPC (bug #348003). (diff)
downloadgentoo-2-1005af00b5ba65e280fef131cb5323cfaaa95efd.tar.gz
gentoo-2-1005af00b5ba65e280fef131cb5323cfaaa95efd.tar.bz2
gentoo-2-1005af00b5ba65e280fef131cb5323cfaaa95efd.zip
Clean up old revisions.
(Portage version: 2.2.0_alpha7/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/glib/ChangeLog8
-rw-r--r--dev-libs/glib/files/glib-2.6.3-testglib-ssp.patch11
-rw-r--r--dev-libs/glib/files/glib2-CVE-2008-4316.patch62
-rw-r--r--dev-libs/glib/files/glib2-CVE-2009-3289.patch103
-rw-r--r--dev-libs/glib/glib-2.20.5-r1.ebuild91
-rw-r--r--dev-libs/glib/glib-2.22.4.ebuild92
6 files changed, 7 insertions, 360 deletions
diff --git a/dev-libs/glib/ChangeLog b/dev-libs/glib/ChangeLog
index 7bbabe14b305..ad66de816330 100644
--- a/dev-libs/glib/ChangeLog
+++ b/dev-libs/glib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/glib
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.431 2010/12/04 20:11:36 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.432 2010/12/07 18:03:17 eva Exp $
+
+ 07 Dec 2010; Gilles Dartiguelongue <eva@gentoo.org>
+ -files/glib-2.6.3-testglib-ssp.patch, -glib-2.20.5-r1.ebuild,
+ -glib-2.22.4.ebuild, -files/glib2-CVE-2008-4316.patch,
+ -files/glib2-CVE-2009-3289.patch:
+ Clean up old revisions.
*glib-2.26.1 (04 Dec 2010)
diff --git a/dev-libs/glib/files/glib-2.6.3-testglib-ssp.patch b/dev-libs/glib/files/glib-2.6.3-testglib-ssp.patch
deleted file mode 100644
index 9b104dd570ef..000000000000
--- a/dev-libs/glib/files/glib-2.6.3-testglib-ssp.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- tests/Makefile.in.orig 2005-04-07 01:05:39.000000000 +0000
-+++ tests/Makefile.in 2005-04-07 01:09:02.000000000 +0000
-@@ -50,7 +50,7 @@
- CATOBJEXT = @CATOBJEXT@
- CC = @CC@
- CCDEPMODE = @CCDEPMODE@
--CFLAGS = @CFLAGS@
-+CFLAGS = @CFLAGS@ -fno-stack-protector
- CPP = @CPP@
- CPPFLAGS = @CPPFLAGS@
- CROSS_COMPILING_FALSE = @CROSS_COMPILING_FALSE@
diff --git a/dev-libs/glib/files/glib2-CVE-2008-4316.patch b/dev-libs/glib/files/glib2-CVE-2008-4316.patch
deleted file mode 100644
index 758a01b2b966..000000000000
--- a/dev-libs/glib/files/glib2-CVE-2008-4316.patch
+++ /dev/null
@@ -1,62 +0,0 @@
---- glib/gbase64.c.orig 2008-12-04 12:07:21.000000000 +0100
-+++ glib/gbase64.c 2009-01-12 14:08:31.000000000 +0100
-@@ -54,8 +54,9 @@ static const char base64_alphabet[] =
- *
- * The output buffer must be large enough to fit all the data that will
- * be written to it. Due to the way base64 encodes you will need
-- * at least: @len * 4 / 3 + 6 bytes. If you enable line-breaking you will
-- * need at least: @len * 4 / 3 + @len * 4 / (3 * 72) + 7 bytes.
-+ * at least: (@len / 3 + 1) * 4 + 4 bytes (+ 4 may be needed in case of
-+ * non-zero state). If you enable line-breaking you will need at least:
-+ * ((@len / 3 + 1) * 4 + 4) / 72 + 1 bytes of extra space.
- *
- * @break_lines is typically used when putting base64-encoded data in emails.
- * It breaks the lines at 72 columns instead of putting all of the text on
-@@ -233,8 +234,14 @@ g_base64_encode (const guchar *data,
- g_return_val_if_fail (data != NULL, NULL);
- g_return_val_if_fail (len > 0, NULL);
-
-- /* We can use a smaller limit here, since we know the saved state is 0 */
-- out = g_malloc (len * 4 / 3 + 4);
-+ /* We can use a smaller limit here, since we know the saved state is 0,
-+ +1 is needed for trailing \0, also check for unlikely integer overflow */
-+ if (len >= ((G_MAXSIZE - 1) / 4 - 1) * 3)
-+ g_error("%s: input too large for Base64 encoding (%"G_GSIZE_FORMAT" chars)",
-+ G_STRLOC, len);
-+
-+ out = g_malloc ((len / 3 + 1) * 4 + 1);
-+
- outlen = g_base64_encode_step (data, len, FALSE, out, &state, &save);
- outlen += g_base64_encode_close (FALSE, out + outlen, &state, &save);
- out[outlen] = '\0';
-@@ -275,7 +282,8 @@ static const unsigned char mime_base64_r
- *
- * The output buffer must be large enough to fit all the data that will
- * be written to it. Since base64 encodes 3 bytes in 4 chars you need
-- * at least: @len * 3 / 4 bytes.
-+ * at least: (@len / 4) * 3 + 3 bytes (+ 3 may be needed in case of non-zero
-+ * state).
- *
- * Return value: The number of bytes of output that was written
- *
-@@ -358,7 +366,8 @@ g_base64_decode (const gchar *text,
- gsize *out_len)
- {
- guchar *ret;
-- gint input_length, state = 0;
-+ gsize input_length;
-+ gint state = 0;
- guint save = 0;
-
- g_return_val_if_fail (text != NULL, NULL);
-@@ -368,7 +377,9 @@ g_base64_decode (const gchar *text,
-
- g_return_val_if_fail (input_length > 1, NULL);
-
-- ret = g_malloc0 (input_length * 3 / 4);
-+ /* We can use a smaller limit here, since we know the saved state is 0,
-+ +1 used to avoid calling g_malloc0(0), and hence retruning NULL */
-+ ret = g_malloc0 ((input_length / 4) * 3 + 1);
-
- *out_len = g_base64_decode_step (text, input_length, ret, &state, &save);
-
diff --git a/dev-libs/glib/files/glib2-CVE-2009-3289.patch b/dev-libs/glib/files/glib2-CVE-2009-3289.patch
deleted file mode 100644
index 4adf30961d99..000000000000
--- a/dev-libs/glib/files/glib2-CVE-2009-3289.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-Patch for bug 286102 from upstream git. It includes the following 5 commits:
-
-commit 3826963e65d8c4c68bcd3e4066505f63ef734b95
-Author: Benjamin Otte <otte@gnome.org>
-Date: Tue Sep 1 21:53:35 2009 +0200
-
-commit 48e0af0157f52ac12b904bd92540432a18b139c7
-Author: Benjamin Otte <otte@gnome.org>
-Date: Tue Sep 1 21:26:08 2009 +0200
-
-commit bb7852e34b1845e516290e1b45a960a345ee8a43
-Author: Benjamin Otte <otte@gnome.org>
-Date: Tue Sep 1 20:36:31 2009 +0200
-
-commit fc44bf40a4eff8e122b223e97ee5efcbc548be03
-Author: Benjamin Otte <otte@gnome.org>
-Date: Tue Sep 1 12:48:55 2009 +0200
-
-commit e695c0932f5d02f3b222f0b7a3de1f8c00ba7b81
-Author: Benjamin Otte <otte@gnome.org>
-Date: Tue Sep 1 11:54:48 2009 +0200
-
-Patch generated by a3li@gentoo.org,
-CVE available for 2.20.5 only (see timeline).
-
-diff --git a/configure.in b/configure.in
-index 7bda924..e2a33b5 100644
---- a/configure.in
-+++ b/configure.in
-@@ -952,7 +952,7 @@ AC_MSG_RESULT(unsigned $glib_size_type)
-
- # Check for some functions
- AC_CHECK_FUNCS(lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk)
--AC_CHECK_FUNCS(chown lchown fchmod fchown link statvfs statfs utimes getgrgid getpwuid)
-+AC_CHECK_FUNCS(chown lchmod lchown fchmod fchown link statvfs statfs utimes getgrgid getpwuid)
- AC_CHECK_FUNCS(getmntent_r setmntent endmntent hasmntopt getmntinfo)
- # Check for high-resolution sleep functions
- AC_CHECK_FUNCS(nanosleep nsleep)
-diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
-index 72a59b5..a61cc55 100644
---- a/gio/glocalfileinfo.c
-+++ b/gio/glocalfileinfo.c
-@@ -1869,15 +1869,40 @@ get_string (const GFileAttributeValue *value,
-
- static gboolean
- set_unix_mode (char *filename,
-+ GFileQueryInfoFlags flags,
- const GFileAttributeValue *value,
- GError **error)
- {
- guint32 val;
-+ int res = 0;
-
- if (!get_uint32 (value, &val, error))
- return FALSE;
--
-- if (g_chmod (filename, val) == -1)
-+
-+#ifdef HAVE_SYMLINK
-+ if (flags & G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS) {
-+#ifdef HAVE_LCHMOD
-+ res = lchmod (filename, val);
-+#else
-+ struct stat statbuf;
-+ /* Calling chmod on a symlink changes permissions on the symlink.
-+ * We don't want to do this, so we need to check for a symlink */
-+ res = g_lstat (filename, &statbuf);
-+ if (res == 0 && S_ISLNK (statbuf.st_mode))
-+ {
-+ g_set_error_literal (error, G_IO_ERROR,
-+ G_IO_ERROR_NOT_SUPPORTED,
-+ _("Cannot set permissions on symlinks"));
-+ return FALSE;
-+ }
-+ else if (res == 0)
-+ res = g_chmod (filename, val);
-+#endif
-+ } else
-+#endif
-+ res = g_chmod (filename, val);
-+
-+ if (res == -1)
- {
- int errsv = errno;
-
-@@ -2172,7 +2197,7 @@ _g_local_file_info_set_attribute (char *filename,
- _g_file_attribute_value_set_from_pointer (&value, type, value_p, FALSE);
-
- if (strcmp (attribute, G_FILE_ATTRIBUTE_UNIX_MODE) == 0)
-- return set_unix_mode (filename, &value, error);
-+ return set_unix_mode (filename, flags, &value, error);
-
- #ifdef HAVE_CHOWN
- else if (strcmp (attribute, G_FILE_ATTRIBUTE_UNIX_UID) == 0)
-@@ -2316,7 +2341,7 @@ _g_local_file_info_set_attributes (char *filename,
- value = _g_file_info_get_attribute_value (info, G_FILE_ATTRIBUTE_UNIX_MODE);
- if (value)
- {
-- if (!set_unix_mode (filename, value, error))
-+ if (!set_unix_mode (filename, flags, value, error))
- {
- value->status = G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING;
- res = FALSE;
diff --git a/dev-libs/glib/glib-2.20.5-r1.ebuild b/dev-libs/glib/glib-2.20.5-r1.ebuild
deleted file mode 100644
index 23fbf47fa6bc..000000000000
--- a/dev-libs/glib/glib-2.20.5-r1.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.20.5-r1.ebuild,v 1.11 2010/09/08 20:41:23 eva Exp $
-
-EAPI="2"
-
-inherit gnome.org eutils flag-o-matic autotools
-
-DESCRIPTION="The GLib library of C routines"
-HOMEPAGE="http://www.gtk.org/"
-
-LICENSE="LGPL-2"
-SLOT="2"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="debug doc fam selinux xattr"
-
-RDEPEND="virtual/libiconv
- xattr? ( sys-apps/attr )
- fam? ( virtual/fam )"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.16
- >=sys-devel/gettext-0.11
- dev-util/gtk-doc-am
- doc? (
- >=dev-libs/libxslt-1.0
- >=dev-util/gtk-doc-1.11
- ~app-text/docbook-xml-dtd-4.1.2 )"
-
-src_prepare() {
- if use ia64 ; then
- # Only apply for < 4.1
- local major=$(gcc-major-version)
- local minor=$(gcc-minor-version)
- if (( major < 4 || ( major == 4 && minor == 0 ) )); then
- epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
- fi
- fi
-
- # Don't fail gio tests when ran without userpriv, upstream bug 552912
- # This is only a temporary workaround, remove as soon as possible
- epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch"
-
- # Fix gmodule issues on fbsd; bug #184301
- epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
-
- # Fix bug 286102, symlink permission error (CVE-2009-3289)
- epatch "${FILESDIR}"/${PN}2-CVE-2009-3289.patch
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
-
- epunt_cxx
-
- # Building with --disable-debug highly unrecommended. It will build glib in
- # an unusable form as it disables some commonly used API. Please do not
- # convert this to the use_enable form, as it results in a broken build.
- # -- compnerd (3/27/06)
- use debug && myconf="--enable-debug"
-
- # Always build static libs, see #153807
- # Always use internal libpcre, bug #254659
- econf ${myconf} \
- $(use_enable xattr) \
- $(use_enable doc man) \
- $(use_enable doc gtk-doc) \
- $(use_enable fam) \
- $(use_enable selinux) \
- --enable-static \
- --enable-regex \
- --with-pcre=internal \
- --with-threads=posix
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "Installation failed"
-
- # Do not install charset.alias even if generated, leave it to libiconv
- rm -f "${D}/usr/lib/charset.alias"
-
- dodoc AUTHORS ChangeLog* NEWS* README || die "dodoc failed"
-}
-
-src_test() {
- unset DBUS_SESSION_BUS_ADDRESS
- export XDG_CONFIG_DIRS=/etc/xdg
- export XDG_DATA_DIRS=/usr/local/share:/usr/share
- emake check || die "tests failed"
-}
diff --git a/dev-libs/glib/glib-2.22.4.ebuild b/dev-libs/glib/glib-2.22.4.ebuild
deleted file mode 100644
index d73391c19e29..000000000000
--- a/dev-libs/glib/glib-2.22.4.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.22.4.ebuild,v 1.8 2010/09/08 20:41:23 eva Exp $
-
-EAPI="2"
-
-inherit gnome.org libtool eutils flag-o-matic
-
-DESCRIPTION="The GLib library of C routines"
-HOMEPAGE="http://www.gtk.org/"
-
-LICENSE="LGPL-2"
-SLOT="2"
-KEYWORDS="alpha amd64 arm ~hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="debug doc fam selinux xattr"
-
-RDEPEND="virtual/libiconv
- xattr? ( sys-apps/attr )
- fam? ( virtual/fam )"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.16
- >=sys-devel/gettext-0.11
- doc? (
- >=dev-libs/libxslt-1.0
- >=dev-util/gtk-doc-1.11
- ~app-text/docbook-xml-dtd-4.1.2 )"
-
-src_prepare() {
- if use ia64 ; then
- # Only apply for < 4.1
- local major=$(gcc-major-version)
- local minor=$(gcc-minor-version)
- if (( major < 4 || ( major == 4 && minor == 0 ) )); then
- epatch "${FILESDIR}/glib-2.10.3-ia64-atomic-ops.patch"
- fi
- fi
-
- # Don't fail gio tests when ran without userpriv, upstream bug 552912
- # This is only a temporary workaround, remove as soon as possible
- epatch "${FILESDIR}/${PN}-2.18.1-workaround-gio-test-failure-without-userpriv.patch"
-
- # Fix gmodule issues on fbsd; bug #184301
- epatch "${FILESDIR}"/${PN}-2.12.12-fbsd.patch
-
- # Do not try to remove files on live filesystem, bug #XXX ?
- sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
- -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
-
- [[ ${CHOST} == *-freebsd* ]] && elibtoolize
-}
-
-src_configure() {
- local myconf
-
- epunt_cxx
-
- # Building with --disable-debug highly unrecommended. It will build glib in
- # an unusable form as it disables some commonly used API. Please do not
- # convert this to the use_enable form, as it results in a broken build.
- # -- compnerd (3/27/06)
- use debug && myconf="--enable-debug"
-
- # Always build static libs, see #153807
- # Always use internal libpcre, bug #254659
- econf ${myconf} \
- $(use_enable xattr) \
- $(use_enable doc man) \
- $(use_enable doc gtk-doc) \
- $(use_enable fam) \
- $(use_enable selinux) \
- --enable-static \
- --enable-regex \
- --with-pcre=internal \
- --with-threads=posix
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "Installation failed"
-
- # Do not install charset.alias even if generated, leave it to libiconv
- rm -f "${D}/usr/lib/charset.alias"
-
- dodoc AUTHORS ChangeLog* NEWS* README || die "dodoc failed"
-}
-
-src_test() {
- unset DBUS_SESSION_BUS_ADDRESS
- export XDG_CONFIG_DIRS=/etc/xdg
- export XDG_DATA_DIRS=/usr/local/share:/usr/share
- export XDG_DATA_HOME="${T}"
- emake check || die "tests failed"
-}