Mail archive
alpine-aports

Re: [alpine-aports] [PATCH 1/2] testing/glock: new aport

From: Christian Kampka <christian_at_kampka.net>
Date: Fri, 07 Aug 2015 09:33:05 +0000

Hi Francesco,

the buildin snapshot function does not provide a complete and working
tarball, therefore the build rolls is own.
This seems to be a common problem for many go packages in aports.

As to why the upload to dev.alpinelinux.org is not working I cannot say as
I do not have upload permissions to that location.
If you need me to modify the patch, please provide me with the necessary
debug output showing the problem you are experiencing.

Cheers,
Christian



Francesco Colista <fcolista_at_alpinelinux.org> schrieb am Fr., 7. Aug. 2015
um 10:25 Uhr:

> Il 2015-08-07 00:21 Christian Kampka ha scritto:
> > https://github.com/robfig/glock
> >
> > Glock is a command-line tool to lock dependencies to specific
> > revisions,
> > using a version control hook to keep those revisions in sync across a
> > team.
> > ---
>
> > +snapshot() {
> > + local _date=$(date +%Y%m%d)
> > + local _ver=0.0.$_date
> > + local _pkg=$pkgname-$_ver.tar.gz
> > +
> > + abuild clean
> > + abuild deps
> > + abuild fetch
> > +
> > + mkdir -p "$srcdir"
> > + cd "$srcdir"
> > + msg "Creating snapshot: $_pkg"
> > + export GOPATH="${srcdir}/$pkgname"
> > + git clone -q ${_giturl} || return 1
> > + cd $pkgname
> > + git checkout ${_commit} || return 1
> > + go get -v -d || return 1
> > + cd $srcdir
> > + tar zcf $pkgname-$pkgver.tar.gz $pkgname || return 1
> > + rsync --progress -La $pkgname-${_ver}.tar.gz \
> > + $_disturl || return 1
> > + cd $startdir
> > + sed -i -e "s/^pkgver=.*/pkgver=$_ver/" APKBUILD || return 1
> > + abuild checksum
> > + abuild undeps
> > +}
> > +
>
> Hi Christian.
> Rather than implementing a snapshot() function, you can use the buildin
> abuild snaphsot who proves to be reliable so far.
> Please note: http://wiki.alpinelinux.org/wiki/Include:Abuild
> This patch applies, but doesn't build because the .tar.gz upload on
> dev.alpinelinux.org fails.
> Thanks.
>
> --
> :: Francesco Colista
> :: Alpine Linux Infrstraucture
> :: http://www.alpinelinux.org
>



---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Aug 07 2015 - 09:33:05 GMT