FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 08-25-2012, 05:36 PM
Luke Shumaker
Default makepkg: Alternate implementation of VCS URLs in sources array.

A while ago I started working on a derivative of makepkg to support
having 'git://...' type urls in the sources=() array. When preparing
to file this patch, I did a `git rebase`, and noticed that Allan McRae
began working on a similar feature. Our implementations are in many
ways similar. Hopefully mine will be useful.

My implementation makes minimal changes to makepkg itself (only adding
blob expansion to DLAGENTS, allowing for things like
"git+*::""). Instead I added a `vcsget` tool which generates a tarball
from the VCS repo, in a very similar manner to the way Allan's
implementation does so within makepkg.

It looks as if Allan's download_*() functions are more verbose than
mine about what failed when there is an error. His svn and hg handlers
are likely more robust--though my git is pretty solid. I also have
a half-written handler for for bzr.

An advantage of my design is that it does allow for integrity checks
of VCS packages, rather than inserting 'SKIP' into the md5sums
array. This is very important to the derivative distribution Parabola.
(However, the 'SKIP' option is still valuable for URLs that track a

Happy hacking,
~ Luke Shumaker

Luke Shumaker (3):
Add a `vcsget` tool to download source from VCS repositories.
makepkg: do glob expansion in DLAGENTS maps
makepkg.conf: add vcsget DLAGENTS

etc/makepkg.conf.in | 8 +-
scripts/.gitignore | 1 +
scripts/Makefile.am | 4 +-
scripts/makepkg.sh.in | 13 ++-
scripts/vcsget.sh.in | 294 ++++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 316 insertions(+), 4 deletions(-)
create mode 100644 scripts/vcsget.sh.in


Thread Tools

All times are GMT. The time now is 02:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org