public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: src_unpack.eblit
Date: Sun, 12 Aug 2012 05:44:34 +0000 (UTC)	[thread overview]
Message-ID: <20120812054434.7C4672004B@flycatcher.gentoo.org> (raw)

vapier      12/08/12 05:44:34

  Modified:             src_unpack.eblit
  Log:
  Do not use the -lgcc_eh hack with glibc-2.17+ since its been addressed upstream.
  
  (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

Revision  Changes    Path
1.17                 sys-libs/glibc/files/eblits/src_unpack.eblit

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit?r1=1.16&r2=1.17

Index: src_unpack.eblit
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- src_unpack.eblit	16 Feb 2012 00:27:08 -0000	1.16
+++ src_unpack.eblit	12 Aug 2012 05:44:34 -0000	1.17
@@ -1,6 +1,6 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit,v 1.16 2012/02/16 00:27:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit,v 1.17 2012/08/12 05:44:34 vapier Exp $
 
 int_to_KV() {
 	local version=$1 major minor micro
@@ -171,9 +171,13 @@
 	# static C-Only gcc, -lgcc_eh doesn't exist.
 	# http://sources.redhat.com/ml/libc-alpha/2003-09/msg00100.html
 	# http://sourceware.org/ml/libc-alpha/2005-02/msg00042.html
-	echo 'int main(){}' > "${T}"/gcc_eh_test.c
-	if ! $(tc-getCC ${CTARGET}) "${T}"/gcc_eh_test.c -lgcc_eh 2>/dev/null ; then
-		sed -i -e 's:-lgcc_eh::' Makeconfig || die "sed gcc_eh"
+	# But! Finally fixed in recent versions:
+	# http://sourceware.org/ml/libc-alpha/2012-05/msg01865.html
+	if version_is_at_least 2.17 ${PV} ; then
+		echo 'int main(){}' > "${T}"/gcc_eh_test.c
+		if ! $(tc-getCC ${CTARGET}) "${T}"/gcc_eh_test.c -lgcc_eh 2>/dev/null ; then
+			sed -i -e 's:-lgcc_eh::' Makeconfig || die "sed gcc_eh"
+		fi
 	fi
 
 	cd "${WORKDIR}"





             reply	other threads:[~2012-08-12  5:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12  5:44 Mike Frysinger (vapier) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-08-21 14:06 [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: src_unpack.eblit Mike Frysinger (vapier)
2013-09-28 22:07 Mike Frysinger (vapier)
2013-02-09  4:42 Mike Frysinger (vapier)
2012-08-14 16:06 Mike Frysinger (vapier)
2012-01-13 21:18 Mike Frysinger (vapier)
2011-08-23 18:37 Mike Frysinger (vapier)
2010-06-08  4:59 Mike Frysinger (vapier)
2010-04-25 17:17 Mike Frysinger (vapier)
2009-11-09 22:16 Mike Frysinger (vapier)
2009-05-17 22:17 Mike Frysinger (vapier)
2008-12-08  1:30 Mike Frysinger (vapier)
2008-11-29 21:03 Mike Frysinger (vapier)
2008-06-08  0:49 Mike Frysinger (vapier)
2007-11-11 20:12 Mike Frysinger (vapier)
2007-11-10  4:07 Mike Frysinger (vapier)
2007-10-07  3:43 Mike Frysinger (vapier)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120812054434.7C4672004B@flycatcher.gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox