eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.61k stars 2.33k forks source link

`eclipse-mosquitto:2` Docker Official image based on libressl fails to build on s390x #3055

Open yosifkit opened 1 month ago

yosifkit commented 1 month ago

Since Alpine Linux has stopped building the libressl package for s390x, the eclipse-mosquitto:2 image has failed to build on that architecture. Since I don't know if they'll add it back, I'd suggest dropping s390x for those images. Perhaps even moving to make the openssl based images the default in future releases?

I'm happy to make a PR to adjust the library/eclipse-mosquitto file in Official Images but wanted to make you aware of the issue before doing so.

Logs from the build server:

libressl-dev (no such package):


docker ["build" "--tag" "bashbrew/cache:578c5dd0c9677c63785db444e0f20175acbbe647be11a455a86c668bf92113a1" "--tag" "eclipse-mosquitto:2.0.18" "--tag" "eclipse-mosquitto:2.0" "--tag" "eclipse-mosquitto:2" "--tag" "eclipse-mosquitto:latest" "--file" "Dockerfile" "--rm" "--force-rm" "-"] output:
...
Step 4/9 : RUN set -x && apk --no-cache add --virtual build-deps ...
+ apk --no-cache add --virtual build-deps build-base cmake cjson-dev gnupg libressl-dev linux-headers util-linux-dev
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/s390x/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/s390x/APKINDEX.tar.gz
ERROR: unable to select packages:
build-deps-20240522.185134:
masked in: cache
satisfies: world[build-deps=20240522.185134]
libressl-dev (no such package):
required by: build-deps-20240522.185134[libressl-dev]
+ echo 'Fetching GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 from hkps://keys.openpgp.org'
+ gpg --keyserver hkps://keys.openpgp.org --keyserver-options 'timeout=10' --recv-keys A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7
Fetching GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 from hkps://keys.openpgp.org
/bin/sh: gpg: not found
+ echo 'Fetching GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 from hkp://keyserver.ubuntu.com:80'
+ gpg --keyserver hkp://keyserver.ubuntu.com:80 --keyserver-options 'timeout=10' --recv-keys A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7
/bin/sh: gpg: not found
+ echo 'Fetching GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 from pgp.mit.edu'
+ gpg --keyserver pgp.mit.edu --keyserver-options 'timeout=10' --recv-keys A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7
Fetching GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 from hkp://keyserver.ubuntu.com:80
Fetching GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7 from pgp.mit.edu
/bin/sh: gpg: not found
+ test -z 
+ echo 'error: failed to fetch GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7'
error: failed to fetch GPG key A0D6EEA1DCAE49A635A3B2F0779B22DFB3E717B7
+ exit 1