Fix Alpine rootfs build (dotnet/core-setup#6879)
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 20 Jun 2019 20:47:23 +0000 (22:47 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Jun 2019 20:47:23 +0000 (22:47 +0200)
Alpine has moved to a new version of LLDB (8) and its dependency LLVM
libraries are now in the edge/main branch. This adds edge/main branch to
the apk add command commandline so that the dependencies can be found.

This is a copy of the same change made in dotnet/arcade. We should eventually
move core-setup to get the eng folder from arcade, but for now, we need
a quick solution.

Commit migrated from https://github.com/dotnet/core-setup/commit/8d023a6fea7824648ea860f6ba05d236a1641d54

src/installer/cross/build-rootfs.sh

index 805948c..a683be7 100755 (executable)
@@ -180,6 +180,7 @@ if [[ "$__LinuxCodeName" == "alpine" ]]; then
       -X http://dl-cdn.alpinelinux.org/alpine/v$__AlpineVersion/main \
       -X http://dl-cdn.alpinelinux.org/alpine/v$__AlpineVersion/community \
       -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
+      -X http://dl-cdn.alpinelinux.org/alpine/edge/main \
       -U --allow-untrusted --root $__RootfsDir --arch $__AlpineArch --initdb \
       add $__AlpinePackages
     rm -r $__ApkToolsDir