Skip to content
Merged
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
6 changes: 3 additions & 3 deletions 7z/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
ARG FILC_VERSION=0.687
ARG FILC_X86_64_SHA256=aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1
ARG FILC_AARCH64_SHA256=f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0
ARG SEVENZIP_VERSION=26.05
ARG SEVENZIP_ARCHIVE_VERSION=2605
ARG SEVENZIP_SHA256=0b6080b8c3e7a579161d2d495224c0e51c467576cb4c7048b0ab485ef44cc22e
ARG SEVENZIP_VERSION=26.06
ARG SEVENZIP_ARCHIVE_VERSION=2606
ARG SEVENZIP_SHA256=a4e374c8f864f51df48c2cfd0e1413ec3b2ea030deae852d6a655402ebb61ac4

FROM ubuntu:24.04 AS build

Expand Down
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ delicate, and every one of them runs against the Fil-C binary.
| git | 1059 files | all pass, 6 cases skipped |
| OpenSSH | `make tests`: 97 functional cases, unit/file/compatibility tests | 87 functional pass, 10 skip; PTY, password, and hostbased pass separately |

zlib's upstream static and large-file tests also gate each dependency build
for curl, Wget, git, and OpenSSH.

Nothing needed to be excluded or marked expected-to-fail: Fil-C causes no
failures in any of them. Skipped cases are features these builds do not enable,
such as HTTP/2 and IDN for curl, or tests needing root for tar. Wget's two
Expand All @@ -407,11 +410,14 @@ three files run, and they are the ones that test the encoding machinery.
OpenSSH's ten are named individually, and the build asserts all 97 functional
tests still exist and the exact 87/10 main-suite split. Its PTY test is rerun
with a workaround scoped to an upstream shell-pattern portability bug.
Password authentication is rerun with a throwaway yescrypt password and
succeeds; hostbased authentication is rerun after installation and drives the
shipped `ssh-keysign`. An unprivileged artifact-only client then fails with the
setuid bit removed and succeeds after mode `4711` is restored, proving the
helper's root transition rather than only its executable path. Those overrides
Password authentication is rerun with throwaway yescrypt and SHA-512 hashes.
Both accept the correct password, reject a nonempty wrong password, and accept
a wrong-then-correct retry only after exactly two prompts. Server logs confirm
the wrong-password rejection and retry outcome. Hostbased authentication is
rerun after installation and drives the shipped `ssh-keysign`. An unprivileged
artifact-only client then fails with the setuid bit removed and succeeds after
mode `4711` is restored, proving the helper's root transition rather than only
its executable path. Those overrides
are isolated so they cannot alter the other 87 cases. A live preauthentication
connection also verifies that every
execution-capable Fil-C task has no-new-privileges and the seccomp filter.
Expand Down Expand Up @@ -693,7 +699,7 @@ than content-addressed image digests.
| --- | --- | --- |
| Fil-C (x86_64) | 0.687 | `aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1` |
| Fil-C (aarch64) | 0.687 | `f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0` |
| 7-Zip source | 26.05 | `0b6080b8c3e7a579161d2d495224c0e51c467576cb4c7048b0ab485ef44cc22e` |
| 7-Zip source | 26.06 | `a4e374c8f864f51df48c2cfd0e1413ec3b2ea030deae852d6a655402ebb61ac4` |
| unRAR source | 7.3.2 | `f61a1160d6e2ebbda2ad353c8e82f62ab4312f97fde23c6c2c982d25e0014f99` |
| GNU tar source | 1.35 | `4d62ff37342ec7aed748535323930c7cf94acf71c3591882b26a7ea50f3edc16` |
| GNU gzip source | 1.15 | `9aa0cc780dec156b8282844833b342ab7cb08c25d2cd9a1869cdd0df31deff48` |
Expand All @@ -704,7 +710,7 @@ than content-addressed image digests.
| GNU Wget source | 1.25.0 | `766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784` |
| OpenSSL source (curl, git, OpenSSH) | 4.1.0 | `50c17baf54cb008f6ce42d50deb4b28050a1aad711636cabd4b241c7e90cc2fd` |
| OpenSSL source (wget) | 3.6.5 | `a2157c2830efdec3788939b00c9b0638306d3f0bbb76dc4832ee503bb397df98` |
| zlib source | 1.3.2 | `bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16` |
| zlib source | 1.4 | `02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584` |
| libunistring source | 1.5 | `fe89007a8a414ae4790b816b86859e877d3ab135db3c37f06541ff7e85ac344b` |
| libidn2 source | 2.3.8 | `f557911bf6171621e1f72ff35f5b1825bb35b52ed45325dcdee931e5d3c0787a` |
| libpsl source | 0.23.3 | `93941f85a1e7bd593fa94f299233cb5dfc91cd144fd9a78a6ceb75001c5b03be` |
Expand All @@ -717,9 +723,9 @@ than content-addressed image digests.
| tmux tests (git tag) | 3.8 | `f873f9379c9cf30d3d66b642a955118c4fbb0019d046d13e6012340811e5dcb7` |
| libevent source | 2.1.13 | `f7e9383b8c0baa81b687e5b5eecc01beefaf1b19b64151d95ed61647fe7a315c` |
| utf8proc source | 2.12.0 | `a393fbef160835fb315bc3e91ba8d86f7a73a7cec9e6198b6c60b848b498bfeb` |
| Git source | 2.56.0 | `26c56c296b38c0695b26fa95f475f1d01704d2d38e73465ca30b0b2f5dc789d3` |
| Git source | 2.56.1 | `f0b0bf89264b9bd2e1c640363e7529643989da76281600473c50745cd34a607f` |
| Expat source | 2.10.0 | `5466a341f9c692ef7a958a6881311be597f8e1ce345984cf78414f54793dea4c` |
| OpenSSH portable source | 10.6p1 | `a9dc9565dffe8640f64d863cd29a32bc4a3dbdec0566a7fc44c5d6ee767d5f39` |
| OpenSSH portable source | 10.6p2 | `9ae44872090cf2f06b3cf9ff147e7f16f309671340763ed2f99248398ae29d5b` |

