We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 481e930 commit 4b4770bCopy full SHA for 4b4770b
1 file changed
.github/autobuild/linux_deb.sh
@@ -40,7 +40,9 @@ setup_cross_compilation_apt_sources() {
40
return
41
fi
42
sudo dpkg --add-architecture "${TARGET_ARCH}"
43
+ # Duplicate the original Ubuntu sources and modify them to refer to the TARGET_ARCH:
44
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:
46
sudo sed -re 's/^deb /deb [arch=amd64,i386] /' -i /etc/apt/sources.list
47
}
48
0 commit comments