From 71e9e15be76d81e68f0bebaa9d8d2b175ff79ec2 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 26 Oct 2024 23:32:25 +0200 Subject: [PATCH] package/heimdal: Fix build with autoconf-2.72 Fixes: http://autobuild.buildroot.net/results/175/175fb65f0151866cd2d83c91c23b453d8c4489f7/ https://bugs.busybox.net/show_bug.cgi?id=15991 Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni (cherry picked from commit a79d0b467f60e7d198c25549166a1383bb978392) Signed-off-by: Peter Korsgaard --- ...file.m4-Fix-build-with-autoconf-2.72.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/heimdal/0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch diff --git a/package/heimdal/0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch b/package/heimdal/0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch new file mode 100644 index 0000000000..5b36c5a784 --- /dev/null +++ b/package/heimdal/0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch @@ -0,0 +1,27 @@ +From 1b57b62d82a478c1fade350f0fb1d57031a8734e Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Sat, 10 Feb 2024 09:33:48 +0100 +Subject: [PATCH] cf/largefile.m4: Fix build with autoconf-2.72 + +Fixes https://github.com/heimdal/heimdal/issues/1201 + +Upstream: https://github.com/heimdal/heimdal/commit/1b57b62d82a478c1fade350f0fb1d57031a8734e + +Signed-off-by: Bernd Kuhls +--- + cf/largefile.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cf/largefile.m4 b/cf/largefile.m4 +index 5c54897be4..cdbbc55431 100644 +--- a/cf/largefile.m4 ++++ b/cf/largefile.m4 +@@ -10,7 +10,7 @@ dnl with generated code, such as lex + if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then + CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" + fi +-if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no; then ++if test "$enable_largefile" != no -a "$ac_cv_sys_file_offset_bits" != no && test -n "$ac_cv_sys_file_offset_bits"; then + CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" + fi + ])