Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ci/linux-install-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ install_rust() {
# Windows is the only cross-compilation target, and only on MinGW build
# hosts, so the caller passes "x86_64-pc-windows-gnu" as an argument there.
baseurl="https://static.rust-lang.org/dist"
version=1.100.0
version=1.100.1
prefix=/opt/rust
extra_targets="$@"

Expand All @@ -28,24 +28,24 @@ install_rust() {
if uname -m | grep aarch64; then
host=aarch64-unknown-linux-gnu
# checksum from $baseurl/rustc-${version}-aarch64-unknown-linux-gnu.tar.gz.sha256
rustc_sha=7ccc960846f81e016086f1931dedadd837a3317da80e0114df68651145c0f43b
rustc_sha=c7d99abaedc213b0d0f2671d1fab706547e54f88f1682d62d777f2cca80fd751
# checksum from $baseurl/cargo-${version}-aarch64-unknown-linux-gnu.tar.gz.sha256
cargo_sha=b3acccbba065da7e97c20592442f104bd9554d54bf87a323bba8a1d6e61282eb
cargo_sha=f5093f119f1390caea4acbc7d97476e53b88f959964ebfe57718773c7ed693b7
else
host=x86_64-unknown-linux-gnu
# checksum from $baseurl/rustc-${version}-x86_64-unknown-linux-gnu.tar.gz.sha256
rustc_sha=67b0e85ff4b3eee83c48b8ae1da10dd0bcd60b43d02cd0e7df78c59d19f6b960
rustc_sha=11c38d8d8e935a7ad871227d51053eb7f8d0a9e3c998b6f500d7ad35eb4120d9
# checksum from $baseurl/cargo-${version}-x86_64-unknown-linux-gnu.tar.gz.sha256
cargo_sha=4e7fc3cbe98e23c88a3c6ce37f834e3ffbc91536789782c4c4a9670df6b16a49
cargo_sha=965d154ea193f8f446482b627bf636690923ea05acebc95a54ffc9545065ed96
fi

# rust-std checksums per target. These are host-architecture independent.
# checksum from $baseurl/rust-std-${version}-x86_64-unknown-linux-gnu.tar.gz.sha256
std_x86_64_linux_sha=61eb09d68b338e230d698716927bd4623049c9910ef4a4972e66d763d66ed9e1
std_x86_64_linux_sha=ceaa1fd4662ec04a1d3008f3d4bfe9f781773ae6e25eedb3419b348a72a9db40
# checksum from $baseurl/rust-std-${version}-aarch64-unknown-linux-gnu.tar.gz.sha256
std_aarch64_linux_sha=89b01323a6611c9382a401282fb66eb80f1f3241df3e139d3df41afbd2da314b
std_aarch64_linux_sha=49d26d5591cb129588397dfb4fd3156206a9f5ab8323bb189533536f0fc88ba0
# checksum from $baseurl/rust-std-${version}-x86_64-pc-windows-gnu.tar.gz.sha256
std_x86_64_windows_sha=b1b2845d8212248fbd6a864940aaf65a710d269f360ca2057ede65b33fd6036b
std_x86_64_windows_sha=49923c3f324b2aec63e5bfc0da27f7c8481b07ea08814eb06ace468e5ad55915

# Download, verify, extract and install a single component tarball, then
# remove both the tarball and its extracted tree before moving on.
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libexpat/cfbuild-libexpat.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define expat_version 2.10.0
%define expat_version 2.11.0

Summary: CFEngine Build Automation -- libexpat
Name: cfbuild-libexpat
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libexpat/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c624ba2998fc65df1163a49641ff3f9ab73138b11641d92c86bee0fb01b1bc7f expat-2.10.0.tar.xz
61e7614b602201c28a189dafee78f5bceaee192bbde46a930752ff09cf5542fa expat-2.11.0.tar.xz
2 changes: 1 addition & 1 deletion deps-packaging/libexpat/source
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/libexpat/libexpat/releases/download/R_2_10_0/
https://github.com/libexpat/libexpat/releases/download/R_2_11_0/
87 changes: 63 additions & 24 deletions deps-packaging/php/0002-Honor-SOURCE_DATE_EPOCH-in-phar.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Lars Erik Wik <lars.erik.wik@northern.tech>
Date: Tue, 24 Nov 2026 11:12:08 +0100
Subject: [PATCH] Honor SOURCE_DATE_EPOCH in phar timestamps

Phar embeds wall-clock time(NULL) into every manifest entry, making
Expand All @@ -9,15 +11,17 @@ Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
---
ext/phar/phar.c | 2 +-
ext/phar/phar_internal.h | 14 ++++++++++++++
ext/phar/phar_object.c | 6 +++---
ext/phar/stream.c | 2 +-
ext/phar/tar.c | 2 +-
ext/phar/util.c | 2 +-
ext/phar/zip.c | 2 +-
5 files changed, 19 insertions(+), 3 deletions(-)
6 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/ext/phar/phar.c b/ext/phar/phar.c
index bee5fe79..3895d292 100644
--- a/ext/phar/phar.c
+++ b/ext/phar/phar.c
@@ -2950,7 +2950,7 @@
@@ -2906,7 +2906,7 @@ ZEND_ATTRIBUTE_NONNULL_ARGS(1, 4) int phar_flush_ex(phar_archive_data *phar, zen
4: metadata-len
+: metadata
*/
Expand All @@ -27,19 +31,20 @@ diff --git a/ext/phar/phar.c b/ext/phar/phar.c
phar_set_32(entry_buffer+4, mytime);
phar_set_32(entry_buffer+8, entry->compressed_filesize);
diff --git a/ext/phar/phar_internal.h b/ext/phar/phar_internal.h
index 7047d10a..c0dfd21f 100644
--- a/ext/phar/phar_internal.h
+++ b/ext/phar/phar_internal.h
@@ -22,12 +22,26 @@
@@ -20,12 +20,26 @@
#endif

#include <time.h>
+#include <stdlib.h>
#include "php.h"
#include "tar.h"
#include "pharzip.h"
#include "zend_hash.h"
#include "ext/spl/spl_directory.h"

+/* Reproducible-builds: honor SOURCE_DATE_EPOCH when set, else wall-clock time. */
+static inline time_t phar_source_date_epoch(void) {
+ const char *epoch = getenv("SOURCE_DATE_EPOCH");
Expand All @@ -56,36 +61,70 @@ diff --git a/ext/phar/phar_internal.h b/ext/phar/phar_internal.h
/* PHP_ because this is public information via MINFO */
#define PHP_PHAR_API_VERSION "1.1.1"
/* x.y.z maps to 0xyz0 */
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index 9d3bd842..f23ac5bd 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -1367,7 +1367,7 @@ static phar_entry_data *phar_build_entry_data(zend_string *fname, char *path, si

timestamp = Z_LVAL(rv);
} else {
- timestamp = time(NULL);
+ timestamp = phar_source_date_epoch();
}

return phar_get_or_create_entry_data(fname, path, path_len, "w+b", 0, error, true, timestamp);
@@ -3640,7 +3640,7 @@ static void phar_add_file(phar_archive_data **pphar, zend_string *file_name, con
}
#endif

- phar_entry_data *data = phar_get_or_create_entry_data((*pphar)->fname, filename, filename_len, "w+b", 0, &error, true, time(NULL));
+ phar_entry_data *data = phar_get_or_create_entry_data((*pphar)->fname, filename, filename_len, "w+b", 0, &error, true, phar_source_date_epoch());
if (!data) {
if (error) {
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Entry %s does not exist and cannot be created: %s", filename, error);
@@ -3714,7 +3714,7 @@ static void phar_mkdir(phar_archive_data **pphar, zend_string *dir_name)
(*pphar)->fname,
ZSTR_VAL(dir_name), ZSTR_LEN(dir_name),
"w+b", 2, &error, true,
- time(NULL)
+ phar_source_date_epoch()
);
if (!data) {
if (error) {
diff --git a/ext/phar/stream.c b/ext/phar/stream.c
index 86ec22e7..f92fb7d0 100644
--- a/ext/phar/stream.c
+++ b/ext/phar/stream.c
@@ -197,7 +197,7 @@ static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const cha
/* strip leading "/" */
internal_file = estrndup(ZSTR_VAL(resource->path) + 1, ZSTR_LEN(resource->path) - 1);
if (mode[0] == 'w' || (mode[0] == 'r' && mode[1] == '+')) {
- if (NULL == (idata = phar_get_or_create_entry_data(resource->host, internal_file, strlen(internal_file), mode, 0, &error, true, time(NULL)))) {
+ if (NULL == (idata = phar_get_or_create_entry_data(resource->host, internal_file, strlen(internal_file), mode, 0, &error, true, phar_source_date_epoch()))) {
if (error) {
php_stream_wrapper_log_warn(wrapper, context, options, CreateFailed, "%s", error);
efree(error);
diff --git a/ext/phar/tar.c b/ext/phar/tar.c
index ae1a6e46..3b4bd121 100644
--- a/ext/phar/tar.c
+++ b/ext/phar/tar.c
@@ -977,7 +977,7 @@
char *buf, *signature, sigbuf[8];

@@ -1053,7 +1053,7 @@ ZEND_ATTRIBUTE_NONNULL_ARGS(1, 4) int phar_tar_flush(phar_archive_data *phar, ze
char *buf, sigbuf[8];
entry.flags = PHAR_ENT_PERM_DEF_FILE;
- entry.timestamp = time(NULL);
+ entry.timestamp = phar_source_date_epoch();
entry.is_modified = 1;
entry.is_crc_checked = 1;
entry.is_tar = 1;
diff --git a/ext/phar/util.c b/ext/phar/util.c
--- a/ext/phar/util.c
+++ b/ext/phar/util.c
@@ -700,7 +700,7 @@

phar_add_virtual_dirs(phar, path, path_len);
etemp.is_modified = 1;
- etemp.timestamp = time(0);
+ etemp.timestamp = phar_source_date_epoch();
etemp.is_crc_checked = 1;
etemp.phar = phar;
etemp.filename = zend_string_init(path, path_len, false);
diff --git a/ext/phar/zip.c b/ext/phar/zip.c
index 13c34d8a..23243a31 100644
--- a/ext/phar/zip.c
+++ b/ext/phar/zip.c
@@ -1253,7 +1253,7 @@

pass.error = &temperr;
@@ -1268,7 +1268,7 @@ ZEND_ATTRIBUTE_NONNULL_ARGS(1, 4) int phar_zip_flush(phar_archive_data *phar, ze
uint32_t cdir_size, cdir_offset;

entry.flags = PHAR_ENT_PERM_DEF_FILE;
- entry.timestamp = time(NULL);
+ entry.timestamp = phar_source_date_epoch();
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/php/cfbuild-php.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define php_version 8.5.12
%define php_version 8.6.0

Summary: CFEngine Build Automation -- php
Name: cfbuild-php
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/php/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81a0f450349e84b08eb43faa85f8a4c835684f3cc1c50471775d1317a046c525 php-8.5.12.tar.gz
62337dccde3d9fcc39797d4529f42637613036eaf3875353c206874e5813a3c1 php-8.6.0.tar.gz
2 changes: 1 addition & 1 deletion deps-packaging/postgresql/cfbuild-postgresql.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define postgresql_version 18.7
%define postgresql_version 19.0

Summary: CFEngine Build Automation -- postgresql
Name: cfbuild-postgresql
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/postgresql/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
441dfae4280cae3e0425e5f876f80559fb0731c140f1aae22b3e5a54d0411bfd postgresql-18.7.tar.bz2
a89fd70efbad6a08c7dbed8d4872e3af30170d9e5ca9dc7906523be95b4e692d postgresql-19.0.tar.bz2
12 changes: 6 additions & 6 deletions deps-packaging/postgresql/pg_hba.conf.sample.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- pg_hba.conf.sample 2019-11-11 16:03:10.000000000 -0600
+++ pg_hba.conf.socket-only 2020-01-21 13:22:44.119994084 -0600
@@ -79,11 +79,11 @@
@remove-line-for-nolocal@# "local" is for Unix domain socket connections only
@remove-line-for-nolocal@local all all @authmethodlocal@
--- pg_hba.conf.sample
+++ pg_hba.conf.socket-only
@@ -112,11 +112,11 @@
# "local" is for Unix domain socket connections only
local all all @authmethodlocal@
# IPv4 local connections:
-host all all 127.0.0.1/32 @authmethodhost@
+#host all all 127.0.0.1/32 @authmethodhost@
Expand All @@ -11,7 +11,7 @@
+#host all all ::1/128 @authmethodhost@
# Allow replication connections from localhost, by a user with the
# replication privilege.
@remove-line-for-nolocal@local replication all @authmethodlocal@
local replication all @authmethodlocal@
-host replication all 127.0.0.1/32 @authmethodhost@
-host replication all ::1/128 @authmethodhost@
+#host replication all 127.0.0.1/32 @authmethodhost@
Expand Down
Loading
Loading