From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amirouche Boubekki Subject: Re: Guix package steps Date: Mon, 22 Jun 2015 15:49:22 +0200 Message-ID: <22d6efe2b75b6853b306138a6903bae4@hypermove.net> References: <87r3pbdm1h.fsf@netris.org> <87lhfci897.fsf@netris.org> <25d4bb0155f78d0f608c818c04d3e516@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z726R-0000bS-MR for guix-devel@gnu.org; Mon, 22 Jun 2015 09:49:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z726Q-0001Hx-DH for guix-devel@gnu.org; Mon, 22 Jun 2015 09:49:35 -0400 In-Reply-To: <25d4bb0155f78d0f608c818c04d3e516@openmailbox.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Daniel Pimentel Cc: guix-devel@gnu.org, guix-devel-bounces+amirouche=hypermove.net@gnu.org, guix-devel-bounces+d4n1=opmbx.org@gnu.org On 2015-06-22 15:42, Daniel Pimentel wrote: > On 2015-06-22 03:09, Mark H Weaver wrote: >> Daniel Pimentel writes: >> >>> On 2015-06-17 00:57, Mark H Weaver wrote: >>>> Daniel Pimentel writes: >>>> >>>>> I tried create new packages (ipcalc, nmap, xfburn and others) but >>>>> without success. >>>>> >>>>> My steps (based on talk GNU Guix packaging by Andreas Enge): >>>>> 0. Git clone guix repository by savannah; >>>>> 1. Copy gnu/package/indent.scm to mypackage.scm in this same >>>>> folder; >>>>> 2. Add module to gnu-system.am >>>>> 3. Download mypackage; >>>>> 4. Edit mypackage.scm and add hash, license and other information; >>>>> 5. ./pre-inst-env guix build mypackage -K >>>>> 6. Erro: bash: ./pre-inst-env: No such file or directory >>>>> >>>>> But there is pre-inst-env.in only. The script pre-inst-env not >>>>> exist >>>>> in repository. So where is pre-inst-env? >>>> >>>> You have to build guix before you can run it. See >>>> doc/contributing.texi, especially the "Building from Git" section. >>>> Also, you should pass --localstatedir=/var to ./configure. >>>> >>>> Mark >>> >>> I tried again, follow README file but there's a error (dot command?) >>> when I run "make": >>> >>> /bin/sh /home/dani/Desktop/development/git/guix/build-aux/missing dot >>> -Tpng -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 -Nfontsize=9 >>> -Nheight=.1 -Nwidth=.1 < "doc/images/bootstrap-graph.dot" > >>> "doc/images/bootstrap-graph.png.tmp" >>> /home/dani/Desktop/development/git/guix/build-aux/missing: line 81: >>> dot: command not found >> >> 'dot' is part of the graphviz package, which is listed as a required >> package in the "Building from Git" section that I cited above. >> >> Mark > > Hi Guix, > > After: > -clone Guix repository -> ok > -Read README and install requirements -> ok > -guix environment guix -> ok > -./configure --with-libgcrypt-prefix=$HOME/.guix-profile/ -> ok > -make -> ok > -make check -> error: FAIL: tests/lint.scm > > I tried again build (./pre-inst-env guix build ipcalc -K): guix build: > error: failed to connect to > `/usr/local/var/guix/daemon-socket/socket': No such file or directory You need to run the guix daemon [1], but before create as root the guix builders [2]: # groupadd --system guix-builder # for i in `seq 1 10`; do useradd -g guix-builder -G guix-builder \ -d /var/empty -s `which nologin` \ -c "Guix build user $i" --system \ guix-builder$i; done The guix-daemon program may then be run as root with: # guix-daemon --build-users-group=guix-builder Also don't forget to add hydra pub key as discribed in [3]: # guix archive --authorize < hydra.gnu.org.pub [1] https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix_002ddaemon [2] https://www.gnu.org/software/guix/manual/guix.html#Build-Environment-Setup [3] https://www.gnu.org/software/guix/manual/guix.html#Binary-Installation