The Dockerfile frontend, Ubuntu base image, and Ubuntu packages installed in
the builder are not pinned to immutable digests or a snapshot repository. They
Expand Down Expand Up @@ -768,8 +774,9 @@ RAR compression algorithm. Review `out/licenses/` before redistribution.
- OpenSSH is built without PKCS#11 token providers or FIDO/security-key
providers because those paths load host shared objects that a static Fil-C
process cannot use. PAM, Kerberos, and BSD authentication are also absent.
Password authentication, including yescrypt hashes, works through the system
account database. The default configuration still spells
Password authentication, including yescrypt and SHA-512 hashes, reads the
system account database and uses Fil-C's bundled libc to verify hashes, not
the host's PAM or libcrypt. The default configuration still spells
`KbdInteractiveAuthentication yes`, but no keyboard-interactive backend is
compiled in, so that method is inert. OpenSSH shares curl's no-assembly
OpenSSL and the throughput and side-channel caveats above. Fil-C cannot
Expand Down
6 changes: 4 additions & 2 deletions curl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ARG FILC_VERSION=0.687
ARG FILC_X86_64_SHA256=aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1
ARG FILC_AARCH64_SHA256=f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0
ARG ZLIB_VERSION=1.3.2
ARG ZLIB_SHA256=bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16
ARG ZLIB_VERSION=1.4
ARG ZLIB_SHA256=02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584
ARG OPENSSL_VERSION=4.1.0
ARG OPENSSL_SHA256=50c17baf54cb008f6ce42d50deb4b28050a1aad711636cabd4b241c7e90cc2fd
ARG CURL_VERSION=8.23.0
Expand Down Expand Up @@ -82,8 +82,10 @@ RUN curl -fsSL ${FETCH_RETRY} -o /tmp/zlib.tar.gz \

RUN CC=/opt/filc/build/bin/clang \
CFLAGS="-O2 -g" \
LDFLAGS="-static" \
./configure --static --prefix=/deps \
&& make -j"$(nproc)" \
&& make check \
&& make install

