diff mbox series

[1/1] package/heimdal: Fix build with autoconf-2.72

Message ID 20240210103634.3502847-1-bernd@kuhls.net
State Changes Requested
Headers show
Series [1/1] package/heimdal: Fix build with autoconf-2.72 | expand

Commit Message

Bernd Kuhls Feb. 10, 2024, 10:36 a.m. UTC
Fixes:
http://autobuild.buildroot.net/results/175/175fb65f0151866cd2d83c91c23b453d8c4489f7/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 ...file.m4-Fix-build-with-autoconf-2.72.patch | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/heimdal/0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch

Comments

Thomas Petazzoni Feb. 11, 2024, 9:46 p.m. UTC | #1
On Sat, 10 Feb 2024 11:36:34 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> +-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

Could you provide more details? I don't see the relation ship between
this change and the build failure.

Also, you're using && while the rest of the test is using -a. And
you're testing if the strong is non empty *after* testing if it's
different from no.

We really need more details.

Thanks a lot!

Thomas
diff mbox series

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..655ede2af6
--- /dev/null
+++ b/package/heimdal/0002-cf-largefile.m4-Fix-build-with-autoconf-2.72.patch
@@ -0,0 +1,30 @@ 
+From 2b372170c894ed9aa3fe2fca976f3541ea7041d9 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd@kuhls.net>
+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/pull/1229
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ cf/largefile.m4 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cf/largefile.m4 b/cf/largefile.m4
+index 5c54897be..cdbbc5543 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
+ ])
+-- 
+2.39.2
+