Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/zile/files/, app-editors/zile/
Date: Sat, 01 Jul 2017 08:36:42
Message-Id: 1498898111.d4191002e984caf2f70a3dcf2bf40da6647d1bff.ulm@gentoo
1 commit: d4191002e984caf2f70a3dcf2bf40da6647d1bff
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 1 08:25:39 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 1 08:35:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4191002
7
8 app-editors/zile: Fix build failure with glibc-2.16.
9
10 Bug: 623218
11 Package-Manager: Portage-2.3.6, Repoman-2.3.2
12
13 app-editors/zile/files/zile-2.3.24-gets.patch | 30 +++++++++++++++++++++++++++
14 app-editors/zile/zile-2.3.24-r1.ebuild | 1 +
15 2 files changed, 31 insertions(+)
16
17 diff --git a/app-editors/zile/files/zile-2.3.24-gets.patch b/app-editors/zile/files/zile-2.3.24-gets.patch
18 new file mode 100644
19 index 00000000000..9060c4bcf92
20 --- /dev/null
21 +++ b/app-editors/zile/files/zile-2.3.24-gets.patch
22 @@ -0,0 +1,30 @@
23 +https://bugs.gentoo.org/623218
24 +Backported from gnulib in zile-2.4.11.
25 +
26 +--- zile-2.3.24-orig/lib/stdio.in.h
27 ++++ zile-2.3.24/lib/stdio.in.h
28 +@@ -717,22 +717,11 @@
29 + # endif
30 + #endif
31 +
32 +-#if @GNULIB_GETS@
33 +-# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
34 +-# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
35 +-# undef gets
36 +-# define gets rpl_gets
37 +-# endif
38 +-_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
39 +-_GL_CXXALIAS_RPL (gets, char *, (char *s));
40 +-# else
41 +-_GL_CXXALIAS_SYS (gets, char *, (char *s));
42 +-# undef gets
43 +-# endif
44 +-_GL_CXXALIASWARN (gets);
45 + /* It is very rare that the developer ever has full control of stdin,
46 + so any use of gets warrants an unconditional warning. Assume it is
47 + always declared, since it is required by C89. */
48 ++#undef gets
49 ++#if HAVE_RAW_DECL_GETS
50 + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
51 + #endif
52 +
53
54 diff --git a/app-editors/zile/zile-2.3.24-r1.ebuild b/app-editors/zile/zile-2.3.24-r1.ebuild
55 index ebbf29d3994..a826b16dc35 100644
56 --- a/app-editors/zile/zile-2.3.24-r1.ebuild
57 +++ b/app-editors/zile/zile-2.3.24-r1.ebuild
58 @@ -20,6 +20,7 @@ DEPEND="${RDEPEND}
59
60 src_prepare() {
61 epatch "${FILESDIR}/${P}-userhome.patch"
62 + epatch "${FILESDIR}/${P}-gets.patch"
63 }
64
65 src_configure() {