Hi,

I'm having a little trouble with the CVS fetcher. I am attempting to 
write a bitbake recipe for openrdate.

I have the following entry in my SCR_URI:

cvs://[email protected]/cvsroot/openrdate;module=openrdate;method=pserver;date=200811212215

It appears to be correct WRT the manual and running with these values on 
the command line works fine, however Bitbake fails to fetch the tree. It 
would appear that the fetcher isn't passing the module on the command 
line (which was required) and this is causing the fetch to fail.

Looking in the CVS fetcher, I believe that the module is saved in an 
environment variable called CVSMODULE. I've had a good search on the web 
and looked in the CVS manual on my system (Ubuntu 8.04) and can't seem 
to find any mention of this variable or CVSCOOPTS, which is also set in 
the fetcher.

I found that the following patch resolved the issue for me. I'm not 
overly familiar with python or indeed Bitbake at this point. Am I 
missing something?

Martyn

--- bitbake-1.8.12/lib/bb/fetch/cvs.py    2009-07-02 17:20:51.000000000 
+0100
+++ bitbake-1.8.12-patched/lib/bb/fetch/cvs.py    2009-07-28 
09:56:46.000000000 +0100
@@ -125,6 +125,8 @@
                 options.append("-D \"%s UTC\"" % ud.date)
         if ud.tag:
             options.append("-r %s" % ud.tag)
+        if ud.module:
+            options.append("-P %s" % ud.module)
 
         localdata = data.createCopy(d)
         data.setVar('OVERRIDES', "cvs:%s" % data.getVar('OVERRIDES', 
localdata), localdata)

-- 
Martyn Welch MEng MPhil MIET (Principal Software Engineer)   T:+44(0)1327322748
GE Fanuc Intelligent Platforms Ltd,        |Registered in England and Wales
Tove Valley Business Park, Towcester,      |(3828642) at 100 Barbirolli Square,
Northants, NN12 6PF, UK T:+44(0)1327359444 |Manchester,M2 3AB  VAT:GB 927559189
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to