mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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>
123 lines
3.1 KiB
Diff
123 lines
3.1 KiB
Diff
From 4df675986524d0e8e76530a3e1bd7860aef9973d Mon Sep 17 00:00:00 2001
|
|
From: Eli Schwartz <eschwartz93@gmail.com>
|
|
Date: Sun, 19 May 2024 21:27:38 -0400
|
|
Subject: [PATCH 1/2] m4: fix various missing includes of headers for feature
|
|
test funcs
|
|
|
|
---
|
|
m4/cvs_func_printf_ptr.m4 | 1 +
|
|
m4/mkdir-slash.m4 | 6 +++++-
|
|
m4/nanosleep.m4 | 1 +
|
|
m4/regex.m4 | 1 +
|
|
m4/rename.m4 | 1 +
|
|
5 files changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/m4/cvs_func_printf_ptr.m4 b/m4/cvs_func_printf_ptr.m4
|
|
index 4348e29..f04c135 100644
|
|
--- a/m4/cvs_func_printf_ptr.m4
|
|
+++ b/m4/cvs_func_printf_ptr.m4
|
|
@@ -24,6 +24,7 @@ AC_DEFUN([CVS_FUNC_PRINTF_PTR],
|
|
[AC_CACHE_CHECK(whether printf supports %p,
|
|
cvs_cv_func_printf_ptr,
|
|
[AC_TRY_RUN([#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
/* If printf supports %p, exit 0. */
|
|
int
|
|
main ()
|
|
diff --git a/m4/mkdir-slash.m4 b/m4/mkdir-slash.m4
|
|
index c1e595b..0ca9a91 100644
|
|
--- a/m4/mkdir-slash.m4
|
|
+++ b/m4/mkdir-slash.m4
|
|
@@ -1,4 +1,4 @@
|
|
-#serial 4
|
|
+#serial 5
|
|
|
|
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
|
|
# This file is free software; the Free Software Foundation
|
|
@@ -10,6 +10,7 @@
|
|
# trailing slashes.
|
|
AC_DEFUN([gl_FUNC_MKDIR_TRAILING_SLASH],
|
|
[dnl
|
|
+ AC_CHECK_HEADERS_ONCE(unistd.h)
|
|
AC_CACHE_CHECK([whether mkdir fails due to a trailing slash],
|
|
gl_cv_func_mkdir_trailing_slash_bug,
|
|
[
|
|
@@ -19,6 +20,9 @@ AC_DEFUN([gl_FUNC_MKDIR_TRAILING_SLASH],
|
|
# include <sys/types.h>
|
|
# include <sys/stat.h>
|
|
# include <stdlib.h>
|
|
+# ifdef HAVE_UNISTD_H
|
|
+# include <unistd.h>
|
|
+# endif
|
|
int main ()
|
|
{
|
|
rmdir ("confdir-slash");
|
|
diff --git a/m4/nanosleep.m4 b/m4/nanosleep.m4
|
|
index 5590b9b..035e440 100644
|
|
--- a/m4/nanosleep.m4
|
|
+++ b/m4/nanosleep.m4
|
|
@@ -39,6 +39,7 @@ AC_DEFUN([gl_FUNC_NANOSLEEP],
|
|
# include <time.h>
|
|
# endif
|
|
# endif
|
|
+# include <stdlib.h>
|
|
|
|
int
|
|
main ()
|
|
diff --git a/m4/regex.m4 b/m4/regex.m4
|
|
index 34435de..5988f68 100644
|
|
--- a/m4/regex.m4
|
|
+++ b/m4/regex.m4
|
|
@@ -36,6 +36,7 @@ AC_DEFUN([gl_INCLUDED_REGEX],
|
|
[#include <stdio.h>
|
|
#include <string.h>
|
|
#include <regex.h>
|
|
+#include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
diff --git a/m4/rename.m4 b/m4/rename.m4
|
|
index 7d59160..362fdd4 100644
|
|
--- a/m4/rename.m4
|
|
+++ b/m4/rename.m4
|
|
@@ -23,6 +23,7 @@ AC_DEFUN([vb_FUNC_RENAME],
|
|
AC_MSG_ERROR([cannot create temporary directory])
|
|
AC_TRY_RUN([
|
|
# include <stdio.h>
|
|
+# include <stdlib.h>
|
|
int
|
|
main ()
|
|
{
|
|
--
|
|
2.44.1
|
|
|
|
|
|
From f6e7556c404e1cb3ddb088fab480aa39a9ad0306 Mon Sep 17 00:00:00 2001
|
|
From: Eli Schwartz <eschwartz93@gmail.com>
|
|
Date: Sun, 19 May 2024 21:47:06 -0400
|
|
Subject: [PATCH 2/2] fix missing config.h includes preventing functions from
|
|
being found
|
|
|
|
_GNU_SOURCE needs to be defined by config.h, so that fputs_unlocked is
|
|
provided by stdio.h (as used by gnulib's unlocked-io module).
|
|
---
|
|
src/add.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/src/add.c b/src/add.c
|
|
index 7f94e2b..025cfc9 100644
|
|
--- a/src/add.c
|
|
+++ b/src/add.c
|
|
@@ -29,6 +29,8 @@
|
|
* file to be resurrected.
|
|
*/
|
|
|
|
+#include <config.h>
|
|
+
|
|
#include <assert.h>
|
|
#include "cvs.h"
|
|
#include "save-cwd.h"
|
|
--
|
|
2.44.1
|
|
|