WORKDIR /openssl
Expand Down
11 changes: 6 additions & 5 deletions git/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ARG FILC_VERSION=0.687
ARG FILC_X86_64_SHA256=aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1
ARG FILC_AARCH64_SHA256=f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0
ARG ZLIB_VERSION=1.3.2
ARG ZLIB_SHA256=bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16
ARG ZLIB_VERSION=1.4
ARG ZLIB_SHA256=02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584
ARG OPENSSL_VERSION=4.1.0
ARG OPENSSL_SHA256=50c17baf54cb008f6ce42d50deb4b28050a1aad711636cabd4b241c7e90cc2fd
ARG CURL_VERSION=8.23.0
Expand All @@ -15,8 +15,8 @@ ARG EXPAT_VERSION=2.10.0
ARG EXPAT_TAG=R_2_10_0
ARG EXPAT_SHA256=5466a341f9c692ef7a958a6881311be597f8e1ce345984cf78414f54793dea4c
ARG GIT_TEST_JOBS=
ARG GIT_VERSION=2.56.0
ARG GIT_SHA256=26c56c296b38c0695b26fa95f475f1d01704d2d38e73465ca30b0b2f5dc789d3
ARG GIT_VERSION=2.56.1
ARG GIT_SHA256=f0b0bf89264b9bd2e1c640363e7529643989da76281600473c50745cd34a607f

FROM ubuntu:24.04 AS build

Expand Down Expand Up @@ -99,8 +99,9 @@ RUN curl -fsSL ${FETCH_RETRY} -o /tmp/zlib.tar.gz \
&& echo "${ZLIB_SHA256} /tmp/zlib.tar.gz" | sha256sum -c - \
&& tar --strip-components=1 -xzf /tmp/zlib.tar.gz \
&& rm /tmp/zlib.tar.gz
RUN CFLAGS="-O2 -g" ./configure --static --prefix=/deps \
RUN CFLAGS="-O2 -g" LDFLAGS="-static" ./configure --static --prefix=/deps \
&& make -j"$(nproc)" \
&& make check \
&& make install

WORKDIR /pcre2
Expand Down
86 changes: 57 additions & 29 deletions openssh-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
ARG FILC_VERSION=0.687
ARG FILC_X86_64_SHA256=aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1
ARG FILC_AARCH64_SHA256=f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0
ARG ZLIB_VERSION=1.3.2
ARG ZLIB_SHA256=bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16
ARG ZLIB_VERSION=1.4
ARG ZLIB_SHA256=02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584
ARG OPENSSL_VERSION=4.1.0
ARG OPENSSL_SHA256=50c17baf54cb008f6ce42d50deb4b28050a1aad711636cabd4b241c7e90cc2fd
ARG OPENSSH_VERSION=10.6p1
ARG OPENSSH_SHA256=a9dc9565dffe8640f64d863cd29a32bc4a3dbdec0566a7fc44c5d6ee767d5f39
ARG OPENSSH_VERSION=10.6p2
ARG OPENSSH_SHA256=9ae44872090cf2f06b3cf9ff147e7f16f309671340763ed2f99248398ae29d5b

FROM ubuntu:24.04 AS build

Expand Down Expand Up @@ -112,8 +112,9 @@ RUN curl -fsSL ${FETCH_RETRY} -o /tmp/zlib.tar.gz \
&& echo "${ZLIB_SHA256} /tmp/zlib.tar.gz" | sha256sum -c - \
&& tar --strip-components=1 -xzf /tmp/zlib.tar.gz \
&& rm /tmp/zlib.tar.gz
RUN CFLAGS="-O2 -g" ./configure --static --prefix=/deps \
RUN CFLAGS="-O2 -g" LDFLAGS="-static" ./configure --static --prefix=/deps \
&& make -j"$(nproc)" \
&& make check \
&& make install

