From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Create package and guix-daemon Date: Fri, 24 Jul 2015 08:44:48 -0400 Message-ID: References: <4c86aace96953a3ef6aebc6867855425@openmailbox.org> <2cb8375059e7acaec68c7fd7cdbb3cc7@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47497) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIcLN-0008FC-FW for guix-devel@gnu.org; Fri, 24 Jul 2015 08:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIcLK-0005Wz-8B for guix-devel@gnu.org; Fri, 24 Jul 2015 08:44:53 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:33888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIcLK-0005Wp-1j for guix-devel@gnu.org; Fri, 24 Jul 2015 08:44:50 -0400 Received: by pacan13 with SMTP id an13so14352094pac.1 for ; Fri, 24 Jul 2015 05:44:49 -0700 (PDT) In-Reply-To: <2cb8375059e7acaec68c7fd7cdbb3cc7@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 On Fri, Jul 24, 2015 at 8:41 AM, Daniel Pimentel wrote: > On 2015-07-23 17:40, Thompson, David wrote: > >> On Thu, Jul 23, 2015 at 4:35 PM, Daniel Pimentel >> wrote: >>> >>> Hi guix, >>> >>> I'm tried create a simple package (ipcalc, but in soon I'll try build the >>> complex packages), but there's a error with guix-daemon socket: >>> >>> ./pre-inst-env guix build ipcalc --keep-failed >>> ;;; note: source file >>> /home/dani/Desktop/development/git/guix/guix/config.scm >>> ;;; newer than compiled >>> /run/current-system/profile/share/guile/site/2.0/guix/config.go >>> guix build: error: failed to connect to >>> `/usr/local/var/guix/daemon-socket/socket': No such file or directory >>> >>> I added my user, dani, to guixbuild in my config.scm, and I tried with >>> root >>> "guix-daemon --build-users-group=guixbuild" but without success. >> >> >> Eek! Remove your user from that group! Your regular system users >> should never be in the guixbuild group. >> >>> Help me :( >> >> >> The problem is that you haven't configured your Guix development >> environment to use the right $localstatedir. If you're running >> GuixSD, you need to configure the Guix you are building from source >> like so: >> >> ./configure --localstatedir=/var >> >>> P.S: I my system there isn't /usr directory. >> >> >> GuixSD does not conform to the FHS, so there is no /usr. >> >> Hope this helps. >> >> - Dave > > > Hi Guix, I to this: > $ ./configure --with-libgcrypt-prefix=$HOME/.guix-profile/ > --localstatedir=/var > # guix-daemon > > But there's one error (bash?) when build package with "./pre-inst-env guix > build ipcalc" (last lines): > starting phase `unpack' > ipcalc-0.41/ > ipcalc-0.41/ipcalc > ipcalc-0.41/changelog > ipcalc-0.41/ipcalc.cgi > ipcalc-0.41/ipcalculator.png > ipcalc-0.41/license > ipcalc-0.41/contributors > ipcalc-0.41/ipcalc.gif > phase `unpack' succeeded after 0 seconds > starting phase `patch-usr-bin-file' > phase `patch-usr-bin-file' succeeded after 0 seconds > starting phase `patch-source-shebangs' > patch-shebang: ./ipcalc: warning: no binary for interpreter `perl' found in > $PATH > patch-shebang: ./ipcalc.cgi: warning: no binary for interpreter `perl' found > in $PATH > phase `patch-source-shebangs' succeeded after 0 seconds > starting phase `configure' > source directory: "/tmp/nix-build-ipcalc-0.41.drv-0/ipcalc-0.41" (relative > from build: ".") > build directory: "/tmp/nix-build-ipcalc-0.41.drv-0/ipcalc-0.41" > configure flags: > ("CONFIG_SHELL=/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash" > "SHELL=/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash" > "--prefix=/gnu/store/xmzgra6b9cfgnlqxgcaf7mbm01m8i35n-ipcalc-0.41" > "--enable-fast-install" "--enable-silent-rules") > /gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin/bash: > ./configure: No such file or directory > phase `configure' failed after 0 seconds > builder for `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' > failed with exit code 1 > @ build-failed /gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv - > 1 builder for `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' > failed with exit code 1 > guix build: error: build failed: build of > `/gnu/store/433zm5s6pvm1xpvqa8y8r1586l0v6kpj-ipcalc-0.41.drv' failed I see a couple of problems here: 1) Looks like Perl is a necessary input. 2) There is no configure script, so you must remove the 'configure' phase. Search for examples of this in other package definitions. Does this package even use the GNU build system? - Dave