From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Go build system Date: Mon, 25 Jul 2016 00:25:40 +0200 Message-ID: <87mvl68yhn.fsf@gnu.org> References: <20160711213621.GA22573@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRRqG-0006cM-UX for guix-devel@gnu.org; Sun, 24 Jul 2016 18:25:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRRqC-0003xQ-Tw for guix-devel@gnu.org; Sun, 24 Jul 2016 18:25:48 -0400 In-Reply-To: <20160711213621.GA22573@jasmine> (Leo Famulari's message of "Mon, 11 Jul 2016 17:36:21 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org Hello! Leo Famulari skribis: > I just wrote my first package using Go, the crude Syncthing package that > is attached. It still needs a lot of work, especially since it builds > Syncthing's dependencies from bundled copies instead of external > packages. > > But, it does illustrate some of the assumptions that Go makes when > building. It seems that Go is very particular about directory > structures; it would be better if we could avoid these contortions by > setting some environment variables. It outlines the command sequence that needs to be run. I=E2=80=99d suggest starting from that in =E2=80=98go-build-system=E2=80=99. Let=E2=80=99s mak= e it work for this package, and then we can adjust if some of the assumptions happened to be specific to Syncthing. > Should Go packages refer to the compiler? This Syncthing package does > retain a reference. I suppose it keeps a reference to run-time support libraries provided by the =E2=80=98go=E2=80=99 package? > I hope to get some replies from some people who have been building Go > software for longer than 1 day ;) I have infinitely less experience than that ;-) but since nobody replied I thought I=E2=80=99d share my 2=C2=A2. Ludo=E2=80=99.