On Sat, 2022-10-22 at 22:58 +0800, Bo YU wrote:
> Make the port available for maintainers and users to cross-build packages to:
Most of these are already done, see below.
Please note that even with the required changes, cross-building for
riscv64 or other unofficial Debian ports will not be reliable,
because of what helmut said on the #debian-bootstrap IRC channel:
<helmut> for instance, ports are generally binNMU-skewed, so you
cannot cross build anything unless you fix the binNMU versions
> Add support to the binutils source package
$ apt-cache showsrc binutils | grep '^ .*riscv.*arch=.*amd64' | sort -u
binutils-riscv64-linux-gnu-dbg deb debug optional arch=riscv64,amd64,i386,x32,arm64,ppc64el
binutils-riscv64-linux-gnu deb devel optional arch=riscv64,amd64,i386,x32,arm64,ppc64el
> Add libc6*-dev-$arch-cross, libc6*-$arch-cross and linux-libc-dev-$arch-cross
> packages to the cross-toolchain-base (for ftp-master.d.o arches) or
> cross-toolchain-base-ports (for ports.d.o arches) source packages
$ apt-cache showsrc cross-toolchain-base-ports | grep -E '^ .*riscv.*arch=.*(all|amd64)' | sort -u
libc6-dev-riscv64-cross deb libdevel optional arch=all
libc6-riscv64-cross deb libs optional arch=all
linux-libc-dev-riscv64-cross deb devel optional arch=all
> Add support to the current gcc-N source package
Fixed the wiki to mention the gcc-N-cross{,-ports} source packages:
$ apt-cache showsrc gcc-12-cross-ports | grep -E '^ gcc-[0-9]*-riscv64-linux-gnu .*arch=.*(all|amd64)' | sort -u
gcc-12-riscv64-linux-gnu deb devel optional arch=amd64,i386,x32,arm64,ppc64el
> Add metapackages to the gcc-defaults source package
Fixed the wiki to mention the gcc-defaults-ports source package:
$ apt-cache showsrc gcc-defaults-ports | grep -E '^ gcc-riscv' | sort -u
gcc-riscv64-linux-gnu deb devel optional arch=amd64,i386,x32,arm64,ppc64el
> Add a crossbuild-essential-$arch metapackage to the build-essential
> source package
This is the remaining item for riscv64:
$ apt-cache showsrc build-essential | grep riscv
$
--
bye,
pabs
https://wiki.debian.org/PaulWise
Attachment:
signature.asc
Description: This is a digitally signed message part