adoptium / containers

Repo containing the dockerfiles and scripts to produce the official eclipse-temurin containers.
https://hub.docker.com/_/eclipse-temurin/
Apache License 2.0
204 stars 87 forks source link

Ask RPM for its own arch instead of objdump hacks #567

Closed gdams closed 1 month ago

gdams commented 1 month ago

Applies the same fix described here: https://github.com/docker-library/openjdk/pull/537

tianon commented 1 month ago

Noting that it removes amd64 i386 recognition, which was strange to have as a couple anyway?

That coupling is the raw output from objdump which represents amd64:

$ docker run --rm openjdk:23-oracle objdump --file-headers /usr/bin/objdump | grep architecture
architecture: i386:x86-64, flags 0x00000150:

(so it's not "lost" so much as replaced by the "x86_64" value returned from rpm instead)