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 07-23-2012, 11:57 AM
Allan McRae
 
Default Help adding support for BZR, CVZ, DARCS to makepkg

On my VCS branch, makepkg now supports git, svn and hg. That accounts
for ~91.5% of all VCS PKGBUILDs in the AUR. Here are rough AUR package
counts for those that are interested:

git: 4002
svn: 1771
hg: 498
bzr: 364
cvs: 186
darcs: 29

I will write the code to add bzr, cvs and darcs support back, but I need
help given I know nothing about these systems.


What I will need:

1) How to checkout a repo to a given folder

2) What url "fragments" need supported (e.g. git can build from a
branch, tag or commit; svn can build from a given revision).

3) How to create a working copy of the checked out repo (i.e. "copy" the
primary checkout folder) and how to get it to the specified
branch/tag/commit/whatever. That can be in all one step.


makepkg will not support these protocols with pacman-4.1 if I don't get
that information (or someone else does not provide a patch).

Allan
 
Old 08-01-2012, 11:05 AM
Menachem Moystoviz
 
Default Help adding support for BZR, CVZ, DARCS to makepkg

On Mon, Jul 23, 2012 at 5:10 PM, Markus Unterwaditzer
<markus@unterwaditzer.net> wrote:
> Am I understanding this correctly when I read that makepkg is going to have sort of native support for VCS?
>
> -- Markus
>
> Dave Reisner <d@falconindy.com> wrote:
>
>>Forwarding to aur-general, as there's likely a larger corpus of people
>>who could potentially be affected by this...
>>
>>Allan's a bit overly dramatic about this -- the current (old) PKGBUILDs
>>will continue to mostly work, but I would expect that they'll break in
>>quiet and interesting ways (e.g. pkgver won't be updated).
>>
>>----- Forwarded message from Allan McRae <allan@archlinux.org> -----
>>
>>> Date: Mon, 23 Jul 2012 21:57:34 +1000
>>> From: Allan McRae <allan@archlinux.org>
>>> To: Discussion list for pacman development <pacman-dev@archlinux.org>
>>> Subject: [pacman-dev] Help adding support for BZR, CVZ, DARCS to
>>makepkg
>>>
>>> On my VCS branch, makepkg now supports git, svn and hg. That
>>accounts
>>> for ~91.5% of all VCS PKGBUILDs in the AUR. Here are rough AUR
>>package
>>> counts for those that are interested:
>>>
>>> git: 4002
>>> svn: 1771
>>> hg: 498
>>> bzr: 364
>>> cvs: 186
>>> darcs: 29
>>>
>>> I will write the code to add bzr, cvs and darcs support back, but I
>>need
>>> help given I know nothing about these systems.
>>>
>>>
>>> What I will need:
>>>
>>> 1) How to checkout a repo to a given folder
>>>
>>> 2) What url "fragments" need supported (e.g. git can build from a
>>> branch, tag or commit; svn can build from a given revision).
>>>
>>> 3) How to create a working copy of the checked out repo (i.e. "copy"
>>the
>>> primary checkout folder) and how to get it to the specified
>>> branch/tag/commit/whatever. That can be in all one step.
>>>
>>>
>>> makepkg will not support these protocols with pacman-4.1 if I don't
>>get
>>> that information (or someone else does not provide a patch).
>>>
>>> Allan
>>>
>>
>>----- End forwarded message -----
>

As Markus said, is there native support in makepkg for VCSs (i.e. git,
bzr, hg, darcs, svn,...) or is this just a discussion regarding a
feature request?
If it's the former, how come it's not documented in the wiki? It would
simplify my git PKGBUILDS greatly.
If it's the latter, then I'm very interested, and am willing to
provide any assistance needed - just point me to the code.

M
 
Old 08-01-2012, 02:25 PM
Buce
 
Default Help adding support for BZR, CVZ, DARCS to makepkg

On Wed, Aug 1, 2012 at 6:05 AM, Menachem Moystoviz <moystovi@g.jct.ac.il>wrote:

> On Mon, Jul 23, 2012 at 5:10 PM, Markus Unterwaditzer
> <markus@unterwaditzer.net> wrote:
> > Am I understanding this correctly when I read that makepkg is going to
> have sort of native support for VCS?
> >
> > -- Markus
> >
> > Dave Reisner <d@falconindy.com> wrote:
> >
> >>Forwarding to aur-general, as there's likely a larger corpus of people
> >>who could potentially be affected by this...
> >>
> >>Allan's a bit overly dramatic about this -- the current (old) PKGBUILDs
> >>will continue to mostly work, but I would expect that they'll break in
> >>quiet and interesting ways (e.g. pkgver won't be updated).
> >>
> >>----- Forwarded message from Allan McRae <allan@archlinux.org> -----
> >>
> >>> Date: Mon, 23 Jul 2012 21:57:34 +1000
> >>> From: Allan McRae <allan@archlinux.org>
> >>> To: Discussion list for pacman development <pacman-dev@archlinux.org>
> >>> Subject: [pacman-dev] Help adding support for BZR, CVZ, DARCS to
> >>makepkg
> >>>
> >>> On my VCS branch, makepkg now supports git, svn and hg. That
> >>accounts
> >>> for ~91.5% of all VCS PKGBUILDs in the AUR. Here are rough AUR
> >>package
> >>> counts for those that are interested:
> >>>
> >>> git: 4002
> >>> svn: 1771
> >>> hg: 498
> >>> bzr: 364
> >>> cvs: 186
> >>> darcs: 29
> >>>
> >>> I will write the code to add bzr, cvs and darcs support back, but I
> >>need
> >>> help given I know nothing about these systems.
> >>>
> >>>
> >>> What I will need:
> >>>
> >>> 1) How to checkout a repo to a given folder
> >>>
> >>> 2) What url "fragments" need supported (e.g. git can build from a
> >>> branch, tag or commit; svn can build from a given revision).
> >>>
> >>> 3) How to create a working copy of the checked out repo (i.e. "copy"
> >>the
> >>> primary checkout folder) and how to get it to the specified
> >>> branch/tag/commit/whatever. That can be in all one step.
> >>>
> >>>
> >>> makepkg will not support these protocols with pacman-4.1 if I don't
> >>get
> >>> that information (or someone else does not provide a patch).
> >>>
> >>> Allan
> >>>
> >>
> >>----- End forwarded message -----
> >
>
> As Markus said, is there native support in makepkg for VCSs (i.e. git,
> bzr, hg, darcs, svn,...) or is this just a discussion regarding a
> feature request?
> If it's the former, how come it's not documented in the wiki? It would
> simplify my git PKGBUILDS greatly.
> If it's the latter, then I'm very interested, and am willing to
> provide any assistance needed - just point me to the code.
>
> M
>

It's the latter AFAIK. I'm not a pacman dev, I just lurk on the pacman-dev
mailing list, so I can't point at specific patches, but the git repo is
here:

http://projects.archlinux.org/

I'm not sure if the relevant code is in the official pacman repo or Allan's
working tree. These may also be of interest:

http://www.archlinux.org/pacman/
http://www.archlinux.org/pacman/HACKING.html
http://www.archlinux.org/pacman/submitting-patches.html

If this isn't the info you need, it might be worthwhile to ask around on
the pacman-dev mailing list. HTH.
 

Thread Tools




All times are GMT. The time now is 08:24 AM.

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