* Checking out code from svn
@ 2017-08-17 14:26 John O'Sullivan
2017-08-18 8:51 ` Chris Z.
0 siblings, 1 reply; 2+ messages in thread
From: John O'Sullivan @ 2017-08-17 14:26 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1947 bytes --]
Hi,
This worked for me
PACKAGE="myapp"
SRC_URI = "${SVN_ROOT}/path_to_module/;module=${PACKAGE};protocol=svn;rev=HEAD"
where SVN_ROOT is something like
SVN_ROOT = "svn://10.10.10.xx"
Hi,
I am looking for some help with incorporating a svn check out into a recipe.
The current syntax I arrived at is:
SRC_URI = "svn://myserverip/Emerald/trunk/Applications/Examples/;module=SampleApplication;protocol=svn;rev=HEAD;user=username;pswd=userpassword"
In interacting with this server I would normally check out using a command like
svn co svn://myserverip/Emerald/trunk/Applications/Example/ SampleApplication SampleApplication
This would give me a directory called SampleApplication with the required source code.
I would normally authenticate myself once in advance of this checkout.
The documentation at
http://www.yoctoproject.org/docs/2.3/bitbake-user-manual/bitbake-user-manual.html#svn-fetcher
mentions
"module": The name of the svn module to checkout. You must provide this parameter. You can think of this parameter as the top-level directory of the repository data you want.
I'm not sure what that means in this context, in my example does it mean the SampleApplication folder?
There is no mention in the current documentation of parameters like user or pswd so I am not sure if these are still used.
________________________________
This email and any files transmitted with it are confidential and are intended for the sole use of the individual to whom they are addressed. Black Box Corporation reserves the right to scan all e-mail traffic for restricted content and to monitor all e-mail in general. If you are not the intended recipient or you have received this email in error, any use, dissemination or forwarding of this email is strictly prohibited. If you have received this email in error, please notify the sender by replying to this email.
[-- Attachment #2: Type: text/html, Size: 2883 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Checking out code from svn
2017-08-17 14:26 Checking out code from svn John O'Sullivan
@ 2017-08-18 8:51 ` Chris Z.
0 siblings, 0 replies; 2+ messages in thread
From: Chris Z. @ 2017-08-18 8:51 UTC (permalink / raw)
To: John O'Sullivan; +Cc: yocto@yoctoproject.org
Hi,
Yes
user=username
pswd=userpassword
it's still in the bitbake code. But not in the documentation.
Beside providing username and password as a parameter bitbake also
parses URI and it can also contain useradata. Where URI scheme:
scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]
Regarding SVN module and correct svn fetch url creation, documentation
misses examples and pitfalls.
if no path_spec, path_spec == module
SRC_URI + module -- ( fetch/checkout sw ) -> downloads/svn/SRC_URI/path_spec
downloads/svn/SRC_URI/path_spec -- ( do_unpack ) -->
tmp/work/.../<package>/../path_spec/sub_dir
mirror tar -> module_src_uri_revision.tar.gz
Pitfall here is download directory structure and new SVN client (1.7+
version). SVN client doesn't exit when there is conflict in the svn
directory. So one have to has unique path in
downloads/svn/SRC_URI/path_spec for it packages and shouldn't use
multiple svn urls which are finally fetched to
downloads/svn/SRC_URI/path_spec
P.S.
For authentication to svn resource you could save your credentials in
~/.subversion dir or use svn+ssh rather than using username and
password directly.
Br,
Chris Z
On Thu, Aug 17, 2017 at 4:26 PM, John O'Sullivan
<John.OSullivan@blackbox.com> wrote:
> Hi,
>
>
> This worked for me
>
> PACKAGE="myapp"
> SRC_URI =
> "${SVN_ROOT}/path_to_module/;module=${PACKAGE};protocol=svn;rev=HEAD"
>
>
> where SVN_ROOT is something like
>
>
> SVN_ROOT = "svn://10.10.10.xx"
>
>
> Hi,
>
> I am looking for some help with incorporating a svn check out into a recipe.
>
>
> The current syntax I arrived at is:
>
> SRC_URI =
> "svn://myserverip/Emerald/trunk/Applications/Examples/;module=SampleApplication;protocol=svn;rev=HEAD;user=username;pswd=userpassword"
>
>
> In interacting with this server I would normally check out using a command
> like
>
> svn co svn://myserverip/Emerald/trunk/Applications/Example/
> SampleApplication SampleApplication
>
> This would give me a directory called SampleApplication with the required
> source code.
>
>
> I would normally authenticate myself once in advance of this checkout.
>
>
> The documentation at
>
> http://www.yoctoproject.org/docs/2.3/bitbake-user-manual/bitbake-user-manual.html#svn-fetcher
>
> mentions
>
> "module": The name of the svn module to checkout. You must provide this
> parameter. You can think of this parameter as the top-level directory of the
> repository data you want.
>
> I'm not sure what that means in this context, in my example does it mean the
> SampleApplication folder?
>
>
> There is no mention in the current documentation of parameters like user or
> pswd so I am not sure if these are still used.
>
>
>
>
>
>
>
> ________________________________
>
> This email and any files transmitted with it are confidential and are
> intended for the sole use of the individual to whom they are addressed.
> Black Box Corporation reserves the right to scan all e-mail traffic for
> restricted content and to monitor all e-mail in general. If you are not the
> intended recipient or you have received this email in error, any use,
> dissemination or forwarding of this email is strictly prohibited. If you
> have received this email in error, please notify the sender by replying to
> this email.
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-18 8:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17 14:26 Checking out code from svn John O'Sullivan
2017-08-18 8:51 ` Chris Z.
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.