diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-11-14 10:54:42 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-11-14 10:56:40 -0500 |
commit | c569d6968ab5c7782f74b56a33df3e43bfc70828 (patch) | |
tree | 4d454aef1e980d5f06495b85b26e845e90936f7d /app-text/asa | |
parent | app-admin/ansible-core: drop 2.12.9 (diff) | |
download | gentoo-c569d6968ab5c7782f74b56a33df3e43bfc70828.tar.gz gentoo-c569d6968ab5c7782f74b56a33df3e43bfc70828.tar.bz2 gentoo-c569d6968ab5c7782f74b56a33df3e43bfc70828.zip |
app-text/asa: fix build with -Werror=implicit-int
Closes: https://bugs.gentoo.org/880999
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-text/asa')
-rw-r--r-- | app-text/asa/asa-1.1-r1.ebuild | 6 | ||||
-rw-r--r-- | app-text/asa/files/asa-1.1-implicit-int.patch | 15 |
2 files changed, 20 insertions, 1 deletions
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)))) + { |