diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5ea9b8d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM container-registry.oracle.com/os/oraclelinux:6 + +RUN yum -y install oracle-softwarecollection-release-el6 && \ + yum -y install \ + rh-python36 \ + devtoolset-8-gcc-c++ && \ + yum clean all && rm -rf /var/cache/yum + +ENV PATH=/opt/rh/rh-python36/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:$PATH + +RUN python3 -m pip install pip --upgrade && \ + python3 -m pip install conan cmake ninja + +RUN conan profile detect + +COPY repro.sh /root/repro.sh + +CMD ["/bin/bash", "/root/repro.sh"] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..9ffde2e --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +``` +$ docker build . -t conan-14945-repro +$ docker run --rm conan-14945-repro +``` diff --git a/repro.sh b/repro.sh new file mode 100644 index 0000000..9e9cc03 --- /dev/null +++ b/repro.sh @@ -0,0 +1,25 @@ +#!/bin/bash + + +echo "System information:" + +cat /etc/redhat-release +g++ --version +conan --version + +set -ex + +conan list '*:*#*' + +# Conan finds compatible b2 package in CCI, but that package is OS-incompatible +conan install --requires=boost/1.82.0 --build=missing || echo "!!! (rc=$?) Build failed as expected" +conan list '*:*#*' + +# Force source build, fill local cache with our version of b2 +conan install --requires=boost/1.82.0 --build=missing --build='b2/*' +conan list '*:*#*' + +# Try different build_type -- get the same error as in first run (as if our version of b2 doesn't exist) +conan install --requires=boost/1.82.0 -s build_type=Debug --build=missing || echo "!!! (rc=$?) Build should have succeeded, but it failed" +conan list '*:*#*' +