]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix dependecy issue with bs4 on legacy distros
authorDavid Petera <david.petera@nic.cz>
Fri, 28 Feb 2025 14:40:04 +0000 (15:40 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 1 Apr 2025 18:37:21 +0000 (20:37 +0200)
.gitlab-ci.yml

index 43f517cb044fbfe29d21595508b42f042b1cbc99..6538ff92eac4bd36fa47b26f23d5c2810e6ef424 100644 (file)
@@ -199,6 +199,20 @@ build-opensuse-15.3-amd64:
     paths:
       - pkg/pkgs/*
 
+.pkg-deb-legacy: &pkg-deb-legacy
+  stage: pkg
+  script:
+    # create venv only if it's installed
+    - if python3 -m venv venv; then . venv/bin/activate; fi
+    # install older version of bs4 that does not use python version >= 3.6
+    - pip3 install beautifulsoup4==4.11.2 
+    - pip3 install apkg
+    - BRANCH=$CI_COMMIT_BRANCH ARCHIVE_DOCS=false apkg build
+    #- apkg install -y pkg/pkgs/*/*/*.deb
+  artifacts:
+    paths:
+      - pkg/pkgs/*
+
 .pkg-rpm: &pkg-rpm
   stage: pkg
   script:
@@ -213,6 +227,8 @@ build-opensuse-15.3-amd64:
   stage: pkg
   script:
     - sed -i "s/runstatedir/with-runtimedir/" distro/pkg/rpm/bird.spec
+    # install older version of bs4 that does not use python version >= 3.6
+    - pip3 install beautifulsoup4==4.11.2
     - pip3 install apkg
     - apkg build
     #- apkg install -y pkg/pkgs/*/*/*.rpm
@@ -273,7 +289,7 @@ pkg-centos-8-amd64:
   image: registry.nic.cz/labs/bird:centos-8-amd64
 
 pkg-ubuntu-18.04-amd64:
-  <<: *pkg-deb
+  <<: *pkg-deb-legacy
   needs: [build-ubuntu-18_04-amd64]
   image: registry.nic.cz/labs/bird:ubuntu-18.04-amd64