app-text/wv: prevent suppression of POSIX decls

Closes: https://bugs.gentoo.org/874396
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert 2022-10-03 11:57:13 +02:00
parent 8556bf0319
commit 78cccf372d
No known key found for this signature in database
GPG Key ID: CE36E117202E3842
1 changed files with 5 additions and 0 deletions

View File

@ -36,11 +36,16 @@ PATCHES=(
src_prepare() {
default
# remove -ansi flag, since it disables POSIX
# function declarations (bug #874396)
sed -i -e 's/-ansi//' configure || die
if ! use tools; then
sed -i -e '/bin_/d' GNUmakefile.am || die
sed -i -e '/SUBDIRS/d' GNUmakefile.am || die
sed -i -e '/\/GNUmakefile/d' configure.ac || die
sed -i -e '/wv[[:upper:]]/d' configure.ac || die
sed -i -e 's/-ansi//' configure.ac || die
# automake-1.13 fix, bug #467620
sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' configure.ac || die