]> git.puffer.fish Git - matthieu/frr.git/commitdiff
docker: Set ABUILD_APK_INDEX_OPTS for libyang
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 14 Jun 2024 08:37:23 +0000 (11:37 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 12 Sep 2024 06:51:42 +0000 (09:51 +0300)
In build() stage of abuild, it does `apk index ...` where libyang* packages
are unsigned. We don't sign them here, and thus we need to specify `--allow-untrusted`.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
docker/alpine/libyang/APKBUILD

index 04e943fe48f71e824f6be3c73f52c5bdf66f23f5..e903f9a9c2bedffe7a263ec4c0af8b40dea684a6 100755 (executable)
@@ -21,6 +21,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/CESNET/libyang/archive/v$pkg
 #     - CVE-2021-28906
 
 build() {
+       export ABUILD_APK_INDEX_OPTS="--allow-untrusted"
        if [ "$CBUILD" != "$CHOST" ]; then
                CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
        fi