-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

I'm trying to checkout multiple components from svn trunks in a single
recipe file.  If there's a no-brainer solution, I'd appreciate the heads
up.  If not, then here's my use case.  I'm not a python dev, but I'm
starting to pick up enough to be dangerous:)

I'm fighting against the lack of the ability to supply a checkout name
for the svn checkout OR the ability for the svn fetcher to handle a
module path (potential patch to svn.py at bottom).  I think it's a
little messy to create separate .bb files for the components that should
be built under a single make...but maybe that's what you'll recommend:)

Is the lack of a checkout name param done by design?  I don't think it
could be for performance reasons since each recipe gets it's own
svn/recipie_name dir.  Therefore, a common svn checkout cannot be reused
across recipes.  ref:
http://bugs.openembedded.org/show_bug.cgi?id=1168


Here's my SRC_URL:
SRC_URI =
"svn://phoneme.dev.java.net/svn/phoneme/components;module=cdc/trunk;rev=${PV};proto=https
\

svn://phoneme.dev.java.net/svn/phoneme/components;module=jump/trunk;rev=${PV};proto=https
\

svn://phoneme.dev.java.net/svn/phoneme/components;module=midp/trunk;rev=${PV};proto=https
\

svn://phoneme.dev.java.net/svn/phoneme/components;module=pcsl/trunk;rev=${PV};proto=https
\

svn://phoneme.dev.java.net/svn/phoneme/components;module=tools/trunk;rev=${PV};proto=https
\
        ${SOURCEFORGE_MIRROR}/junit/junit3.8.1.zip"

I don't want to grab the base of the module as I'll get all the other
non-trunk branches along with the trunk, right?  And if I just set
module=trunk for each component url, then they'll all end up checked out
to the same dir on top of each other, right?

In a way, this is simmilar to bug 554, except that this problem is with
multiple SRC_URLs in a single recipe.
http://bugs.openembedded.org/show_bug.cgi?id=554

My temporary solution is to have the svn fetcher record the full module
path name instead of using os.path.basename(module).  However, I get the
feeling that os.path.basename(module) is there for a reason.

[EMAIL PROTECTED] bitbake]$ svn diff lib/bb/fetch/svn.py
Index: lib/bb/fetch/svn.py
===================================================================
- --- lib/bb/fetch/svn.py (revision 802)
+++ lib/bb/fetch/svn.py (working copy)
@@ -182,7 +182,7 @@

             os.chdir(pkgdir)
 #           tar them up to a defined filename
- -            myret = os.system("tar -czf %s %s" %
(os.path.join(dldir,tarfn), os.path.basename(module)))
+            myret = os.system("tar -czf %s %s" %
(os.path.join(dldir,tarfn), module))
             if myret != 0:
                 try:
                     os.unlink(tarfn)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iQIVAwUBRgqth3uDTbCxG8PhAQIWTg//b07xGU38oGp7YGnHxsDoOaJc/Kbeo1a4
7CRLZb6QKx4A4dIe7DrOLQpeTMV3NVOvgCy2IY25/S0WpfRXxsC3UibxPeE4muT0
z8EtWzcGiawkdarCsn6wbiP/DtN9g5jzsTXr/lt2zDm8H5zZWWX1hNFtPvfdgZFS
bO0H0GlsZjV12PDZTluvVzXywtKow2sEyEyrbWYtsxzKgBr4cZn5yO1Jl/YME2A/
I8OCXPZo/f5SzgxVzeTcwolssEyK357hrkQ1YuEMh5V5y4VFkM2kp3IBwdrR/0P9
Vn3KgmS2u5ClaydXjVBQLHdNMYoUYsKmTOPCQxo3a0LdEPjHDA2c0khLYjQeYOeN
iBGhX6V/FQuJ72ZrdDRAQbjpa6yR9ZeIrVrHcCgeOYJ/VZlx06MwqXIa4PVclKHD
PKKNfOIobasWVJ7nZ69WI9Vr86RljbbnmFXzNZsyxsI0ZAKd1GBNS8AZjJJ2kCtk
Qmc1+Ka9nmOmXI5AQ8lLh2NZqUSKVOiGAQUbQKqcYHb7bnIkTwqd3xShf+3Rn3yb
orj782x0UtRuGKr+qAYo4Uqe2yYqJvJTv6kzJ/BDlYGzYDv5nCR+3fZt2VaHQFAg
xPF8CDR12cXhiHGxFDVBeyMUhxqE+sl7m0tKTtAV5bYDaIas1plCXmKil5fqi3tI
Neh00DLKBJA=
=h50Q
-----END PGP SIGNATURE-----
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to