]> git.puffer.fish Git - mirror/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:49:44 +0000 (09:49 +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 aa792e7f0b91fde3da01029f095e4f9e11c8c5c3..622b163f0da6983c7dd361b1897828d7031cac6d 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