All of lore.kernel.org
 help / color / mirror / Atom feed
* [bitbake] Issue with SVN fetcher options
@ 2016-10-10 13:11 Karim ATIKI
  2016-10-10 13:47 ` Karim ATIKI
  0 siblings, 1 reply; 4+ messages in thread
From: Karim ATIKI @ 2016-10-10 13:11 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

Hi all,


I'm writing a recipe to build a custom project for an ARM based board (Colibri T20).

I need to fetch the different sub-projects from SVN and launch the respective makefile.


However, I'm experiencing a problem with the SVN fetcher of bitbake.

Indeed, my URI looks like:


SRC_URI = "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http"

Basically, it works fine. But the source code is fetched into:

../downloads/svn/our-server:22037/svn-atonce/subproject/trunk


And I need it to be checked out into a local directory as follow:


../downloads/svn/our-server:22037/svn-atonce/subproject/

I haven'nt found yet an option for the SVN fetcher to specify a local directory for the check-out.

Is there an option that I haven'nt found in the BitBake manual ?

Cheers.

Karim


[-- Attachment #2: Type: text/html, Size: 1852 bytes --]

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

* Re: [bitbake] Issue with SVN fetcher options
  2016-10-10 13:11 [bitbake] Issue with SVN fetcher options Karim ATIKI
@ 2016-10-10 13:47 ` Karim ATIKI
  2016-10-10 13:58   ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Karim ATIKI @ 2016-10-10 13:47 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1868 bytes --]

OK.


I found  out the solution.


Actually, I noticed in the log file "log.do_fetch()" that the SVN command finishes with the "module" name as the output directory.

I took a look to bitbake sourcecode and realized that the parameter I was looking for in the SRC_URI was "path_spec".


ThereforeI changed the SRC_URI with:


SRC_URI = "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http;path_spec=subproject"

And everything works fine.
Please note that there are no mentions of "path_spec" in the the BitBake manual nor Yocto MegaManual.

I just wonder if there's a reason for that. Anyway, it solved my problem.

Cheers.

Karim


________________________________
De : yocto-bounces@yoctoproject.org <yocto-bounces@yoctoproject.org> de la part de Karim ATIKI <karim_atiki@hotmail.com>
Envoyé : lundi 10 octobre 2016 15:11
À : yocto
Objet : [yocto] [bitbake] Issue with SVN fetcher options


Hi all,


I'm writing a recipe to build a custom project for an ARM based board (Colibri T20).

I need to fetch the different sub-projects from SVN and launch the respective makefile.


However, I'm experiencing a problem with the SVN fetcher of bitbake.

Indeed, my URI looks like:


SRC_URI = "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http"

Basically, it works fine. But the source code is fetched into:

../downloads/svn/our-server:22037/svn-atonce/subproject/trunk


And I need it to be checked out into a local directory as follow:


../downloads/svn/our-server:22037/svn-atonce/subproject/

I haven'nt found yet an option for the SVN fetcher to specify a local directory for the check-out.

Is there an option that I haven'nt found in the BitBake manual ?

Cheers.

Karim


