gentoo/dev-vcs/cvs/files/0001-fix-quoting-around-potentially-empty-shell-var.patch
Eli Schwartz ef52b34d6d
dev-vcs/cvs: fix all kinds of Modern C issues
This package release is an extra-vintage 2005 with extra gnulib on top.

Among numerous other issues, the broken autoconf standard macros managed
to break the STDC_HEADERS check, resulting in cvs thinking that there
are no available standard headers, and not bothering to include them.
Ouch!

To fix this, we:
- fix a broken AM_GNU_GETTEXT_VERSION macro to stop autopoint erroring
- rerun eautoreconf, to fix various standard macros with c99 fixes
- add some m4 patches that partially backport gnulib fixes (I think hope
  and pray, since I stopped looking at them after a bit due to the
  inability to backport)

Also, while we are at it, throw in a broken shell quoting fix.

Closes: https://bugs.gentoo.org/898782
Closes: https://bugs.gentoo.org/882225
Closes: https://bugs.gentoo.org/870835
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-05-20 22:56:54 +01:00

31 lines
820 B
Diff

From 6054eb157a25b4b46427baa6eb53b5e18135019a Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz93@gmail.com>
Date: Sun, 19 May 2024 21:15:34 -0400
Subject: [PATCH 1/2] fix quoting around potentially empty shell var
required to handle POSIX `test` command
* QA Notice: Broken syntax in configure script
*
* ./configure: line 8046: test: =: unary operator expected
---
configure.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.in b/configure.in
index d4f3a44..2a9b0ff 100644
--- a/configure.in
+++ b/configure.in
@@ -179,7 +179,7 @@ AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_FUNC_FSEEKO
-if test $ac_cv_func_fseeko = no; then
+if test "$ac_cv_func_fseeko" = no; then
AC_LIBOBJ(fseeko)
AC_LIBOBJ(ftello)
fi
--
2.44.1