X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 74CF9DC06D5 for ; Fri, 7 Aug 2015 09:33:17 +0000 (UTC) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 10C94DC0113 for ; Fri, 7 Aug 2015 09:33:16 +0000 (UTC) Received: by lbbtg9 with SMTP id tg9so19716352lbb.1 for ; Fri, 07 Aug 2015 02:33:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type; bh=aEdMXuEQN0waYZEbGJ0hQ5zCqhzcGe9rYSDHcZRWg6w=; b=A+CZ728r9FakkexMxrmHedOZazAxX2Qt4m9BomRWk0r+q4r9lIgrQaA8zaX/Apc7/2 hxCnbUchvMcdyru9q9gr6q0DlMaP27aeHgQRR83uknHb4j+Z3w5v1cv3RFWw2ON2Ciqb dQffGEvRgjlaim2K4WQ6X5jK2ltoRO/ztKmRU2r5gcN6gRjdfDZv1FuINoPuOg1o32x3 bw7wQoJF06zj/+9RCJtVRKcFttb4vcaYu99PXKs8Ga3dyAAP6EUJMqRbYzxFRfGcxPyd rDFPxPjSEEZQIN07ekeTxTJc50CqGVp4Rs8/WWuSq/sQBRLG0ihN57JcgliY3j1Lupxm IgLQ== X-Gm-Message-State: ALoCoQkzJ/7RQ0DtRiIgrdTYgI9ywH6WqUZBs/zOuiub32rRzvz99dgOsIeTPp12dvHV2f9hVgQ9 X-Received: by 10.152.18.162 with SMTP id x2mr6554234lad.73.1438939994443; Fri, 07 Aug 2015 02:33:14 -0700 (PDT) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: <1438899666-12217-1-git-send-email-christian@kampka.net> In-Reply-To: From: Christian Kampka Date: Fri, 07 Aug 2015 09:33:05 +0000 Message-ID: Subject: Re: [alpine-aports] [PATCH 1/2] testing/glock: new aport To: Francesco Colista Cc: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=089e01493da638ea2c051cb5531c X-Virus-Scanned: ClamAV using ClamSMTP --089e01493da638ea2c051cb5531c Content-Type: text/plain; charset=UTF-8 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 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 > --089e01493da638ea2c051cb5531c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Francesco,

the buildin snapshot func= tion does not provide a complete and working tarball, therefore the build r= olls is own.
This seems to be a common problem for many go packag= es 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 out= put showing the problem you are experiencing.

Chee= rs,
Christian



Francesco Colista <fcolista@alpinelinux.org> schrieb am F= r., 7. Aug. 2015 um 10:25=C2=A0Uhr:
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<= br> > team.
> ---

> +snapshot() {
> +=C2=A0 =C2=A0 =C2=A0local _date=3D$(date +%Y%m%d)
> +=C2=A0 =C2=A0 =C2=A0local _ver=3D0.0.$_date
> +=C2=A0 =C2=A0 =C2=A0local _pkg=3D$pkgname-$_ver.tar.gz
> +
> +=C2=A0 =C2=A0 =C2=A0abuild clean
> +=C2=A0 =C2=A0 =C2=A0abuild deps
> +=C2=A0 =C2=A0 =C2=A0abuild fetch
> +
> +=C2=A0 =C2=A0 =C2=A0mkdir -p "$srcdir"
> +=C2=A0 =C2=A0 =C2=A0cd "$srcdir"
> +=C2=A0 =C2=A0 =C2=A0msg "Creating snapshot: $_pkg"
> +=C2=A0 =C2=A0 =C2=A0export GOPATH=3D"${srcdir}/$pkgname" > +=C2=A0 =C2=A0 =C2=A0git clone -q ${_giturl} || return 1
> +=C2=A0 =C2=A0 =C2=A0cd $pkgname
> +=C2=A0 =C2=A0 =C2=A0git checkout ${_commit} || return 1
> +=C2=A0 =C2=A0 =C2=A0go get -v -d || return 1
> +=C2=A0 =C2=A0 =C2=A0cd $srcdir
> +=C2=A0 =C2=A0 =C2=A0tar zcf $pkgname-$pkgver.tar.gz $pkgname || retur= n 1
> +=C2=A0 =C2=A0 =C2=A0rsync --progress -La $pkgname-${_ver}.tar.gz \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$_disturl || return 1=
> +=C2=A0 =C2=A0 =C2=A0cd $startdir
> +=C2=A0 =C2=A0 =C2=A0sed -i -e "s/^pkgver=3D.*/pkgver=3D$_ver/&qu= ot; APKBUILD || return 1
> +=C2=A0 =C2=A0 =C2=A0abuild checksum
> +=C2=A0 =C2=A0 =C2=A0abuild 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
--089e01493da638ea2c051cb5531c-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---