From 08f64cbc4e6631776d593cc122010dbe73dfba23 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 6 Feb 2023 09:56:37 +0100 Subject: [PATCH] Fix C99 compatibility issue on configure script Related to: --- bash-configure-c99.patch | 21 +++++++++++++++++++++ bash.spec | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 bash-configure-c99.patch diff --git a/bash-configure-c99.patch b/bash-configure-c99.patch new file mode 100644 index 0000000..df0c4f9 --- /dev/null +++ b/bash-configure-c99.patch @@ -0,0 +1,21 @@ +Avoid an implicit declaration of dup2 in its configure probe. This +prevents build issues with future compilers. + +Already reported upstream: + + + +diff --git a/aclocal.m4 b/aclocal.m4 +index 6162f6eb9ef90754..5cbbe96d7158197a 100644 +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -238,6 +238,9 @@ AC_CACHE_VAL(bash_cv_dup2_broken, + #include + #include + #include ++#ifdef HAVE_UNISTD_H ++# include ++#endif /* HAVE_UNISTD_H */ + int + main() + { diff --git a/bash.spec b/bash.spec index 983752b..370ffe5 100644 --- a/bash.spec +++ b/bash.spec @@ -6,7 +6,7 @@ Version: %{baseversion}.%{patchlevel} Name: bash Summary: The GNU Bourne Again shell -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ Url: https://www.gnu.org/software/bash Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz @@ -86,6 +86,7 @@ Patch127: bash-4.4-no-loadable-builtins.patch # 2020528 - Add a runtime option to enable history logging to syslog # This option is undocumented in upstream and is documented by this patch Patch128: bash-5.0-syslog-history.patch +Patch129: bash-configure-c99.patch BuildRequires: gcc BuildRequires: texinfo bison @@ -318,6 +319,9 @@ end %{_libdir}/pkgconfig/%{name}.pc %changelog +* Mon Feb 06 2023 Florian Weimer - 5.2.15-3 +- Fix C99 compatibility issue on configure script + * Wed Jan 18 2023 Fedora Release Engineering - 5.2.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild