tyage / slack-patron

Log and view all Slack messages.
MIT License
169 stars 41 forks source link

fix unsatisfiable constraints error while building #93

Closed j3iiifn closed 1 year ago

j3iiifn commented 5 years ago

The logger build failed with the following error:

$ docker-compose build logger
Building logger
Step 1/9 : FROM ruby:2.4-alpine
 ---> 621114028aef
Step 2/9 : MAINTAINER tyage <namatyage@gmail.com>
 ---> Using cache
 ---> dc48db64d61d
Step 3/9 : ARG REPOSITORY="https://github.com/tyage/slack-patron.git"
 ---> Using cache
 ---> 0f58141069a2
Step 4/9 : ARG BRANCH="master"
 ---> Using cache
 ---> 8074e3d7b18b
Step 5/9 : ARG SRCDIR="/usr/local/slack-patron"
 ---> Using cache
 ---> 3cc7e6c4f42b
Step 6/9 : RUN set -x &&    apk upgrade --update &&     apk add --update        git         build-base      openssl         openssl-dev &&  echo 'gem: --no-document' >> /etc/gemrc &&  git clone ${REPOSITORY} ${SRCDIR} &&    cd ${SRCDIR} &&     git checkout ${BRANCH} &&   bundle install
 ---> Running in 71401a4e503f
+ apk upgrade --update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.9.1-r2 -> 2.10.1-r0)
Executing busybox-1.27.2-r11.trigger
Continuing the upgrade transaction with new apk-tools:
(1/7) Upgrading musl (1.1.18-r3 -> 1.1.18-r4)
(2/7) Upgrading ncurses-terminfo-base (6.0_p20171125-r0 -> 6.0_p20171125-r1)
(3/7) Upgrading ncurses-terminfo (6.0_p20171125-r0 -> 6.0_p20171125-r1)
(4/7) Upgrading ncurses-libs (6.0_p20171125-r0 -> 6.0_p20171125-r1)
(5/7) Upgrading bzip2 (1.0.6-r6 -> 1.0.6-r7)
(6/7) Upgrading ca-certificates (20171114-r0 -> 20190108-r0)
(7/7) Upgrading musl-utils (1.1.18-r3 -> 1.1.18-r4)
Executing busybox-1.27.2-r11.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 30 MiB in 31 packages
+ apk add --update git build-base openssl openssl-dev
ERROR: unsatisfiable constraints:
  libressl-dev-2.6.5-r0:
    conflicts:
               openssl-dev-1.0.2t-r0[pc:libcrypto=2.6.5]
               openssl-dev-1.0.2t-r0[pc:libssl=2.6.5]
               openssl-dev-1.0.2t-r0[pc:openssl=2.6.5]
    satisfies: .ruby-rundeps-0[libressl-dev]
  openssl-dev-1.0.2t-r0:
    conflicts:
               libressl-dev-2.6.5-r0[pc:libcrypto=1.0.2t]
               libressl-dev-2.6.5-r0[pc:libssl=1.0.2t]
               libressl-dev-2.6.5-r0[pc:openssl=1.0.2t]
    satisfies: world[openssl-dev]
ERROR: Service 'logger' failed to build: The command '/bin/sh -c set -x &&  apk upgrade --update &&     apk add --update        git         build-base      openssl         openssl-dev &&  echo 'gem: --no-document' >> /etc/gemrc &&  git clone ${REPOSITORY} ${SRCDIR} &&    cd ${SRCDIR} &&     git checkout ${BRANCH} &&   bundle install' returned a non-zero code: 3

To resolve it, use LibreSSL instead of OpenSSL.

tyage commented 4 years ago

When I tried to build, I can install openssl and openssl-dev. Is the issue still happens?

$ docker-compose build --no-cache logger
Building logger
Step 1/9 : FROM ruby:2.4-alpine
 ---> 5b429445fa8c
Step 2/9 : MAINTAINER tyage <namatyage@gmail.com>
 ---> Running in 6b6afe0d6dde
Removing intermediate container 6b6afe0d6dde
 ---> dd7028ee629a
Step 3/9 : ARG REPOSITORY="https://github.com/tyage/slack-patron.git"
 ---> Running in 306b38ca78ed
Removing intermediate container 306b38ca78ed
 ---> 0e8c394635fe
Step 4/9 : ARG BRANCH="master"
 ---> Running in aa655253540e
Removing intermediate container aa655253540e
 ---> 8869932c0dff
Step 5/9 : ARG SRCDIR="/usr/local/slack-patron"
 ---> Running in 3d4bb3109988
Removing intermediate container 3d4bb3109988
 ---> de938d7c2f56
Step 6/9 : RUN set -x &&    apk upgrade --update &&     apk add --update        git         build-base      openssl         openssl-dev &&  echo 'gem: --no-document' >> /etc/gemrc &&  git clone ${REPOSITORY} ${SRCDIR} &&    cd ${SRCDIR} &&     git checkout ${BRANCH} &&   bundle install
 ---> Running in 3bc036263b60
+ apk upgrade --update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/4) Upgrading libcrypto1.1 (1.1.1d-r0 -> 1.1.1d-r2)
(2/4) Upgrading libssl1.1 (1.1.1d-r0 -> 1.1.1d-r2)
(3/4) Upgrading busybox (1.30.1-r2 -> 1.30.1-r3)
Executing busybox-1.30.1-r3.post-upgrade
(4/4) Upgrading ssl_client (1.30.1-r2 -> 1.30.1-r3)
Executing busybox-1.30.1-r3.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 26 MiB in 37 packages
+ apk add --update git build-base openssl openssl-dev
(1/22) Installing binutils (2.32-r0)
(2/22) Installing libmagic (5.37-r1)
(3/22) Installing file (5.37-r1)
(4/22) Installing isl (0.18-r0)
(5/22) Installing libgomp (8.3.0-r0)
(6/22) Installing libatomic (8.3.0-r0)
(7/22) Installing mpfr3 (3.1.5-r1)
(8/22) Installing mpc1 (1.1.0-r0)
(9/22) Installing gcc (8.3.0-r0)
(10/22) Installing musl-dev (1.1.22-r3)
(11/22) Installing libc-dev (0.7.1-r0)
(12/22) Installing g++ (8.3.0-r0)
(13/22) Installing make (4.2.1-r2)
(14/22) Installing fortify-headers (1.1-r0)
(15/22) Installing build-base (0.5-r1)
(16/22) Installing nghttp2-libs (1.39.2-r0)
(17/22) Installing libcurl (7.66.0-r0)
(18/22) Installing expat (2.2.8-r0)
(19/22) Installing pcre2 (10.33-r0)
(20/22) Installing git (2.22.2-r0)
(21/22) Installing openssl (1.1.1d-r2)
(22/22) Installing openssl-dev (1.1.1d-r2)
Executing busybox-1.30.1-r3.trigger
OK: 217 MiB in 59 packages
+ echo 'gem: --no-document'
+ git clone https://github.com/tyage/slack-patron.git /usr/local/slack-patron
Cloning into '/usr/local/slack-patron'...
+ cd /usr/local/slack-patron
+ git checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.
+ bundle install
tyage commented 1 year ago

I will close this issue because it has been open for years with no activity.