summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-09-28 16:01:13 +0000
committerJeroen Roovers <jer@gentoo.org>2012-09-28 16:01:13 +0000
commitde88da1da7afd702694a6563773818852a99932c (patch)
treefee91504081a38b0b46c1c234dbf62c6ea289cb6 /dev-vcs/cssc
parentAdd LINGUAS support so that USE=nls actually makes sense. (diff)
downloadgentoo-2-de88da1da7afd702694a6563773818852a99932c.tar.gz
gentoo-2-de88da1da7afd702694a6563773818852a99932c.tar.bz2
gentoo-2-de88da1da7afd702694a6563773818852a99932c.zip
Fix building against sys-libs/glibc-2.16 (bug #436510).
(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)
Diffstat (limited to 'dev-vcs/cssc')
-rw-r--r--dev-vcs/cssc/ChangeLog6
-rw-r--r--dev-vcs/cssc/cssc-1.3.0-r1.ebuild6
-rw-r--r--dev-vcs/cssc/files/cssc-1.3.0-gets.patch13
3 files changed, 22 insertions, 3 deletions
diff --git a/dev-vcs/cssc/ChangeLog b/dev-vcs/cssc/ChangeLog
index c78c8c964306..29a96f7f283f 100644
--- a/dev-vcs/cssc/ChangeLog
+++ b/dev-vcs/cssc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-vcs/cssc
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.15 2012/09/12 16:29:00 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.16 2012/09/28 16:01:13 jer Exp $
+
+ 28 Sep 2012; Jeroen Roovers <jer@gentoo.org> cssc-1.3.0-r1.ebuild,
+ +files/cssc-1.3.0-gets.patch:
+ Fix building against sys-libs/glibc-2.16 (bug #436510).
12 Sep 2012; Jeroen Roovers <jer@gentoo.org> cssc-1.3.0-r1.ebuild:
Use P^^ instead of hard-coded upstream package name.
diff --git a/dev-vcs/cssc/cssc-1.3.0-r1.ebuild b/dev-vcs/cssc/cssc-1.3.0-r1.ebuild
index c18359fc938a..9722a6d78381 100644
--- a/dev-vcs/cssc/cssc-1.3.0-r1.ebuild
+++ b/dev-vcs/cssc/cssc-1.3.0-r1.ebuild
@@ -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/dev-vcs/cssc/cssc-1.3.0-r1.ebuild,v 1.2 2012/09/12 16:29:00 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/cssc-1.3.0-r1.ebuild,v 1.3 2012/09/28 16:01:13 jer Exp $
EAPI=4
inherit eutils
@@ -17,7 +17,9 @@ IUSE=""
DOCS=( README NEWS ChangeLog AUTHORS )
src_prepare() {
- epatch "${FILESDIR}"/${P}-gcc47.patch
+ epatch \
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-gets.patch
# The large test takes a long time
sed -i tests/Makefile.* \
diff --git a/dev-vcs/cssc/files/cssc-1.3.0-gets.patch b/dev-vcs/cssc/files/cssc-1.3.0-gets.patch
new file mode 100644
index 000000000000..d844b83a0990
--- /dev/null
+++ b/dev-vcs/cssc/files/cssc-1.3.0-gets.patch
@@ -0,0 +1,13 @@
+--- a/gl/lib/stdio.in.h
++++ b/gl/lib/stdio.in.h
+@@ -138,8 +138,10 @@
+ /* It is very rare that the developer ever has full control of stdin,
+ so any use of gets warrants an unconditional warning. Assume it is
+ always declared, since it is required by C89. */
++#ifdef gets
+ #undef gets
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@