]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Ensure we use libcurl on Debian Bookworm
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Jan 2025 14:46:07 +0000 (14:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Jan 2025 14:46:07 +0000 (14:46 +0000)
apt-get build-dep does not seem to care about our local preferences
which is why we afterwards have to force-install the correct packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index c8752ecf9700934c5a0ffe059439a9c337d8735b..ade0c580848c1872ebf24ab8bbc19f33204ff88a 100644 (file)
@@ -320,6 +320,16 @@ pipeline {
                                                                steps {
                                                                        // Install all build dependencies
                                                                        sh "apt-get build-dep -y -a${env.ARCH} ."
+
+                                                                       // On Debian Bookworm, ensure we are using libcurl from backports
+                                                                       script {
+                                                                               if (env.IMAGE.contains("bookworm")) {
+                                                                                       sh """
+                                                                                               apt-get install -y \
+                                                                                                       libcurl4-openssl-dev/${env.IMAGE}
+                                                                                       """
+                                                                               }
+                                                                       }
                                                                }
                                                        }