[Git][NTPsec/ntpsec][master] Switch clang CI image to use python3

Matt Selsky gitlab at mg.gitlab.com
Tue Oct 20 00:27:28 UTC 2020



Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
7872b4cb by Matt Selsky at 2020-10-19T18:53:26-04:00
Switch clang CI image to use python3

debian-testing recently lost the python-dev package and this produced errors like:
Step 3/3 : RUN apt-get install -y netbase bison libssl-dev libcap-dev pps-tools python-dev libbsd-dev clang
 ---> Running in 48f9d695b106
Reading package lists...
Building dependency tree...
Reading state information...
Package python-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python2-dev python2
E: Package 'python-dev' has no installation candidate
The command '/bin/sh -c apt-get install -y netbase bison libssl-dev libcap-dev pps-tools python-dev libbsd-dev clang' returned a non-zero code: 100

- - - - -


2 changed files:

- .dockerfiles/clang
- .gitlab-ci.yml


Changes:

=====================================
.dockerfiles/clang
=====================================
@@ -1,4 +1,4 @@
 FROM debian:testing-slim
 
 RUN apt-get update
-RUN apt-get install -y netbase bison libssl-dev libcap-dev pps-tools python-dev libbsd-dev clang
+RUN apt-get install -y netbase bison libssl-dev libcap-dev pps-tools python3-dev libbsd-dev clang


=====================================
.gitlab-ci.yml
=====================================
@@ -281,7 +281,7 @@ clang-basic:
   <<: *job_definition
   image: $CI_REGISTRY/ntpsec/ntpsec/clang
   script:
-    - python ./waf configure --disable-doc --disable-manpage --check-c-compiler=clang build
+    - python3 ./waf configure --disable-doc --disable-manpage --check-c-compiler=clang build
 
 clang-refclocks:
   <<: *job_definition



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/7872b4cb947bcf204353e95ec48ea54e549232a3

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/7872b4cb947bcf204353e95ec48ea54e549232a3
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20201020/7176d5cd/attachment-0001.htm>


More information about the vc mailing list