GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Install patchelf in the Debian, Arch and openSUSE dev images · fredericgermain/netty-tcnative@b734f12

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docker
    • Dockerfile.arch
    • Dockerfile.debian
    • Dockerfile.opensuse
  • docs
    • musl-compatibility.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docker/Dockerfile.arch‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.arch
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN pacman -Sy --noconfirm --needed \
2323
lsb-release \
2424
make \
2525
ninja \
26+
patchelf \
2627
perl \
2728
tar \
2829
unzip \
Collapse file

‎docker/Dockerfile.debian‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.debian
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ENV CMAKE_VERSION=$CMAKE_VERSION_BASE.4
1212
ENV NINJA_VERSION 1.7.2
1313
ENV GO_VERSION 1.9.3
1414
ENV GCC_VERSION 4.9.4
15+
ENV PATCHELF_VERSION 0.18.0
1516

1617
ARG java_version="8.0.302-zulu"
1718
ENV JAVA_VERSION $java_version
@@ -69,6 +70,17 @@ RUN set -x && \
6970
make -j1 install_sw) && \
7071
rm -rf openssl-$OPENSSL_VERSION openssl-$OPENSSL_VERSION.tar.gz
7172

73+
# patchelf is used post-link by the boringssl-static profile to drop the DT_NEEDED on
74+
# ld-linux-x86-64.so.2 so the artifact also loads under musl. Wheezy has no patchelf package
75+
# (it entered Debian in jessie), so install the upstream prebuilt static binary instead, as
76+
# Dockerfile.centos6 does. --no-check-certificate for the same reason as the OpenSSL download.
77+
RUN wget -q --no-check-certificate https://github.com/NixOS/patchelf/releases/download/$PATCHELF_VERSION/patchelf-$PATCHELF_VERSION-x86_64.tar.gz \
78+
&& mkdir -p /opt/patchelf-$PATCHELF_VERSION \
79+
&& tar zxf patchelf-$PATCHELF_VERSION-x86_64.tar.gz -C /opt/patchelf-$PATCHELF_VERSION \
80+
&& ln -s /opt/patchelf-$PATCHELF_VERSION/bin/patchelf /usr/local/bin/patchelf \
81+
&& rm -f patchelf-$PATCHELF_VERSION-x86_64.tar.gz \
82+
&& patchelf --version
83+
7284
RUN rm -rf $SOURCE_DIR
7385

7486
# Downloading and installing SDKMAN!
Collapse file

‎docker/Dockerfile.opensuse‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.opensuse
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN zypper install --force-resolution --no-recommends --no-confirm \
2828
make \
2929
ninja \
3030
patch \
31+
patchelf \
3132
perl \
3233
tar \
3334
unzip \
Collapse file

‎docs/musl-compatibility.md‎

Copy file name to clipboardExpand all lines: docs/musl-compatibility.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ protocol/cipher against a released version. It must be identical.
241241
| `boringssl-static/pom.xml`, antrun `native-jar` target | post-link `patchelf --remove-needed ld-linux-*` (Class A). Present in the FIPS profile and both release profiles: `fips-boringssl-static`, `boringssl-static-default` (x86_64), and `linux-aarch64`. |
242242
| `docker/Dockerfile.centos6` | installs `patchelf` from the upstream prebuilt **static** binary — CentOS 6 is EOL with no EPEL, and `objcopy` cannot remove a `DT_NEEDED`. Needs `--no-check-certificate`, same as the OpenSSL download: the CA bundle cannot verify modern GitHub TLS. |
243243
| `docker/Dockerfile.cross_compile_aarch64` | installs `patchelf` from EPEL 7 (available there, unlike CentOS 6) |
244+
| `docker/Dockerfile.debian`, `docker/Dockerfile.arch`, `docker/Dockerfile.opensuse` | also install `patchelf`. Their `build` compose service runs a module-unfiltered `./mvnw clean package`, which builds `boringssl-static` and so hits the `patchelf` exec (`failonerror="true"`). CI only runs Debian's `build-dynamic-only`, so a missing binary here is invisible to CI. Arch and openSUSE take the distro package; Debian 7 needs the prebuilt static binary like CentOS 6, wheezy has no `patchelf` package at all. |
244245

245246
Note the FIPS profile and two release profiles duplicate the whole native build, so **a change to
246247
one does not apply to the others**. `linux-aarch64` cross-compiles from an x86_64 host; patchelf

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.