[Ubuntu 25.10] openjdk fails to build due to rust-coreutils date
authorVladimir Petko <vladimir.petko@canonical.com>
Thu, 23 Oct 2025 10:33:48 +0000 (12:33 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 23 Oct 2025 10:33:48 +0000 (12:33 +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 8c518d05d41d1339c532bc7bff6bbd3e8853cae6..07aa832d1834acb8cf823aba3c44fd6e8d1cf3d9 100644 (file)
@@ -373,7 +373,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