All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem using Subversion in Pyro
@ 2017-05-18 14:22 Alan Levy
  2017-05-19  9:48 ` Richard Purdie
  0 siblings, 1 reply; 16+ messages in thread
From: Alan Levy @ 2017-05-18 14:22 UTC (permalink / raw)
  To: bitbake-devel@lists.openembedded.org


[-- Attachment #1.1: Type: text/plain, Size: 2802 bytes --]

If I run the following script under Pyro:


DESCRIPTION = "Recipe to test SVN"

PACKAGE_ARCH = "${MACHINE_ARCH}"

LICENSE = "CLOSED"

PV = "${SRCPV}"

SRCREV = "${AUTOREV}"

SRC_URI = "svn://server/path;module=my_module"

I get the following error message (names have been changed...)


ERROR: ExpansionError during parsing <path>/my-recipe.bb                       | ETA:  0:00:01

Traceback (most recent call last):

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)}<mailto:$%7b@bb.fetch2.get_srcrev(d)%7d> which triggered exception FetchError: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ykmscGFFM1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/user/project/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/user/project/yocto/poky/scripts:/home/user/project/yocto/build/tmp/work/picozed_zynq7-poky-linux-gnueabi/my-recipe/fetcheravoidrecurse-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/user/project/yocto/build/tmp/work/picozed_zynq7-poky-linux-gnueabi/my-recipe/fetcheravoidrecurse-r0/recipe-sysroot/usr/bin/crossscripts:/home/user/project/yocto/build/tmp/work/picozed_zynq7-poky-linux-gnueabi/my-recipe/fetcheravoidrecurse-r0/recipe-sysroot-native/usr/sbin:/home/user/project/yocto/build/tmp/work/picozed_zynq7-poky-linux-gnueabi/my-recipe/fetcheravoidrecurse-r0/recipe-sysroot-native/usr/bin:/home/user/project/yocto/build/tmp/work/picozed_zynq7-poky-linux-gnueabi/my-recipe/fetcheravoidrecurse-r0/recipe-sysroot-native/sbin:/home/user/project/yocto/build/tmp/work/picozed_zynq7-poky-linux-gnueabi/my-recipe/fetcheravoidrecurse-r0/recipe-sysroot-native/bin:/home/user/project/yocto/poky/bitbake/bin:/home/user/project/yocto/build/tmp/hosttools"; export HOME="/home/user"; LANG=C LC_ALL=C /usr/bin/env svn --non-interactive --trust-server-cert log --limit 1 --no-auth-cache ! http://server/path/my_module/ failed with exit code 127, output:

/usr/bin/env: 'svn': No such file or directory

If I comment out the line containing SRCPV, all is well. Digging into the code it appears that svn is missing from ${HOSTTOOLS} in bitbake.conf.
ALAN LEVY
Lead Consultant, Embedded Systems

Tel > +44 (0) 1799 533200
Email > alan.levy@plextek.com

[http://www.plextek.com/wp-content/uploads/Footer-AlanLevy.jpg]<http://www.plextek.com/technicalpaper/an-introduction-to-yocto/>
[http://www.plextek.com/wp-content/uploads/2016/04/Plextek-LOGO-for-email.jpg]<http://www.plextek.com/>

www.plextek.com<http://www.plextek.com/>
The Plextek Building, London Road, Great Chesterford, Saffron Walden, CB10 1NY, UK

Plextek is the trading name of Plextek Services Ltd. Registered in England and Wales, no. 09826669



[-- Attachment #1.2: Type: text/html, Size: 9545 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 29779 bytes --]

[-- Attachment #3: image002.jpg --]
[-- Type: image/jpeg, Size: 8414 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Problem using Subversion in Pyro
@ 2017-05-18 11:40 Alan Levy
  2017-05-18 12:40 ` Alexander Kanavin
  2017-05-18 13:00 ` Burton, Ross
  0 siblings, 2 replies; 16+ messages in thread
From: Alan Levy @ 2017-05-18 11:40 UTC (permalink / raw)
  To: yocto@yoctoproject.org


[-- Attachment #1.1: Type: text/plain, Size: 1158 bytes --]

I have a recipe that fetches code from an SVN repository and uses ${SRCPV} to obtain its version number. This works fine under Morty but the recipe crashes out with an error under Pyro because it can't find the SVN executable.

Eventually I traced this down to the fact that SVN is missing from the list of host apps defined in HOSTTOOLS in bitbake.conf. If I add an assignment in local.conf to append svn to HOSTTOOLS all is well again.

I think that this is almost certainly a bug but I thought I'd raise the question here just in case it's really me doing something wrong.
ALAN LEVY
Lead Consultant, Embedded Systems

Tel > +44 (0) 1799 533200
Email > alan.levy@plextek.com

[http://www.plextek.com/wp-content/uploads/Footer-AlanLevy.jpg]<http://www.plextek.com/technicalpaper/an-introduction-to-yocto/>
[http://www.plextek.com/wp-content/uploads/2016/04/Plextek-LOGO-for-email.jpg]<http://www.plextek.com/>

www.plextek.com<http://www.plextek.com/>
The Plextek Building, London Road, Great Chesterford, Saffron Walden, CB10 1NY, UK

Plextek is the trading name of Plextek Services Ltd. Registered in England and Wales, no. 09826669



[-- Attachment #1.2: Type: text/html, Size: 6713 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 29779 bytes --]

[-- Attachment #3: image002.jpg --]
[-- Type: image/jpeg, Size: 8414 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-05-19 12:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 14:22 Problem using Subversion in Pyro Alan Levy
2017-05-19  9:48 ` Richard Purdie
2017-05-19  9:57   ` Alan Levy
2017-05-19 10:09     ` Alexander Kanavin
2017-05-19 12:44       ` Alan Levy
  -- strict thread matches above, loose matches on Subject: below --
2017-05-18 11:40 Alan Levy
2017-05-18 12:40 ` Alexander Kanavin
2017-05-18 13:04   ` Alan Levy
2017-05-18 13:14     ` Alexander Kanavin
2017-05-18 13:32       ` Alan Levy
2017-05-18 13:46       ` Alan Levy
2017-05-18 13:47         ` Alexander Kanavin
2017-05-18 14:02           ` Alan Levy
2017-05-18 14:11             ` Alexander Kanavin
2017-05-18 14:24               ` Alan Levy
2017-05-18 13:00 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.