Re: sbuild stretch (... crossbuild-essential-armhf)
On Mon, Sep 14, 2015 at 10:50 PM, Wookey wrote:
>
> You could change your sbuild config to tell it not to install
> crossbuild-essential-armhf when crossing, but instead to install
> libc:armhf, dpkg-cross, g++-arm-linux-gnueabihf (which is is all that
> the crossbuild-essential-armhf meta-package does)
>
> See man sbuild.conf
> CROSSBUILD_CORE_DEPENDS option
>
Ah great, thanks. (***)
I manually added gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
dpkg-cross libc6-dev:armhf
to the schroot stretch-amd64-sbuild. (Needed to include sid [set up
some pin-priorities], to get dpkg-cross)
Then I did:
apt-get source hello
cd hello*
sbuild --host=armhf -d stretch-amd64-sbuild
Took me a while to figure out where the resulting binary "hello went!! ;)
I finally found it in the generated hello_2.10-1_armhf.deb
(***)
~/.sbuildrc now contains
##
## CROSSBUILD_CORE_DEPENDS -- see: man sbuild.conf !!!!!!!!!!!!!!
##
$crossbuild_core_depends = {
'armhf' => [
# https://packages.debian.org/sid/crossbuild-essential-armhf
# To find the necessary list of files below:
#
# wget
http://ftp.de.debian.org/debian/pool/main/b/build-essential/crossbuild-essential-armhf_12.1_all.deb
# ar x crossbuild-essential-armhf_12.1_all.deb
# tar xf control.tar.gz
# cat control
'libc6-dev:armhf',
'gcc-arm-linux-gnueabihf',
'g++-arm-linux-gnueabihf',
'dpkg-cross'
]
}
Reply to: