You are not logged in.

#1 2005-11-09 19:52:38

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

CVS/SVN and versionpkg - a question

After some prodding by dibble, I have revisited my CVS/SVN PKGBUILDs in the AUR to make them work with versionpkg, as per the guidelines, and in one of them, wlan-ng-svn, the checkout is from trunk, with no module i.e.

svn co svn://svn.shaftnet.org/linux-wlan-ng/trunk

I followed the guidelines, and ended up with this:

_svntrunk=svn://svn.shaftnet.org/linux-wlan-ng/trunk

and then this:

svn co $_svntrunk --config-dir ./ -r $pkgver

The build works, but will the absence of _svnmod be a problem for versionpkg?

Offline

#2 2005-11-09 20:12:24

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: CVS/SVN and versionpkg - a question

possibly!  but you can cheat by using _svnmod=trunk and take trunk of the end of _svntrunk big_smile

Offline

#3 2005-11-09 23:23:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: CVS/SVN and versionpkg - a question

OK - but if I do that, the recommended checkout command i.e.

svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod

equates to

svn co svn://svn.shaftnet.org/linux-wlan-ng/ --config-dir ./ -r 1756 trunk

which checks out not only trunk, but also branches and tags - in other words, multiple versions of the source code, instead of just one. I'm running it at the moment and it's gone back as far v0.1.16  - current is v0.2.2.

So I think I'll leave it as it is........

Offline

#4 2005-11-10 09:06:56

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: CVS/SVN and versionpkg - a question

svn co svn://svn.shaftnet.org/linux-wlan-ng/trunk

I followed the guidelines, and ended up with this:

_svntrunk=svn://svn.shaftnet.org/linux-wlan-ng
_svnmod=trunk
svn co $_svntrunk/_svnmod --config-dir ./ -r $pkgver

Lame but it is a good enough work around smile

Offline

#5 2005-11-10 09:21:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: CVS/SVN and versionpkg - a question

OK - I wasn't sure if versionpkg specifically wanted $_svnmod at the end of the command, as per the guidelines.

I have to rebuild wlan-ng-svn now for 2.6.14-archck4, so I'll use do that and versionpkg it.

Offline

#6 2005-11-10 09:54:37

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: CVS/SVN and versionpkg - a question

versionpkg doesn't really care about the checkout command itself but it does check to ensure the _svntrunk and _svnmod are found - that's all.  The checkout command i have recently mentioned is not checked for but is essential for checkout of the code that corresponds to the pkgver.  This is useful in such cases as with bmpx-svn where I cannot build the source with a particular tag but someone else can build it fine sad

Offline

#7 2005-11-10 11:07:00

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: CVS/SVN and versionpkg - a question

Right - I've got my head around it now. versionpkg now builds wlan-ng-svn perfectly.

Thanks again. smile

Offline

Board footer

Powered by FluxBB