Subject: [PATCH] Fix apl_BUILD_DATE computation

From: Jochen Sprickerhof <[email-masked]>
Date: Jul, 16 2026 20:03:31 +0200

- Remove space after equal sign as it is not allowed in shell.
- Call date with -d @<timestamp> to set the correct date.

---

--- gnu-apl-2.0.orig/m4/build_date.m4
+++ gnu-apl-2.0/m4/build_date.m4
@@ -22,9 +22,9 @@ apl_BUILD_OS=$(uname -s -r -m)
 
 AS_IF( [test -n "$SOURCE_DATE_EPOCH"],
        [ apl_BUILD_OS="none"
-         apl_BUILD_DATE=             $(
-                   dash_format_date -u -d "$SOURCE_DATE_EPOCH" 2>/dev/null ||
-                   dash_format_date -u -r $SOURCE_DATE_EPOCH  ||
+         apl_BUILD_DATE=$(
+                   dash_format_date -u -d "@$SOURCE_DATE_EPOCH" 2>/dev/null ||
+                   dash_format_date -u -d "@$SOURCE_DATE_EPOCH"  ||
                    dash_format_date -u)
        ])
 AC_SUBST([apl_BUILD_DATE])