Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#19574 - [abs] there is no PKGBUILD-bzr.proto

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Monday, 24 May 2010, 09:41 GMT
Last edited by Allan McRae (Allan) - Sunday, 30 May 2010, 01:08 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.3.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

There is NO bzr PKGBUILD proto in /usr/share/pacman

You'll find one attached. I do not pretend it's the best ever. Base your work on it.

Another bug, I think is that every PKGBUILD.proto for VCS use a source and md5sum line which are not needed at all. Moreover the source=($pkgname-$pkgver.tar.gz) is rather bad in these proto
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 30 May 2010, 01:08 GMT
Reason for closing:  Implemented
Additional comments about closing:  in git
Comment by solsTiCe (zebul666) - Monday, 24 May 2010, 09:44 GMT
Moreover,
in these VCS proto, there is this line:
# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging

but there is no more really any info on this page anymore expect some general rule that are already taken into account in the proto most of the time !
Comment by Allan McRae (Allan) - Monday, 24 May 2010, 10:05 GMT
Thanks, I will pull the bzr proto into the next ABS release.

The source/md5sum lines are still useful (e.g. providing a .desktop file for a project that does not have one), but I agree the default value in the source array is bad.

I'm sure that wiki page used to be much more detailed....
Comment by solsTiCe (zebul666) - Monday, 24 May 2010, 13:11 GMT
protos are part of pacman pkg here. Will there be a change in the future or no ?
Comment by Allan McRae (Allan) - Monday, 24 May 2010, 13:14 GMT
No... the -cvs/-svn/-hg/etc protos are not part of the pacman pacakge...
Comment by solsTiCe (zebul666) - Monday, 24 May 2010, 17:35 GMT
oops. sorry
Comment by solsTiCe (zebul666) - Friday, 28 May 2010, 20:39 GMT
there was a thread on aur-general mailing-list with a so-called new and improved PKGBUILD-git.proto
http://mailman.archlinux.org/pipermail/aur-general/2010-May/008984.html
http://pastebin.com/C8sC7wAe

it replaces a git clone with git checkout when copying to -build directory. to make it work with branches ?
take a look at it, and include it if you think it's good.

I don't really understand why a simple cp -a is not good to create the -build directory....

Comment by Allan McRae (Allan) - Friday, 28 May 2010, 22:21 GMT
"cp -a" is slow compared to "git clone"

And this is better:

if [ -d $_gitname ] ; then
cd $_gitname && git pull origin ${_gitbranch}
msg "The local files are updated."
else
git clone $_gitroot
cd $_gitname && git checkout origin/${_gitbranch}
fi
Comment by Allan McRae (Allan) - Saturday, 29 May 2010, 01:23 GMT Comment by solsTiCe (zebul666) - Sunday, 30 May 2010, 01:07 GMT
  • Field changed: Percent Complete (100% → 0%)
I think I have confused you by talking about git because you use git command in the bazaar (bzr command) PKGBUILD prototype !
Comment by Allan McRae (Allan) - Sunday, 30 May 2010, 01:07 GMT
Argh.... fixed.

Loading...