Another solution might be to set both username and password in the SRC_URI line, but use variables that can then be provided in e.g. local.conf
SRC_URI = "svn://svn.server.com/svn/project;module=ti;protocol=http;user=${PROJ_SVN_USER};pswd=${PROJ_SVN_PASSWORD}" and then in local.conf each user set: PROJ_SVN_USER = "foo" PROJ_SV_PASSWORD = "topsecret" The downside is that you'd have the password saved in clear text, which in some cases is a bad idea. You can of course go the middle way and just let the username be in local.conf to avoid having to edit the recipe when using other usernames. Cheers, Erik On Tue, Apr 15, 2014 at 11:24 AM, Sathish Kumar Balasubramaniam -ERS, HCL Tech <b-sathishku...@hcl.com> wrote: > Hi Laurent, > > > > For SVN, for ex, if the SVN path is http://svn.server.com/svn/project/ti > > > > the "SRC_URI, SRCREV" should be in the following format > > > > SRCREV = "<svn rev number>" > > SRC_URI = > "svn://svn.server.com/svn/project;module=ti;protocol=http;user=<username>" > > > > But before this execution, login to the above <username>, at least one time > you need to do svn checkout using the regular command line and when asks to > save password, give yes to save. > > > > > > Regards, > > B.Sathish Kumar > > > > From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] > On Behalf Of Laurent Joli > Sent: Tuesday, April 15, 2014 2:32 PM > To: yocto@yoctoproject.org > Subject: [yocto] bitbake co from SVN with Authentication > > > > Hello, > > > > I am try to checkout some file from a SVN with authentification. But > > bitbake say that : > > > > > > ERROR: Function failed: Fetcher failure: Fetch command failed with exit > > code 1, output: > > svn: E170001: Unable to connect to a repository at URL 'http://XXX' > > svn: E170001: OPTIONS of 'http://XXX': authorization failed: Could not > > authenticate to server: ignored Negotiate challenge, rejected Basic > > challenge > > > > ERROR: Logfile of failure stored in: > > /home/g179256/yocto/XX/armv7a-vfp-neon-poky-linux-gnueabi/ti-dcg3-app/loadNG-r0/temp/log.do_fetch.6211 > > Log data follows: > > | DEBUG: Executing python function do_fetch > > | DEBUG: Executing python function base_do_fetch > > | DEBUG: Fetcher accessed the network with the command /usr/bin/env svn > > --non-interactive --trust-server-cert info --no-auth-cache http://XXX > > | DEBUG: Running export SSH_AGENT_PID="3606"; export > > SSH_AUTH_SOCK="/tmp/ssh-zEFWxgcc3553/agent.3553"; export http_proxy=""; > > export HOME="/home/g179256"; LANG=C LC_ALL=C /usr/bin/env svn > > --non-interactive --trust-server-cert info --no-auth-cache http://XXX > > | DEBUG: Python function base_do_fetch finished > > | DEBUG: Python function do_fetch finished > > | ERROR: Function failed: Fetcher failure: Fetch command failed with > > exit code 1, output: > > | svn: E170001: Unable to connect to a repository at URL 'http://XXX' > > | svn: E170001: OPTIONS of 'http://XXX': authorization failed: Could not > > authenticate to server: ignored Negotiate challenge, rejected Basic > > challenge > > | > > ERROR: Task 0 > > (/home/g179256/yocto/../meta-layer-third-party/meta-custom/recipes-plc/ti-dcg3-app/ti-dcg3-app_loadNG.bb, > > do_fetch) failed with exit code '1' > > NOTE: Tasks Summary: Attempted 236 tasks of which 2 didn't need to be > > rerun and 1 failed. > > > > Summary: 1 task failed: > > > > /home/g179256/yocto_urd3/../meta-layer-third-party/meta-custom/recipes-plc/ti-dcg3-app/ti-dcg3-app_loadNG.bb, > > do_fetch > > Summary: There were 32 WARNING messages shown. > > Summary: There was 1 ERROR message shown, returning a non-zero exit code. > > > > Why bitbake does not ask me my username and my password ? > > > > > > Best regards, > > ----------- > > Laurent J > > > > # > > " Ce courriel et les documents qui lui sont joints peuvent contenir des > > informations confidentielles ou ayant un caractè privÃ(c)S'ils ne vous sont > > pas destinÃ(c) nous vous signalons qu'il est strictement interdit de les > > divulguer, de les reproduire ou d'en utiliser de quelque maniè que ce > > soit le contenu. Si ce message vous a Ã(c) transmis par erreur, merci d'en > > informer l'expÃ(c)teur et de supprimer immÃ(c)atement de votre systè > > informatique ce courriel ainsi que tous les documents qui y sont attachÃ(c)" > > > > > > ****** > > > > " This e-mail and any attached documents may contain confidential or > > proprietary information. If you are not the intended recipient, you are > > notified that any dissemination, copying of this e-mail and any attachments > > thereto or use of their contents by any means whatsoever is strictly > > prohibited. If you have received this e-mail in error, please advise the > > sender immediately and delete this e-mail and all attached documents > > from your computer system." > > # > > > > ::DISCLAIMER:: > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. > E-mail transmission is not guaranteed to be secure or error-free as > information could be intercepted, corrupted, > lost, destroyed, arrive late or incomplete, or may contain viruses in > transmission. The e mail and its contents > (with or without referred errors) shall therefore not attach any liability > on the originator or HCL or its affiliates. > Views or opinions, if any, presented in this email are solely those of the > author and may not necessarily reflect the > views or opinions of HCL or its affiliates. Any form of reproduction, > dissemination, copying, disclosure, modification, > distribution and / or publication of this message without the prior written > consent of authorized representative of > HCL is strictly prohibited. If you have received this email in error please > delete it and notify the sender immediately. > Before opening any email and/or attachments, please check them for viruses > and other defects. > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto