public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-text/asa/files/, app-text/asa/
@ 2022-11-14 15:56 Mike Gilbert
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert @ 2022-11-14 15:56 UTC (permalink / raw
  To: gentoo-commits

commit:     c569d6968ab5c7782f74b56a33df3e43bfc70828
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 14 15:54:42 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Nov 14 15:56:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c569d696

app-text/asa: fix build with -Werror=implicit-int

Closes: https://bugs.gentoo.org/880999
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 app-text/asa/asa-1.1-r1.ebuild                |  6 +++++-
 app-text/asa/files/asa-1.1-implicit-int.patch | 15 +++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/app-text/asa/asa-1.1-r1.ebuild b/app-text/asa/asa-1.1-r1.ebuild
index 64afb7597cb3..bb675306d00c 100644
--- a/app-text/asa/asa-1.1-r1.ebuild
+++ b/app-text/asa/asa-1.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,6 +14,10 @@ SLOT="0"
 KEYWORDS="amd64"
 
 src_prepare() {
+	local PATCHES=(
+		"${FILESDIR}/asa-1.1-implicit-int.patch"
+	)
+
 	default
 
 	sed \

diff --git a/app-text/asa/files/asa-1.1-implicit-int.patch b/app-text/asa/files/asa-1.1-implicit-int.patch
new file mode 100644
index 000000000000..2f130912abaa
--- /dev/null
+++ b/app-text/asa/files/asa-1.1-implicit-int.patch
@@ -0,0 +1,15 @@
+Fix build with -Werror=implicit-int
+
+https://bugs.gentoo.org/880999
+
+--- a/asa.c
++++ b/asa.c
+@@ -201,7 +201,7 @@
+ copy_file(FILE *fp)
+ {
+     str line;
+-    static first_line = 1;
++    static int first_line = 1;
+ 
+     while ((line.len=readline(fp, &(line.chr))))
+     {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-14 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 15:56 [gentoo-commits] repo/gentoo:master commit in: app-text/asa/files/, app-text/asa/ Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox