[pacman-dev] [PATCH] Add the ability to always build from the repo's HEAD
Allan McRae
allan at archlinux.org
Tue May 28 01:30:04 EDT 2013
On 28/05/13 15:07, 郑文辉(Techlive Zheng) wrote:
> 2013/5/28 Allan McRae <allan at archlinux.org>:
>> On 28/05/13 14:29, 郑文辉(Techlive Zheng) wrote:
>>> 2013/5/28 Allan McRae <allan at archlinux.org>:
>>>> On 28/05/13 02:08, Techlive Zheng wrote:
>>>>> ---
>>>>> A task has also been added:
>>>>>
>>>>> https://bugs.archlinux.org/task/35499
>>>>
>>>>
>>>> Am I missing something completely here? Does not specifying "ref=" etc
>>>> in the URL build from HEAD?
>>> Noop, "branch=HEAD' won't work, git clone --mirror will set the 'HEAD'
>>> ref correctly, but next time, 'git fetch' won't.
>>
>> Does just specifying the URL not do what you want? e.g.
>>
>> source=('git://projects.archlinux.org/pacman.git')
>>
> Yes, you are right, there is no need to introduce a "HEAD" fragment,
> but the later hack for 'git fetch' is necessary, otherwise, the HEAD
> won't get update in a 'git fetch'.
Explain to me as though I am incredibly stupid. Because I have no idea
what is actually wrong. Everything updates fine here:
allan at arya /var/abs/local/toolchain/glibc-git
$ grep source PKGBUILD
source=(git://sourceware.org/git/glibc.git
allan at arya /var/abs/local/toolchain/glibc-git/glibc (BARE:master)
$ cat HEAD
ref: refs/heads/master
allan at arya /var/abs/local/toolchain/glibc-git/glibc (BARE:master)
$ git show-ref --head | grep refs/heads/master
5d5ef5dbfc5be7aec31e5d33d28b2e93dc4b8a8d refs/heads/master
allan at arya /var/abs/local/toolchain/glibc-git
$ makepkg
==> Making package: glibc 2.17_637_g8de398d-1 (Tue May 28 15:16:39 EST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating glibc git repo...
...
allan at arya /var/abs/local/toolchain/glibc-git/glibc (BARE:master)
$ git show-ref --head | grep refs/heads/master
528c24058fb100fb27fe5c211b92be84c67a6659 refs/heads/master
More information about the pacman-dev
mailing list