[bitbake-devel] CVS support on Yocto 2.3 (Pyro) and bitbake 1.34

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Sep 1 15:44:24 UTC 2017


> -----Original Message-----
> From: bitbake-devel-bounces at lists.openembedded.org [mailto:bitbake-
> devel-bounces at lists.openembedded.org] On Behalf Of Fred Lamer
> Sent: den 4 augusti 2017 16:00
> To: bitbake-devel at lists.openembedded.org; poky at yoctoproject.org
> Subject: [bitbake-devel] CVS support on Yocto 2.3 (Pyro) and bitbake
> 1.34
> 
> Hi,
> 
> I'm trying to bring a project from Yocto 2.1 (Krogoth) to 2.3 (Pyro). I
> have a problem with one of my recipe that tries to fetch from a cvs
> repository. The recipe work perfectly on Yocto 2.1 (using bitbake
> 1.30),
> but not on Yocto 2.3 (using bitbake 1.34).
> 
> It seems like 'cvs' is not installed on the host system? I get the
> following error:
> 
> ***********************************************************************
> 
> Fetcher failure: Fetch command export
> PATH="/media/yocto/yocto-vetrobot-next.git/build/tmp/sysroots-
> uninative/x86_64-linux/usr/bin:/media/yocto/yocto-vetrobot-
> next.git/poky/scripts:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/work/corei7-64-poky-linux/libev/4.15-r0/recipe-
> sysroot-native/usr/bin/x86_64-poky-linux:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/work/corei7-64-poky-linux/libev/4.15-r0/recipe-
> sysroot/usr/bin/crossscripts:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/work/corei7-64-poky-linux/libev/4.15-r0/recipe-
> sysroot-native/usr/sbin:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/work/corei7-64-poky-linux/libev/4.15-r0/recipe-
> sysroot-native/usr/bin:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/work/corei7-64-poky-linux/libev/4.15-r0/recipe-
> sysroot-native/sbin:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/work/corei7-64-poky-linux/libev/4.15-r0/recipe-
> sysroot-native/bin:/media/yocto/yocto-vetrobot-
> next.git/poky/bitbake/bin:/media/yocto/yocto-vetrobot-
> next.git/build/tmp/hosttools";
> export HOME="/home/fred"; /usr/bin/env cvs
> '-d:pserver:anonymous at cvs.schmorp.de:/schmorpforge' co -r rel-4_15
> libev
> failed with exit code 127, output:
> 
> /usr/bin/env: ‘cvs’: No such file or directory
> 
> ***********************************************************************
> 
> So, it seems like cvs is either not installed or not in the PATH.
> Anyone ever had this problem?
> 
> Note that this if I copy/paste this command outside of the bitbake
> environnement:
> 
> ***********************************************************************
> 
> /usr/bin/env cvs '-d:pserver:anonymous at cvs.schmorp.de:/schmorpforge' co -r rel-4_15 libev
> 
> ***********************************************************************
> 
> it works perfectly (so it's not a fetch error from the repo).
> 
> Thanks
> 
> Fred

This is due to the introduction of the HOSTTOOLS and HOSTTOOLS_NONFATAL 
variables in Pyro. Only executables included in these variables will be 
available from the host environment when bitbake is running. The 
executables in HOSTTOOLS must exist or bitbake will abort. The executables 
in HOSTTOOLS_NONFATAL will be available if they exist.

So if you add cvs to HOSTTOOLS_NONFATAL, using cvs to fetch a repository 
should start to work again.

//Peter



More information about the bitbake-devel mailing list