summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLina Pezzella <j4rg0n@gentoo.org>2005-02-12 21:26:51 +0000
committerLina Pezzella <j4rg0n@gentoo.org>2005-02-12 21:26:51 +0000
commit9e93c631bcf25d1f292b843cf1ade804c5d7b455 (patch)
tree385a167a45c01f766169cbca0bb9dcf11f148ccb /dev-libs/glib
parentNew package (diff)
downloadgentoo-2-9e93c631bcf25d1f292b843cf1ade804c5d7b455.tar.gz
gentoo-2-9e93c631bcf25d1f292b843cf1ade804c5d7b455.tar.bz2
gentoo-2-9e93c631bcf25d1f292b843cf1ade804c5d7b455.zip
Bug #73708 fix.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'dev-libs/glib')
-rw-r--r--dev-libs/glib/ChangeLog16
-rw-r--r--dev-libs/glib/files/glib-2-macos.patch35
-rw-r--r--dev-libs/glib/glib-2.4.8.ebuild10
3 files changed, 53 insertions, 8 deletions
diff --git a/dev-libs/glib/ChangeLog b/dev-libs/glib/ChangeLog
index 1857d3cdc0dc..696af268eb13 100644
--- a/dev-libs/glib/ChangeLog
+++ b/dev-libs/glib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/glib
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.124 2005/02/11 13:07:39 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/ChangeLog,v 1.125 2005/02/12 21:26:51 j4rg0n Exp $
+
+ 12 Feb 2005; Lina Pezzella <j4rg0n@gentoo.org> +files/glib-2-macos.patch,
+ glib-2.4.8.ebuild:
+ Fix for Bug #73708. Kudos to kito for the append-ldflags fix.
*glib-2.6.2-r1 (11 Feb 2005)
@@ -40,7 +44,7 @@
21 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org> glib-2.4.8.ebuild:
Stable on sparc
- 21 Dec 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.8.ebuild:
+ 21 Dec 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.8.ebuild:
Stable on alpha.
20 Dec 2004; Dylan Carlson <absinthe@gentoo.org> glib-2.4.8.ebuild:
@@ -90,7 +94,7 @@
11 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> glib-1.2.10-r5.ebuild:
Fixed shared libraries compilation on macos. This closes bug #60580.
- 10 Oct 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.6.ebuild:
+ 10 Oct 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.6.ebuild:
Stable on alpha.
*glib-2.4.7 (09 Oct 2004)
@@ -107,7 +111,7 @@
06 Sep 2004; Guy Martin <gmsoft@gentoo.org> glib-2.4.5.ebuild:
Marked stable on hppa.
- 06 Sep 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.5.ebuild:
+ 06 Sep 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.5.ebuild:
Stable on alpha.
31 Aug 2004; Michael Hanselmann <hansmi@gentoo.org> glib-1.2.10-r5.ebuild:
@@ -121,7 +125,7 @@
19 Aug 2004; foser <foser@gentoo.org> glib-2.4.6.ebuild :
New release
- 08 Aug 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.4.ebuild:
+ 08 Aug 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.4.ebuild:
Stable on alpha.
07 Aug 2004; Travis Tilley <lv@gentoo.org> glib-2.4.4.ebuild:
@@ -166,7 +170,7 @@
19 Jun 2004; Gustavo Zacarias <gustavoz@gentoo.org> glib-2.4.1.ebuild:
sparc stable
- 16 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.1.ebuild:
+ 16 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> glib-2.4.1.ebuild:
Stable on alpha.
*glib-2.4.2 (15 Jun 2004)
diff --git a/dev-libs/glib/files/glib-2-macos.patch b/dev-libs/glib/files/glib-2-macos.patch
new file mode 100644
index 000000000000..5b8da628eced
--- /dev/null
+++ b/dev-libs/glib/files/glib-2-macos.patch
@@ -0,0 +1,35 @@
+--- glib-2.4.8/configure.orig Thu Dec 2 15:36:40 2004
++++ glib-2.4.8/configure Sat Feb 12 14:28:37 2005
+@@ -31712,9 +31712,9 @@
+ # skip cygwin -pthread or -pthreads test
+ ;;
+ *)
+- for flag in pthread pthreads; do
++ for flag in '-pthread' '-pthreads' ''; do
+ glib_save_CFLAGS="$CFLAGS"
+- CFLAGS="$CFLAGS -$flag"
++ CFLAGS="$CFLAGS $flag"
+ if test "$cross_compiling" = yes; then
+ cat >conftest.$ac_ext <<_ACEOF
+
+@@ -31803,8 +31803,8 @@
+ fi
+ CFLAGS="$glib_save_CFLAGS"
+ if test $glib_flag_works = yes ; then
+- G_THREAD_CFLAGS=-$flag
+- G_THREAD_LIBS=-$flag
++ G_THREAD_CFLAGS=$flag
++ G_THREAD_LIBS=$flag
+ fi
+ done
+ ;;
+@@ -31861,6 +31861,9 @@
+ *-mingw*)
+ # No flag needed when using MSVCRT.DLL
+ G_THREAD_CFLAGS=""
++ ;;
++ *-darwin*)
++ # Nothing needed.
+ ;;
+ *)
+ G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
diff --git a/dev-libs/glib/glib-2.4.8.ebuild b/dev-libs/glib/glib-2.4.8.ebuild
index 0b822737e3c4..9e04975c452d 100644
--- a/dev-libs/glib/glib-2.4.8.ebuild
+++ b/dev-libs/glib/glib-2.4.8.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.4.8.ebuild,v 1.10 2005/02/06 22:07:09 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/glib/glib-2.4.8.ebuild,v 1.11 2005/02/12 21:26:51 j4rg0n Exp $
-inherit libtool
+inherit libtool eutils flag-o-matic
DESCRIPTION="The GLib library of C routines"
HOMEPAGE="http://www.gtk.org/"
@@ -19,10 +19,16 @@ DEPEND=">=dev-util/pkgconfig-0.14
RDEPEND="virtual/libc"
+src_unpack() {
+ unpack ${A}
+ use ppc-macos && epatch ${FILESDIR}/${PN}-2-macos.patch
+}
+
src_compile() {
if use ppc-macos; then
glibtoolize
+ append-ldflags "-L/usr/lib -lpthread"
else
elibtoolize
fi