Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/enscript/files/, app-text/enscript/
Date: Wed, 07 Sep 2022 22:51:40
Message-Id: 1662591089.7ce9609cb78bce9009841307efd5078eb2096386.sam@gentoo
1 commit: 7ce9609cb78bce9009841307efd5078eb2096386
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 7 22:40:41 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 7 22:51:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ce9609c
7
8 app-text/enscript: fix implicit function declarations
9
10 Unlike normal missing includes, implicit function declaration
11 fixes require a revbump as they can affect code generation.
12
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 ...nscript-1.6.6.ebuild => enscript-1.6.6-r1.ebuild} | 3 ++-
16 .../enscript-1.6.2-implicit-function-decl.patch | 20 ++++++++++++++++++++
17 2 files changed, 22 insertions(+), 1 deletion(-)
18
19 diff --git a/app-text/enscript/enscript-1.6.6.ebuild b/app-text/enscript/enscript-1.6.6-r1.ebuild
20 similarity index 92%
21 rename from app-text/enscript/enscript-1.6.6.ebuild
22 rename to app-text/enscript/enscript-1.6.6-r1.ebuild
23 index bb889e8b0db3..f7a75d380afc 100644
24 --- a/app-text/enscript/enscript-1.6.6.ebuild
25 +++ b/app-text/enscript/enscript-1.6.6-r1.ebuild
26 @@ -1,4 +1,4 @@
27 -# Copyright 1999-2021 Gentoo Authors
28 +# Copyright 1999-2022 Gentoo Authors
29 # Distributed under the terms of the GNU General Public License v2
30
31 EAPI=7
32 @@ -26,6 +26,7 @@ PATCHES=(
33 "${FILESDIR}"/${PN}-1.6.4-ebuild.st.patch
34 "${FILESDIR}"/${PN}-1.6.5.2-php.st.patch
35 "${FILESDIR}"/${PN}-1.6.4-fsf-gcc-darwin.patch
36 + "${FILESDIR}"/${PN}-1.6.2-implicit-function-decl.patch
37 )
38
39 src_prepare() {
40
41 diff --git a/app-text/enscript/files/enscript-1.6.2-implicit-function-decl.patch b/app-text/enscript/files/enscript-1.6.2-implicit-function-decl.patch
42 new file mode 100644
43 index 000000000000..90868d182023
44 --- /dev/null
45 +++ b/app-text/enscript/files/enscript-1.6.2-implicit-function-decl.patch
46 @@ -0,0 +1,20 @@
47 +https://cgit.openembedded.org/meta-openembedded/plain/meta-oe/recipes-extended/enscript/enscript/0001-getopt-Include-string.h-for-strcmp-stcncmp-functions.patch?h=master-next&id=6c251848590867debaaf87bfe12bed572d8f6a8d
48 +
49 +From faec0206611f8ea4ca6f70987866077ac8c3c6c1 Mon Sep 17 00:00:00 2001
50 +From: Khem Raj <raj.khem@×××××.com>
51 +Date: Fri, 2 Sep 2022 21:24:27 -0700
52 +Subject: [PATCH] getopt: Include string.h for strcmp/stcncmp functions
53 +
54 +Upstream-Status: Pending
55 +
56 +Signed-off-by: Khem Raj <raj.khem@×××××.com>
57 +--- a/compat/getopt.c
58 ++++ b/compat/getopt.c
59 +@@ -43,6 +43,7 @@
60 + #endif
61 +
62 + #include <stdio.h>
63 ++#include <string.h> /* strcmp */
64 +
65 + /* Comment out all this code if we are using the GNU C Library, and are not
66 + actually compiling the library itself. This code is part of the GNU C