# no-asm is required: Fil-C cannot compile OpenSSL's hand-written assembly, so
Expand Down Expand Up @@ -148,7 +149,7 @@ RUN curl -fsSL ${FETCH_RETRY} -o /tmp/openssh.tar.gz \
&& tar --strip-components=1 -xzf /tmp/openssh.tar.gz \
&& rm /tmp/openssh.tar.gz

# Two patches adapt pristine OpenSSH 10.6p1 to Fil-C and are gated on
# Two patches adapt pristine OpenSSH 10.6p2 to Fil-C and are gated on
# __FILC__ so an unpatched build keeps upstream behaviour. The first carries
# over the Fil-C 0.686 OpenSSH port's seccomp changes and teaches the sandbox
# about the runtime's threads: it locks them before the filter is installed,
Expand Down Expand Up @@ -278,16 +279,16 @@ RUN set -e; \
file "${binary}" > "/tmp/${binary}.file"; \
grep -Fq "static-pie linked" "/tmp/${binary}.file"; \
readelf -lW "${binary}" > "/tmp/${binary}.segments"; \
! grep -Fq " INTERP " "/tmp/${binary}.segments"; \
! grep -Fq " INTERP " "/tmp/${binary}.segments" || exit 1; \
readelf -SW "${binary}" > "/tmp/${binary}.sections"; \
grep -Fq ".debug_info" "/tmp/${binary}.sections"; \
readelf -sW "${binary}" > "/tmp/${binary}.symbols"; \
grep -Fq "pizlonated" "/tmp/${binary}.symbols"; \
grep -Eq "filc_call_user_main|zgc_alloc" "/tmp/${binary}.symbols"; \
strings -a "${binary}" > "/tmp/${binary}.strings"; \
! grep -q "@llvm\." "/tmp/${binary}.strings"; \
! grep -Fq "Unhandled intrinsic" "/tmp/${binary}.strings"; \
! grep -Fq "cannot handle inline asm" "/tmp/${binary}.strings"; \
! grep -q "@llvm\." "/tmp/${binary}.strings" || exit 1; \
! grep -Fq "Unhandled intrinsic" "/tmp/${binary}.strings" || exit 1; \
! grep -Fq "cannot handle inline asm" "/tmp/${binary}.strings" || exit 1; \
done; \
check-filc-alignment "${binaries[@]}" \
&& ./ssh -V 2> /tmp/ssh.version \
Expand All @@ -314,7 +315,7 @@ RUN make compat-tests \
test -x "openbsd-compat/regress/${test_binary}"; \
done

# OpenSSH 10.6p1's ssh-tty.sh checks for a tab with a `*\t*` POSIX case
# Upstream's ssh-tty.sh checks for a tab with a `*\t*` POSIX case
# pattern. Ubuntu's /bin/sh parses that as a literal `t`, so root's normal
# HOME makes the test self-skip even though it contains no whitespace. Keep
# the workaround local to this test. Docker builds also leave SHELL unset, so
Expand All @@ -335,7 +336,7 @@ RUN set -euo pipefail; \
fi; \
test "$(grep -c '^run test ' /tmp/ssh-tty.log)" -eq 1; \
test "$(grep -c '^skip test ' /tmp/ssh-tty.log || true)" -eq 0; \
! grep -Eq '^(Skipped|SKIPPED):' /tmp/ssh-tty.log; \
! grep -Eq '^(Skipped|SKIPPED):' /tmp/ssh-tty.log || exit 1; \
for _ in $(seq 1 20); do \
test -e regress/ctl-sock || break; \
sleep 1; \
Expand Down Expand Up @@ -403,21 +404,48 @@ RUN set -euo pipefail; \

