Skip to content

Commit 4b4770b

Browse files
committed
Autobuild: Add explanations for apt cross-compilation setup
Related: https://github.com/jamulussoftware/jamulus/pull/2895/files#r987309259
1 parent 481e930 commit 4b4770b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/autobuild/linux_deb.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ setup_cross_compilation_apt_sources() {
4040
return
4141
fi
4242
sudo dpkg --add-architecture "${TARGET_ARCH}"
43+
# Duplicate the original Ubuntu sources and modify them to refer to the TARGET_ARCH:
4344
sed -rne "s|^deb.*/ ([^ -]+(-updates)?) main.*|deb [arch=${TARGET_ARCH}] http://ports.ubuntu.com/ubuntu-ports \1 main universe multiverse restricted|p" /etc/apt/sources.list | sudo dd of=/etc/apt/sources.list.d/"${TARGET_ARCH}".list
45+
# Now take the original Ubuntu sources and limit those to the build host (i.e. non-TARGET_ARCH) architectures:
4446
sudo sed -re 's/^deb /deb [arch=amd64,i386] /' -i /etc/apt/sources.list
4547
}
4648

0 commit comments

Comments
 (0)