Autoproj and CVS repositories

Hi,

I am trying to configure autoproj to checkout a source code hosted on a
CVS repository.

My source.yml file contains, in the version_control section:
- certi:
type: cvs
url: cvs.savannah.nongnu.org:/sources/certi

When running 'autoproj update', it complains about:
'there is no osdeps definition for cvs'

Is CVS a supported vcs for autoproj?
If yes, how to use it?

I am not even sure of the way I have defined the url...

Thanks.

Charles

Autoproj and CVS repositories

On 06/30/2011 05:31 PM, Charles Lesire-Cabaniols wrote:
> Hi,
>
> I am trying to configure autoproj to checkout a source code hosted on a
> CVS repository.
>
> My source.yml file contains, in the version_control section:
> - certi:
> type: cvs
> url: cvs.savannah.nongnu.org:/sources/certi
>
> When running 'autoproj update', it complains about:
> 'there is no osdeps definition for cvs'
>
> Is CVS a supported vcs for autoproj?
It was, once upon a time, a supported CVS for autobuild. I just checked,
and it is not unfortunately not compatible yet with autoproj (needs
little changes)

You can find two things attached to this file:
- a modified cvs.rb file that you should copy in the autobuild gem (in
$GEM_HOME/gems/autobuild-1.5.40/lib/autobuild/import
- a modified default.osdeps file. Copy that anywhere and then define
AUTOPROJ_DEFAULT_OSDEPS to the file's path
(for instance export AUTOPROJ_DEFAULT_OSDEPS=$HOME/default.osdeps)

I've did a quick test, and it seems to work.

I won't be unavailable the next week - doing some actual robotics in
Sauc-E (http://www.sauc-europe.org) - so, if it worked for you, I'll
publish an updated autoproj/autobuild version when I come back.

The definition in the source.yml should be like

type: cvs
url: cvs_module_name
root: cvs_root

If you need to override the cvs up and cvs co options (it uses
respectively -dP and -P by default), you can add
cvsup: ["other", "arguments"]
cvsco: ["other", "arguments"]

These options completely replace the defaults, so you need to add -dP /
-P explicitely if you want to ADD new options.

Autoproj and CVS repositories

2011/7/1 Sylvain Joyeux <sylvain [dot] joyeux [..] ...>

> On 06/30/2011 05:31 PM, Charles Lesire-Cabaniols wrote:
>
>> Hi,
>>
>> I am trying to configure autoproj to checkout a source code hosted on a
>> CVS repository.
>>
>> My source.yml file contains, in the version_control section:
>> - certi:
>> type: cvs
>> url: cvs.savannah.nongnu.org:/**sources/certi
>>
>> When running 'autoproj update', it complains about:
>> 'there is no osdeps definition for cvs'
>>
>> Is CVS a supported vcs for autoproj?
>>
> It was, once upon a time, a supported CVS for autobuild. I just checked,
> and it is not unfortunately not compatible yet with autoproj (needs little
> changes)
>
> You can find two things attached to this file:
> - a modified cvs.rb file that you should copy in the autobuild gem (in
> $GEM_HOME/gems/autobuild-1.5.**40/lib/autobuild/import
> - a modified default.osdeps file. Copy that anywhere and then define
> AUTOPROJ_DEFAULT_OSDEPS to the file's path
> (for instance export AUTOPROJ_DEFAULT_OSDEPS=$HOME/**default.osdeps)
>
> I've did a quick test, and it seems to work.
>
> I won't be unavailable the next week - doing some actual robotics in Sauc-E
> (http://www.sauc-europe.org) - so, if it worked for you, I'll publish an
> updated autoproj/autobuild version when I come back.
>
> The definition in the source.yml should be like
>
> type: cvs
> url: cvs_module_name
> root: cvs_root
>
> If you need to override the cvs up and cvs co options (it uses respectively
> -dP and -P by default), you can add
> cvsup: ["other", "arguments"]
> cvsco: ["other", "arguments"]
>
> These options completely replace the defaults, so you need to add -dP / -P
> explicitely if you want to ADD new options.
>
>
I have replaced the two files you sent me.
My source.yml file contains:

- certi:
type: cvs
root: ":pserver:anonymous [..] ...:/sources/certi"
url: certi

When I 'autoproj update certi', the cvs checkout command line contains a
reference to my local directory in the module name... and then the checkout
fails:

cvs -d :pserver:anonymous [..] ...:/sources/certi co -d certi
-P /home/lesire/autoproj/certi
cvs [server aborted]: Absolute module reference invalid:
`/home/lesire/autoproj/certi'

I looked into the cvs.rb file, but I have not found where to modify the
module name...

Charles.