Skip to content

Commit 321e8bd

Browse files
committed
curl: restore SOURCE_DATE_EPOCH
lld from llvm 18 respects it. We are doing our own PE cleaning for now, but this could eventually take over (once `debian:testing` switches to 18 and possibly `ld` also implements it.) https://releases.llvm.org/18.1.0/tools/lld/docs/ReleaseNotes.html#coff-improvements llvm/llvm-project#81326
1 parent a4a4f1e commit 321e8bd

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

curl-autotools.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ _VER="$1"
1616

1717
rm -r -f "${_PKGDIR:?}" "${_BLDDIR:?}"
1818

19+
readonly _ref='CHANGES'
20+
21+
case "${_HOST}" in
22+
bsd|mac) unixts="$(TZ=UTC stat -f '%m' "${_ref}")";;
23+
*) unixts="$(TZ=UTC stat -c '%Y' "${_ref}")";;
24+
esac
25+
26+
export SOURCE_DATE_EPOCH="${unixts}"
27+
1928
# Build
2029

2130
[ -f 'configure' ] || autoreconf --force --install

curl-cmake.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ _VER="$1"
1919

2020
[ "${CW_DEV_INCREMENTAL:-}" != '1' ] && rm -r -f "${_PKGDIR:?}" "${_BLDDIR:?}"
2121

22+
readonly _ref='CHANGES'
23+
24+
case "${_HOST}" in
25+
bsd|mac) unixts="$(TZ=UTC stat -f '%m' "${_ref}")";;
26+
*) unixts="$(TZ=UTC stat -c '%Y' "${_ref}")";;
27+
esac
28+
29+
export SOURCE_DATE_EPOCH="${unixts}"
30+
2231
# Build
2332

2433
options=''

curl-pkg.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
{
99
# Make steps for determinism
1010

11-
readonly _ref='CHANGES'
12-
1311
# Show the reference timestamp in UTC.
12+
# shellcheck disable=SC2154
1413
case "${_HOST}" in
1514
bsd|mac) TZ=UTC stat -f '%N: %Sm' -t '%Y-%m-%d %H:%M' "${_ref}";;
1615
*) TZ=UTC stat -c '%n: %y' "${_ref}";;

0 commit comments

Comments
 (0)