# Exercise upstream's password regression separately, so its test-only root
# login override and nonempty SUDO placeholder cannot change any other case.
# Ubuntu's chpasswd generates a yescrypt hash explicitly; the cleartext and the
# unlocked root password exist only in this discarded builder layer.
# Upstream's empty-password cases return before crypt(). Add a nonempty wrong
# password and a wrong-then-correct retry, checking the server's decision and
# prompt count so a bypass cannot masquerade as a successful retry.
# The cleartext and unlocked root password stay in this discarded builder layer.
RUN set -euo pipefail; \
test_password='filc-openssh-password-test'; \
printf 'root:%s\n' "${test_password}" | chpasswd --crypt-method YESCRYPT; \
grep -q '^root:\$y\$' /etc/shadow; \
printf '%s\n' "${test_password}" > regress/password; \
chmod 0600 regress/password; \
cleanup_password() { passwd --lock root >/dev/null; rm -f regress/password; }; \
trap cleanup_password EXIT; \
timeout -k 60 900 make t-exec LTESTS=password SUDO=env \
TEST_SSH_SSHD_CONFOPTS='PermitRootLogin yes' 2>&1 | tee /tmp/password.log; \
test "$(grep -c '^run test ' /tmp/password.log)" -eq 1; \
test "$(grep -c '^skip test ' /tmp/password.log || true)" -eq 0; \
! grep -Eq '^(Skipped|SKIPPED):' /tmp/password.log
printf '%s\n' \
'' \
'trace wrong nonempty password' \
'echo filc-openssh-wrong-password > "${OBJ}/replypass"' \
'echo 1 > "${OBJ}/replypass.N"' \
'${SSH} $opts -oNumberOfPasswordPrompts=1 -F "${OBJ}/ssh_proxy" somehost true' \
'rc=$?' \
'test "${rc}" -eq 255 || fail "wrong-password exit: ${rc}"' \
'grep -Fq "Failed password for ${USER} from " "${TEST_SSHD_LOGFILE}" || fail "missing password denial"' \
'test "$(cat "${OBJ}/replypass.N")" -eq 2 || fail "wrong-password prompt count"' \
'trace wrong then correct password' \
'(echo filc-openssh-wrong-password; cat "${OBJ}/password") > "${OBJ}/replypass"' \
'echo 1 > "${OBJ}/replypass.N"' \
'${SSH} $opts -oNumberOfPasswordPrompts=2 -F "${OBJ}/ssh_proxy" somehost true' \
'test "$?" -eq 0 || fail "password retry failed"' \
'test "$(cat "${OBJ}/replypass.N")" -eq 3 || fail "password retry did not use two prompts"' \
'grep -Fq "Failed password for ${USER} from " "${TEST_SSHD_LOGFILE}" || fail "missing retry denial"' \
'grep -Fq "Accepted password for ${USER} from " "${TEST_SSHD_LOGFILE}" || fail "missing retry acceptance"' \
>> regress/password.sh; \
for method in YESCRYPT SHA512; do \
printf 'root:%s\n' "${test_password}" | chpasswd --crypt-method "${method}"; \
case "${method}" in \
YESCRYPT) grep -q '^root:\$y\$' /etc/shadow ;; \
SHA512) grep -q '^root:\$6\$' /etc/shadow ;; \
esac; \
TEST_REGRESS_CACHE_DIR= timeout -k 60 900 make t-exec LTESTS=password SUDO=env \
TEST_SSH_SSHD_CONFOPTS='PermitRootLogin yes' 2>&1 | tee /tmp/password.log; \
test "$(grep -c '^run test ' /tmp/password.log)" -eq 1; \
test "$(grep -c '^skip test ' /tmp/password.log || true)" -eq 0; \
! grep -Eq '^(Skipped|SKIPPED):|ok cached' /tmp/password.log || exit 1; \
echo "password acceptance, rejection and retry passed: ${method}"; \
done

