java/openjdk18-24: fix printf in configure output

Printf was confused because the argument was used as format string
and contained a %.
The issue is only cosmetical so not bumping port revision.

It is mentioned in the PR that an upstream fix is in openjdk25.

PR:	287053
Approved by:	java@
This commit is contained in:
Ronald Klop
2025-05-28 16:46:11 +02:00
parent f52105e706
commit 5769468b4b
7 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi

View File

@@ -0,0 +1,11 @@
--- make/autoconf/help.m4.orig 2025-05-24 21:54:30 UTC
+++ make/autoconf/help.m4
@@ -269,7 +269,7 @@ AC_DEFUN_ONCE([HELP_PRINT_SUMMARY_AND_WARNINGS],
fi
fi
if test "x$CONFIGURE_COMMAND_LINE" != x; then
- printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
+ printf "using configure arguments '%s'.\n" "$CONFIGURE_COMMAND_LINE"
else
printf "using default settings.\n"
fi