[Ubuntu 25.10] openjdk fails to build due to rust-coreutils date
authorVladimir Petko <vladimir.petko@canonical.com>
Thu, 23 Oct 2025 10:14:51 +0000 (12:14 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 23 Oct 2025 10:14:51 +0000 (12:14 +0200)
Origin: upstream, https://github.com/openjdk/jdk/pull/27705
Bug: https://bugs.openjdk.org/browse/JDK-8369450
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/openjdk-25/+bug/2127120
Last-Update: 2025-10-09

Add uutils as a GNU-compatible date provider.

Gbp-Pq: Name jdk-8369450-proposed.patch

make/autoconf/basic_tools.m4

index 92a4582ecddc9d2099c4014474204c20d334a4a9..3ad7d778be15752424892cd6f0322630cbebe0b5 100644 (file)
@@ -378,7 +378,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_COMPLEX_TOOLS],
 
   # Check if it's a GNU date compatible version
   AC_MSG_CHECKING([if date is a GNU compatible version])
-  check_date=`$DATE --version 2>&1 | $GREP "GNU\|BusyBox"`
+  check_date=`$DATE --version 2>&1 | $GREP "GNU\|BusyBox\|uutils"`
   if test "x$check_date" != x; then
     AC_MSG_RESULT([yes])
     IS_GNU_DATE=yes