-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b02b832
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
``` | ||
$ docker build . -t conan-14945-repro | ||
$ docker run --rm conan-14945-repro | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 '*:*#*' | ||
|