# The suite is past, so install for real: the smoke test below needs the
# helpers at the compiled-in /libexec paths, which only a real install gives.
Expand Down Expand Up @@ -495,18 +523,18 @@ RUN set -e; \
*) exit 1 ;; \
esac; \
readelf -lW "${f}" > /tmp/art.segments; \
! grep -Fq ' INTERP ' /tmp/art.segments; \
! grep -Fq ' INTERP ' /tmp/art.segments || exit 1; \
grep -Fq 'GNU_RELRO' /tmp/art.segments; \
! grep -Eq 'GNU_STACK.*RWE' /tmp/art.segments; \
! grep -Eq 'GNU_STACK.*RWE' /tmp/art.segments || exit 1; \
readelf -SW "${f}" > /tmp/art.sections; \
! grep -Fq ".debug_info" /tmp/art.sections; \
! grep -Fq ".debug_info" /tmp/art.sections || exit 1; \
readelf -sW "${f}" > /tmp/art.symbols; \
grep -Fq "pizlonated" /tmp/art.symbols; \
grep -Eq "filc_call_user_main|zgc_alloc" /tmp/art.symbols; \
strings -a "${f}" > /tmp/art.strings; \
! grep -q '@llvm\.' /tmp/art.strings; \
! grep -Fq 'Unhandled intrinsic' /tmp/art.strings; \
! grep -Fq 'cannot handle inline asm' /tmp/art.strings; \
! grep -q '@llvm\.' /tmp/art.strings || exit 1; \
! grep -Fq 'Unhandled intrinsic' /tmp/art.strings || exit 1; \
! grep -Fq 'cannot handle inline asm' /tmp/art.strings || exit 1; \
done; \
test "$(stat -c '%u:%g:%a' /artifact/libexec/ssh-keysign)" = '0:0:4711'; \
echo 'all 14 artifact binaries are stripped static Fil-C PIEs without compiler traps'
Expand All @@ -524,7 +552,7 @@ RUN set -euo pipefail; \
cp -a /artifact/libexec /libexec; \
/bin/sshd -t; \
! grep -Eq 'SC_ALLOW\(__NR_(clone|clone3|fork|vfork|setgroups|setgid|setregid|setresgid|setuid|setreuid|setresuid|tkill|tgkill)\)' \
sandbox-seccomp-filter.c; \
sandbox-seccomp-filter.c || exit 1; \
strings -a /libexec/ssh-pkcs11-helper > /tmp/pkcs11-helper.strings; \
grep -Fq 'PKCS#11 support disabled at compile time' /tmp/pkcs11-helper.strings; \
set +e; \
Expand All @@ -547,7 +575,7 @@ RUN set -euo pipefail; \
TEST_SSH_HOSTBASED_AUTH=setupandrun 2>&1 | tee /tmp/hostbased.log; \
test "$(grep -c '^run test ' /tmp/hostbased.log)" -eq 1; \
test "$(grep -c '^skip test ' /tmp/hostbased.log || true)" -eq 0; \
! grep -Eq '^(Skipped|SKIPPED):' /tmp/hostbased.log; \
! grep -Eq '^(Skipped|SKIPPED):' /tmp/hostbased.log || exit 1; \
cmp ssh_config.out /artifact/etc/ssh/ssh_config; \
test ! -e /artifact/etc/ssh/ssh_known_hosts

Expand Down
7 changes: 4 additions & 3 deletions wget/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
ARG FILC_VERSION=0.687
ARG FILC_X86_64_SHA256=aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1
ARG FILC_AARCH64_SHA256=f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0
ARG ZLIB_VERSION=1.3.2
ARG ZLIB_SHA256=bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16
ARG ZLIB_VERSION=1.4
ARG ZLIB_SHA256=02dd159783677a749c04adbdd02b55b8a2bcc7e054f51b76b549199a916ad584
# Held on OpenSSL 3.x while curl and git use 4.x. wget 1.25.0, the current
# release, does not support OpenSSL 4: it calls SSLv3_client_method, which 4.0
# removed, so it does not even compile. Guarding that call gets it to build, but
Expand Down Expand Up @@ -116,8 +116,9 @@ RUN curl -fsSL ${FETCH_RETRY} -o /tmp/zlib.tar.gz \
&& echo "${ZLIB_SHA256} /tmp/zlib.tar.gz" | sha256sum -c - \
&& tar --strip-components=1 -xzf /tmp/zlib.tar.gz \
&& rm /tmp/zlib.tar.gz
RUN CFLAGS="-O2 -g" ./configure --static --prefix=/deps \
RUN CFLAGS="-O2 -g" LDFLAGS="-static" ./configure --static --prefix=/deps \
&& make -j"$(nproc)" \
&& make check \
&& make install

WORKDIR /libunistring
Expand Down