Version bump.
authorSamuli Suominen <ssuominen@gentoo.org>
Sun, 16 Oct 2011 16:31:15 +0000 (16:31 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Sun, 16 Oct 2011 16:31:15 +0000 (16:31 +0000)
Package-Manager: portage-2.2.0_alpha67/cvs/Linux x86_64

dev-libs/glib/ChangeLog
dev-libs/glib/Manifest
dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch [new file with mode: 0644]
dev-libs/glib/glib-2.30.1.ebuild [new file with mode: 0644]

index b75368e9d7f35a6bb8a9f69a3ef11cef9773f6bc..73777eee7d4fbf9bdc96193615a7d560fc41c429 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-libs/glib
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.486 2011/10/06 08:52:18 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.487 2011/10/16 16:31:15 ssuominen Exp $
+
+*glib-2.30.1 (16 Oct 2011)
+
+  16 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> +glib-2.30.1.ebuild,
+  +files/glib-2.30.1-external-gdbus-codegen.patch:
+  Version bump.
 
   06 Oct 2011; Samuli Suominen <ssuominen@gentoo.org> glib-2.30.0.ebuild:
   export LIBFFI_CFLAGS and LIBFFI_LIBS if dev-util/pkgconfig is not installed
index a6907a4dff6e9ba595d41709f548e93df18e7655..6c924fb6176cabc3d13d7e0ba0bbd7f300d1c80e 100644 (file)
@@ -14,26 +14,29 @@ AUX glib-2.26.0-disable-locale-sensitive-test.patch 1256 RMD160 2754468a420189f6
 AUX glib-2.26.0-disable-volumemonitor-broken-test.patch 1181 RMD160 c99e2969a3cab244dc39c81f2dd32bc42677c6e8 SHA1 cc30a7223108fb7fbe1a1c063d9546ffc457b94f SHA256 aa3075f22a9125551fbce6909645fb6b5c5b74282e6fed2ee1d06853b15437d3
 AUX glib-2.26.1-gatomic-header.patch 269 RMD160 668ded743e0004b671e79d1ee5918c42cc78163d SHA1 db7808b0dfc39d8b415dce071b6a1805cad1a850 SHA256 81046ce8bdb7b1c863aba9cb457443e92b792807b304d0ee8e7dfd2b6fb7b122
 AUX glib-2.29.18-external-gdbus-codegen.patch 3099 RMD160 f34d34c3b716a4472123eb0e5e6f4d60bc6f842c SHA1 22a9f31c4f255bdbf1bb37c410fe4e97039873d9 SHA256 4ddd01367518b22c000732c1ad27a2ff8c24cb7876874b2aecd2ebf8361dfd0b
+AUX glib-2.30.1-external-gdbus-codegen.patch 2293 RMD160 9b2f6beda060c45d473edc48c8fb839e6036372d SHA1 11a902608b7261e1db7736ebb59c0ca94b549efb SHA256 45daf662034806d2858f1b2b43185e6891e9d395acd3bbfb7a81a15541b49078
 DIST glib-1.2.10-r1-as-needed.patch.bz2 9099 RMD160 5b7a21da6dc10112409bd885501a6976a2eb894d SHA1 468a7947b7d1688c2e7d61da80d40ca59422fbec SHA256 3bb8c45706f97b526da851061c89618bc258fa61f9100802c1340548e4bb2731
 DIST glib-1.2.10.tar.gz 421480 RMD160 f19efe8c87ebeea979a4d36902d8a8209640cd95 SHA1 e5a9361c594608d152d5d9650154c2e3260b87fa SHA256 6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f
 DIST glib-2.28.6.tar.bz2 6955725 RMD160 5858c29829352c0c59fe12dbd6dceba81aabe5f6 SHA1 51996339c823cf36ba28c774c4afad933d5f5744 SHA256 557fb7c39d21b9359fbac51fd6b0b883bc97a2561c0166eef993a4078312f578
 DIST glib-2.28.8.tar.xz 5223564 RMD160 9f665eee95990ace173676a4ad7aeeb0cc17fef9 SHA1 9b11968fedf4da45bcd10c4a8c50012d41b3af50 SHA256 4d7ca95dbde8e8f60ab428c765b0dbb8a44be9eb9316491803ce5ee7b4748353
 DIST glib-2.30.0.tar.xz 5744640 RMD160 7e300ff549e3a4a156c037505e0ea49250fe511c SHA1 7f7033081cbaebccbf15a2b0fc1ea203d940b109 SHA256 d64c00b43409eabb89aad78501fcb1a992b002b314a4414a9bd069585cb7cdc1
+DIST glib-2.30.1.tar.xz 5809220 RMD160 2bfd106eb56d1ad4af4be556f2398991e53e1825 SHA1 15d497106ccc389a26297725f8dc6de37f2c0371 SHA256 82fde222ea33a0faac88e9b50f5b1f7fcfc235c861a9371e8fe47ec12c1e27f9
 DIST pkg-config-0.26.tar.gz 396399 RMD160 face3d16ec338b9b1ab41d56d6e4d1a5624b52d0 SHA1 fd71a70b023b9087c8a7bb76a0dc135a61059652 SHA256 94c1936a797c930fb3e4e5a154165b6268caba22b32d24083dd4c492a533c8af
 EBUILD glib-1.2.10-r5.ebuild 1777 RMD160 eaf01d9d6f1ba55edb93e46f46110b9e9c2fb778 SHA1 dbedf2bc146dcbec47ad308621bf1077c9f735cb SHA256 9d9dd1ea44c25087918148c2ba1203f3b38be09996bd7e48a26f9b4f93405d36
 EBUILD glib-2.28.6.ebuild 5649 RMD160 1a57e73c13cae0a708808053ed6bd3e92c1ce29c SHA1 3c607a96e34dad256b32d9b006f2f5a8a333f454 SHA256 4a9d0a6f835a2aced9de540091acf8eaccf74cb054ce6d55576ea2ef34bdb78e
 EBUILD glib-2.28.8.ebuild 7412 RMD160 435c6ad000b6aa13fe161b21a0575ead944a2805 SHA1 8ffbfc1ab5f71d783e3697d1e580b57b1ea3a5cc SHA256 c8b600b3d8417878ba8b49ed3217f1a5ef38a64573fc8bc5b5990b5bc523da20
 EBUILD glib-2.30.0.ebuild 6784 RMD160 5f5107c9c6edfca27da651367ea9b2b80d400859 SHA1 c24ccc3504a798d613969ad09ac677c0429acbd2 SHA256 6f10287a368a61d99dfd9af9945bd152cad51124ce6f5a8cc94957114bb387de
-MISC ChangeLog 63928 RMD160 b37485f9e8e61abe31a9cd38bd645df395a97c7a SHA1 60ac5d7dee82b623ba2fd235b796846eed4ed05f SHA256 563859d1d2d9b1b0022d4816c0239b54d3d4ca8bfd901cbbcba3da2248a94ebb
+EBUILD glib-2.30.1.ebuild 6827 RMD160 5b7cd8a5fedf380a92ca0fb70ff5c5281113a4f2 SHA1 f828c171be5e5161565ad22709b8b4a093808b27 SHA256 045bd5c3d152632dae7196d285b2b63bc0333bb976284fbcf34dc7590a495278
+MISC ChangeLog 64099 RMD160 2f2aa9697d2f7dbfbb487c62edad06b8580940a4 SHA1 a39b82b38a79d8ccfca8254335dc99fe08a1f09b SHA256 22345007aff6213b584e28c64e5892c431f9b1059acf79c08faba2619416e436
 MISC metadata.xml 395 RMD160 12e6f6ec98b635283d1f254e93da3c4f47f50a13 SHA1 db51ce81497f12112e03bb5812ea734e1e15b44e SHA256 7ff3e0519e10476616dbcc11540641d9cf8b2ae0c97b5715b8db1f72135c95d4
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (GNU/Linux)
 
-iQEcBAEBAgAGBQJOjWxmAAoJEEdUh39IaPFNYcUH/2VuZemIan/C3nrPBbw/zz1c
-wIFQfNRVI+eep+yvNWM944YoKZBa7PDIPsBfyYNtcYgWoD4EBFZ0qbcw27u3u7aL
-C3MUsf77nJIjtPLTByy5UjAbJQ3gciyNFxnJ2a766bjvV2PmLCH7MlttVrbwkKNI
-HTil1fkh9e0OLVzR4Li2hyIv8KSgCflL2TohZexHFg+I2P57We2WYmMw0m7yNUpE
-iHFd2iLAWe/SSFWOUaoT2PKiGLdaORs9e6WRyNM4F5I1hMHwaxbkBoBuHsJh2uH3
-2J/6IBqRSMCR1m7PzmdaDTPRElbufrb/6nYXM26dBd1K4qHjXOm9mtoC5BUzweY=
-=HHp0
+iQEcBAEBAgAGBQJOmwbIAAoJEEdUh39IaPFN4jMH/jHiGqY4Zu1lNm71O1IobB5I
+GevScDAgycrSWhXtUmIcj3wOCQEMsEvtk8QOaKeZCZUiCUVh+WrKQuuy7Kim9F7T
+0bQZqN8Om9eSfo59HRQQ45PWqysTWS/FuwwoHnBVqMe7RDd/bMUWt9CeoN9NsaQv
+VL6bwahQb3f03oUD3L0Qn2geBcOMOaep3oXsvAQsN9EwSJOfq7ZSE/+GlxgkCVT8
+3nIBmz6w2mfFkwJe3U66YVsT0ZzVXUI4KB+tV3BwA5G/qv3E78buH/e/jlpWC/mL
+zkJ6yaCSjhDm6GBQH6WiiZm/ljmpF0ZxWhDQDf2aSd72BqRcmzb8oxTtqyjfsKw=
+=xRME
 -----END PGP SIGNATURE-----
diff --git a/dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch b/dev-libs/glib/files/glib-2.30.1-external-gdbus-codegen.patch
new file mode 100644 (file)
index 0000000..916b291
--- /dev/null
@@ -0,0 +1,75 @@
+Use an external gdbus-codegen package
+
+--- configure.ac
++++ configure.ac
+@@ -367,7 +367,7 @@
+ AC_SUBST(PERL_PATH)
+ # Need suitable python path for greport
+-AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5")
++# AM_PATH_PYTHON(2.5,,PYTHON="/usr/bin/env python2.5")
+ dnl ***********************
+@@ -3857,8 +3857,6 @@
+ gthread/Makefile
+ gthread/tests/Makefile
+ gio/Makefile
+-gio/gdbus-2.0/codegen/Makefile
+-gio/gdbus-2.0/codegen/config.py
+ gio/xdgmime/Makefile
+ gio/inotify/Makefile
+ gio/libasyncns/Makefile
+--- docs/reference/gio/Makefile.am
++++ docs/reference/gio/Makefile.am
+@@ -138,8 +138,7 @@
+       gio-querymodules.1      \
+       glib-compile-schemas.1  \
+       gsettings.1             \
+-      gdbus.1                 \
+-      gdbus-codegen.1
++      gdbus.1
+ if ENABLE_MAN
+--- gio/Makefile.am
++++ gio/Makefile.am
+@@ -2,7 +2,7 @@
+ NULL =
+-SUBDIRS = gdbus-2.0/codegen
++SUBDIRS =
+ if OS_UNIX
+ SUBDIRS += libasyncns xdgmime
+--- gio/tests/gdbus-object-manager-example/Makefile.am
++++ gio/tests/gdbus-object-manager-example/Makefile.am
+@@ -21,10 +21,8 @@
+       gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml       \
+       $(NULL)
+-$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
+-      $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
+-              UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
+-              $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
++$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile
++      $(AM_V_GEN) gdbus-codegen \
+               --interface-prefix org.gtk.GDBus.Example.ObjectManager. \
+               --c-namespace Example \
+               --c-generate-object-manager \
+--- gio/tests/Makefile.am
++++ gio/tests/Makefile.am
+@@ -266,10 +266,8 @@
+ gdbus_close_pending_LDADD = $(progs_ldadd)
+ if OS_UNIX
+-gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
+-      $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
+-              UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
+-              $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
++gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile
++      $(AM_V_GEN) gdbus-codegen \
+               --interface-prefix org.project. \
+               --generate-c-code gdbus-test-codegen-generated \
+               --c-generate-object-manager \
diff --git a/dev-libs/glib/glib-2.30.1.ebuild b/dev-libs/glib/glib-2.30.1.ebuild
new file mode 100644 (file)
index 0000000..5250b57
--- /dev/null
@@ -0,0 +1,202 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.30.1.ebuild,v 1.1 2011/10/16 16:31:15 ssuominen Exp $
+
+EAPI="4"
+
+inherit autotools gnome.org libtool eutils flag-o-matic multilib pax-utils virtualx
+
+DESCRIPTION="The GLib library of C routines"
+HOMEPAGE="http://www.gtk.org/"
+SRC_URI="${SRC_URI}
+       http://pkgconfig.freedesktop.org/releases/pkg-config-0.26.tar.gz" # pkg.m4 for eautoreconf
+
+LICENSE="LGPL-2"
+SLOT="2"
+IUSE="debug doc fam selinux +static-libs systemtap test xattr"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh
+~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-linux"
+
+RDEPEND="virtual/libiconv
+       virtual/libffi
+       sys-libs/zlib
+       xattr? ( sys-apps/attr )
+       fam? ( virtual/fam )"
+DEPEND="${RDEPEND}
+       >=sys-devel/gettext-0.11
+       >=dev-util/gtk-doc-am-1.15
+       doc? (
+               >=dev-libs/libxslt-1.0
+               >=dev-util/gtk-doc-1.15
+               ~app-text/docbook-xml-dtd-4.1.2 )
+       systemtap? ( >=dev-util/systemtap-1.3 )
+       test? (
+               >=dev-util/gdbus-codegen-2.30.0
+               >=sys-apps/dbus-1.2.14 )
+       !<dev-util/gtk-doc-1.15-r2"
+PDEPEND="!<gnome-base/gvfs-1.6.4-r990" # Earlier versions do not work with glib
+
+# XXX: Consider adding test? ( sys-devel/gdb ); assert-msg-test tries to use it
+
+src_prepare() {
+       mv -vf "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
+
+       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 test failure when upgrading from 2.22 to 2.24, upstream bug 621368
+       epatch "${FILESDIR}"/${PN}-2.24-assert-test-failure.patch
+
+       # Do not try to remove files on live filesystem, upstream bug #619274
+       sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
+               -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
+
+       if ! use test; then
+               # don't waste time building tests
+               sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die
+       else
+               # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
+               if ! has_version dev-util/desktop-file-utils ; then
+                       ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
+                       ewarn "think on installing it to get these tests run."
+                       sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
+                       sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
+                       sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
+                       sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
+               fi
+       fi
+
+       # gdbus-codegen is a separate package
+       epatch "${FILESDIR}/${PN}-2.30.1-external-gdbus-codegen.patch"
+
+       # disable pyc compiling
+       ln -sfn $(type -P true) py-compile
+
+       # Needed for the punt-python-check patch, disabling timeout test
+       # Also needed to prevent croscompile failures, see bug #267603
+       # Also needed for the no-gdbus-codegen patch
+       AT_M4DIR="${WORKDIR}" eautoreconf
+
+       [[ ${CHOST} == *-freebsd* ]] && elibtoolize
+
+       epunt_cxx
+}
+
+src_configure() {
+       # Avoid circular depend with dev-util/pkgconfig
+       if ! has_version dev-util/pkgconfig; then
+               if has_version sys-apps/dbus; then
+                       export DBUS1_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/$(get_libdir)/dbus-1.0/include"
+                       export DBUS1_LIBS="-ldbus-1"
+               fi
+               export LIBFFI_CFLAGS="-I$(echo /usr/$(get_libdir)/libffi-*/include)"
+               export LIBFFI_LIBS="-lffi"
+       fi
+
+       local myconf
+
+       # 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 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) \
+               $(use_enable static-libs static) \
+               $(use_enable systemtap dtrace) \
+               $(use_enable systemtap systemtap) \
+               --enable-regex \
+               --with-pcre=internal \
+               --with-threads=posix
+}
+
+src_install() {
+       local f
+       emake DESTDIR="${D}" install || die "Installation failed"
+
+       # Do not install charset.alias even if generated, leave it to libiconv
+       rm -f "${ED}/usr/lib/charset.alias"
+
+       # Don't install gdb python macros, bug 291328
+       rm -rf "${ED}/usr/share/gdb/" "${ED}/usr/share/glib-2.0/gdb/"
+
+       dodoc AUTHORS ChangeLog* NEWS* README || die "dodoc failed"
+
+       insinto /usr/share/bash-completion
+       for f in gdbus gsettings; do
+               newins "${ED}/etc/bash_completion.d/${f}-bash-completion.sh" ${f} || die
+       done
+       rm -rf "${ED}/etc"
+
+       # Completely useless with or without USE static-libs, people need to use
+       # pkg-config
+       find "${ED}" -name '*.la' -exec rm -f {} +
+}
+
+src_test() {
+       unset DBUS_SESSION_BUS_ADDRESS
+       export XDG_CONFIG_DIRS=/etc/xdg
+       export XDG_DATA_DIRS=/usr/local/share:/usr/share
+       export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp"
+       export XDG_DATA_HOME="${T}"
+       unset GSETTINGS_BACKEND # bug 352451
+
+       # Related test is a bit nitpicking
+       mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
+       chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR"
+
+       # Hardened: gdb needs this, bug #338891
+       if host-is-pax ; then
+               pax-mark -mr "${S}"/tests/.libs/assert-msg-test \
+                       || die "Hardened adjustment failed"
+       fi
+
+       # Need X for dbus-launch session X11 initialization
+       Xemake check || die "tests failed"
+}
+
+pkg_preinst() {
+       # Only give the introspection message if:
+       # * The user has gobject-introspection
+       # * Has glib already installed
+       # * Previous version was different from new version
+       if has_version "dev-libs/gobject-introspection" && ! has_version "=${CATEGORY}/${PF}"; then
+               ewarn "You must rebuild gobject-introspection so that the installed"
+               ewarn "typelibs and girs are regenerated for the new APIs in glib"
+       fi
+}
+
+pkg_postinst() {
+       # Inform users about possible breakage when updating glib and not dbus-glib, bug #297483
+       if has_version dev-libs/dbus-glib; then
+               ewarn "If you experience a breakage after updating dev-libs/glib try"
+               ewarn "rebuilding dev-libs/dbus-glib"
+       fi
+
+       if has_version '<x11-libs/gtk+-3.0.12:3'; then
+               # To have a clear upgrade path for gtk+-3.0.x users, have to resort to
+               # a warning instead of a blocker
+               ewarn
+               ewarn "Using <gtk+-3.0.12:3 with ${P} results in frequent crashes."
+               ewarn "You should upgrade to a newer version of gtk+:3 immediately."
+       fi
+}