[-- Attachment #2: Type: text/html, Size: 4453 bytes --]

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

* Re: [bitbake] Issue with SVN fetcher options
  2016-10-10 13:47 ` Karim ATIKI
@ 2016-10-10 13:58   ` Mark Hatle
  2016-10-10 17:16     ` Karim ATIKI
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2016-10-10 13:58 UTC (permalink / raw)
  To: Karim ATIKI, yocto

On 10/10/16 3:47 PM, Karim ATIKI wrote:
> OK.
> 
> 
> I found  out the solution.
> 
> 
> Actually, I noticed in the log file "log.do_fetch()" that the SVN command
> finishes with the "module" name as the output directory.
> 
> I took a look to bitbake sourcecode and realized that the parameter I was
> looking for in the SRC_URI was "path_spec".
> 
> 
> ThereforeI changed the SRC_URI with:
> 
> 
> 
> SRC_URI =
> "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http;path_spec=subproject"
> 
> And everything works fine.
> Please note that there are no mentions of "path_spec" in the the BitBake manual
> nor Yocto MegaManual.
> 
> I just wonder if there's a reason for that. Anyway, it solved my problem.
> 
> Cheers.
> 
> Karim
> 
> 
> --------------------------------------------------------------------------------
> *De :* yocto-bounces@yoctoproject.org <yocto-bounces@yoctoproject.org> de la
> part de Karim ATIKI <karim_atiki@hotmail.com>
> *Envoyé :* lundi 10 octobre 2016 15:11
> *À :* yocto
> *Objet :* [yocto] [bitbake] Issue with SVN fetcher options
>  
> 
> Hi all,
> 
> 
> I'm writing a recipe to build a custom project for an ARM based board (Colibri T20).
> 
> I need to fetch the different sub-projects from SVN and launch the respective
> makefile.
> 
> 
> However, I'm experiencing a problem with the SVN fetcher of bitbake.
> 
> Indeed, my URI looks like:
> 
> 
> SRC_URI =
> "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http"
> 
> Basically, it works fine. But the source code is fetched into:
> 
> *../downloads/svn/our-server:22037/svn-atonce/subproject/trunk*
> 
> 
> And I need it to be checked out into a local directory as follow:
> 
> 
> *../downloads/svn/our-server:22037/svn-atonce/subproject/*
> 
> I haven'nt found yet an option for the SVN fetcher to specify a local directory
> for the check-out.
> 
> Is there an option that I haven'nt found in the BitBake manual ?

If this fixes your issues, and is not anywhere in the manual.  I'd suggest
opening a bug on the docs in the bugzilla so it can be updated.

(bugzilla.yoctoproject.org -- selection documentation)

--Mark

> Cheers.
> 
> Karim
> 
> 
> 



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

* Re: [bitbake] Issue with SVN fetcher options
  2016-10-10 13:58   ` Mark Hatle
@ 2016-10-10 17:16     ` Karim ATIKI
  0 siblings, 0 replies; 4+ messages in thread
From: Karim ATIKI @ 2016-10-10 17:16 UTC (permalink / raw)
  To: Mark Hatle, yocto

[-- Attachment #1: Type: text/plain, Size: 2559 bytes --]


________________________________
De : Mark Hatle <mark.hatle@windriver.com>
Envoyé : lundi 10 octobre 2016 15:58
À : Karim ATIKI; yocto
Objet : Re: [yocto] [bitbake] Issue with SVN fetcher options

On 10/10/16 3:47 PM, Karim ATIKI wrote:
> OK.
>
>
> I found  out the solution.
>
>
> Actually, I noticed in the log file "log.do_fetch()" that the SVN command
> finishes with the "module" name as the output directory.
>
> I took a look to bitbake sourcecode and realized that the parameter I was
> looking for in the SRC_URI was "path_spec".
>
>
> ThereforeI changed the SRC_URI with:
>
>
>
> SRC_URI =
> "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http;path_spec=subproject"
>
> And everything works fine.
> Please note that there are no mentions of "path_spec" in the the BitBake manual
> nor Yocto MegaManual.
>
> I just wonder if there's a reason for that. Anyway, it solved my problem.
>
> Cheers.
>
> Karim
>
>
> --------------------------------------------------------------------------------
> *De :* yocto-bounces@yoctoproject.org <yocto-bounces@yoctoproject.org> de la
> part de Karim ATIKI <karim_atiki@hotmail.com>
> *Envoyé :* lundi 10 octobre 2016 15:11
> *À :* yocto
> *Objet :* [yocto] [bitbake] Issue with SVN fetcher options
>
>
> Hi all,
>
>
> I'm writing a recipe to build a custom project for an ARM based board (Colibri T20).
>
> I need to fetch the different sub-projects from SVN and launch the respective
> makefile.
>
>
> However, I'm experiencing a problem with the SVN fetcher of bitbake.
>
> Indeed, my URI looks like:
>
>
> SRC_URI =
> "svn://${PGA_SVN_USERNAME}:${PGA_SVN_PASSWORD}@our-server:22037/svn-atonce/subproject/;module=trunk;protocol=http"
>
> Basically, it works fine. But the source code is fetched into:
>
> *../downloads/svn/our-server:22037/svn-atonce/subproject/trunk*
>
>
> And I need it to be checked out into a local directory as follow:
>
>
> *../downloads/svn/our-server:22037/svn-atonce/subproject/*
>
> I haven'nt found yet an option for the SVN fetcher to specify a local directory
> for the check-out.
>
> Is there an option that I haven'nt found in the BitBake manual ?
>
>If this fixes your issues, and is not anywhere in the manual.  I'd suggest
>opening a bug on the docs in the bugzilla so it can be updated.
>
>(bugzilla.yoctoproject.org -- selection documentation)
>
>--Mark

Done.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=10405



[-- Attachment #2: Type: text/html, Size: 4201 bytes --]

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

end of thread, other threads:[~2016-10-10 17:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10 13:11 [bitbake] Issue with SVN fetcher options Karim ATIKI
2016-10-10 13:47 ` Karim ATIKI
2016-10-10 13:58   ` Mark Hatle
2016-10-10 17:16     ` Karim ATIKI

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.