Skip to contentSkip to conversation

Fetching svn projects with space in URI

DISCUSSION [email protected] 1 participant 1 message Jan 17, 2022

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to create a recipe for one of our existing code bases which is under svn.

The URI of this project contains space characters and I'm struggling to properly set the SRC_URI field in the recipe.

I did try replacing space with %20 as below:

SRC_URI = "svn://server.local.net/project/My%20Application;module=trunk;rev=61238;user =uuuu;pswd=pppp;externals=allowed"

However, this results in the following error when I try to build the recipe:

WARNING: project-bin-0.1-r0 do_fetch: Failed to fetch URL svn://server.local.net/project/My%20Application;module=trunk;rev=61238;user= uuuu;pswd=pppp;externals=allowed, attempting MIRRORS if available

ERROR: project-bin-0.1-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="867"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package/op enstlinux-5.10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm32mp1/tmp-gli bc/sysroots-uninative/x86_64-linux/usr/bin:/home/developer/src/STM32MP15-Eco system-v3.1.0/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17/lay ers/openembedded-core/scripts:/home/developer/src/STM32MP15-Ecosystem-v3.1.0 /Distribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17/build-openstlinu xweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/p roject-bin/0.1-r0/recipe-sysroot-native/usr/bin/arm-ostl-linux-gnueabi:/home /developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package/openstlinux-5 .10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cor texa7t2hf-neon-vfpv4-ostl-linux-gnueabi/project-bin/0.1-r0/recipe-sysroot/us r/bin/crossscripts:/home/developer/src/STM32MP15-Ecosystem-v3.1.0/Distributi on-Package/openstlinux-5.10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm 32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/project-bin/ 0.1-r0/recipe-sysroot-native/usr/sbin:/home/developer/src/STM32MP15-Ecosyste m-v3.1.0/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-11-17/build-op enstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-g nueabi/project-bin/0.1-r0/recipe-sysroot-native/usr/bin:/home/developer/src/ STM32MP15-Ecosystem-v3.1.0/Distribution-Package/openstlinux-5.10-dunfell-mp1 -21-11-17/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon- vfpv4-ostl-linux-gnueabi/project-bin/0.1-r0/recipe-sysroot-native/sbin:/home /developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package/openstlinux-5 .10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cor texa7t2hf-neon-vfpv4-ostl-linux-gnueabi/project-bin/0.1-r0/recipe-sysroot-na tive/bin:/home/developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package /openstlinux-5.10-dunfell-mp1-21-11-17/layers/openembedded-core/bitbake/bin:
/home/developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package/openstli nux-5.10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm32mp1/tmp-glibc/hos ttools"; export HOME="/home/developer"; /usr/bin/env svn --non-interactive --trust-server-cert co --no-auth-cache --username uuuu --password pppp -r 61238 svn://server.local.net/project/My Application/trunk@61238 trunk failed with exit code 1, output:

svn: E160013: File not found: revision 61240, path '/project/My'

ERROR: project-bin-0.1-r0 do_fetch: Fetcher failure for URL:
'svn://server.local.net/project/My%20Application;module=trunk;rev=61238;user =uuuu;pswd=pppp;externals=allowed'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in:
/home/developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package/openstli nux-5.10-dunfell-mp1-21-11-17/build-openstlinuxweston-stm32mp1/tmp-glibc/wor k/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/project-bin/0.1-r0/temp/log.do_ fetch.247992

ERROR: Task (/home/developer/src/STM32MP15-Ecosystem-v3.1.0/Distribution-Package/openstl inux-5.10-dunfell-mp1-21-11-17/layers/meta-project/recipes-project/project-b in/project-bin_0.1.bb:do_fetch) failed with exit code '1'

How exactly should the space be handled?

Thank you.

Regards.

Dushara