From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Luis_Felipe_L=C3=B3pez_Acevedo?= Subject: Re: Website development questions Date: Sat, 26 Nov 2016 20:02:11 -0500 Message-ID: References: <1e6da887355434e25f4190b53cdb2f26@openmailbox.org> <877f85gj51.fsf@gnu.org> <4c33f39cbd6c869e205ba58503e93bf4@openmailbox.org> <87shqlvsnc.fsf@gnu.org> <87vavf86v0.fsf@gnu.org> <87fumh4zjl.fsf@gnu.org> <2b25dade990d69b1237f4dc78fed8f50@openmailbox.org> <8760nap2fm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAnrO-0005df-PX for guix-devel@gnu.org; Sat, 26 Nov 2016 20:02:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAnrL-0003J0-Ko for guix-devel@gnu.org; Sat, 26 Nov 2016 20:02:26 -0500 In-Reply-To: <8760nap2fm.fsf@gnu.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" To: ludo@gnu.org Cc: guix-devel@gnu.org On 2016-11-26 12:37, ludo@gnu.org wrote: > Luis Felipe L=C3=B3pez Acevedo skribis: >=20 >> On 2016-11-23 17:11, ludo@gnu.org wrote: >>> Luis Felipe L=C3=B3pez Acevedo skribis= : >=20 > [...] >=20 >>> =E2=80=98%patch-path=E2=80=99 is defined like this: >>>=20 >>> --8<---------------cut here---------------start------------->8--- >>> (define %patch-path >>> ;; Define it after '%package-module-path' so that '%load-path' >>> contains user >>> ;; directories, allowing patches in $GUIX_PACKAGE_PATH to be found. >>> (make-parameter >>> (map (lambda (directory) >>> (if (string=3D? directory %distro-root-directory) >>> (string-append directory "/gnu/packages/patches") >>> directory)) >>> %load-path))) >>> --8<---------------cut here---------------end--------------->8--- >>>=20 >>> So patches are looked up in the =E2=80=9Cgnu/packages/patches=E2=80=9D= sub-directory >>> relative to the load path entry that contains =E2=80=9Cguix.scm=E2=80= =9D. >>>=20 >>> Presumably /home/anonimo/Documentos/guix/ contains guix.scm and so >>> patches are expected to be in >>> /home/anonimo/Documentos/guix/gnu/packages/patches. >>>=20 >>> Is it the case? Or could it be that only >>> =E2=80=9C4store-fix-buildsystem.patch=E2=80=9D >>> is missing? >>=20 >> hmm, patches are in that location, and the patch not found is actually >> there as well: >>=20 >> $ find -name "4store-fix-buildsystem.patch" >> ./gnu/packages/patches/4store-fix-buildsystem.patch >=20 > Damn it, I=E2=80=99m running out of ideas. :-) >=20 > It=E2=80=99s pretty clear that patches are not searched for under > /home/anonimo/Documentos/guix, which could be because you have another > guix.scm in the search path. >=20 > Can you try this: >=20 > --8<---------------cut here---------------start------------->8--- > $ guile > GNU Guile 2.0.13 > Copyright (C) 1995-2016 Free Software Foundation, Inc. >=20 > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. >=20 > Enter `,help' for help. > scheme@(guile-user)> (@@ (gnu packages) %distro-root-directory) > $1 =3D "/home/ludo/soft/share/guile/site/2.0" > scheme@(guile-user)> (search-path %load-path "guix.scm") > $2 =3D "/home/ludo/soft/share/guile/site/2.0/guix.scm" > scheme@(guile-user)> ,use(gnu packages) > scheme@(guile-user)> (search-patch "4store-fix-buildsystem.patch") > ERROR: Throw to key `srfi-34' with args `(# [message: "4store-fix-buildsystem.patch: patch not found"] 1d40120>)'. >=20 > Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. > scheme@(guile-user) [1]> ,q > scheme@(guile-user)> (%patch-path) > $3 =3D ("/home/ludo/src/manao/ludo/guix" > "/home/ludo/.config/guix/personal" > "/home/ludo/.local/share/guile/site/2.0" > "/home/ludo/soft/share/guile/site/2.0/gnu/packages/patches" > "/home/ludo/.guix-profile/share/guile/site/2.0" > "/run/current-system/profile/share/guile/site/2.0" > "/home/ludo/.local/share/guile/site/2.0" > "/home/ludo/soft/share/guile/site/2.0/gnu/packages/patches" > "/home/ludo/.guix-profile/share/guile/site/2.0" > "/run/current-system/profile/share/guile/site/2.0" > "/home/ludo/.guix-profile/share/guile/site/2.0" > "/run/current-system/profile/share/guile/site/2.0" > "/home/ludo/soft/share/guile/2.0" > "/home/ludo/soft/share/guile/site/2.0/gnu/packages/patches" > "/home/ludo/soft/share/guile/site" "/home/ludo/soft/share/guile") > --8<---------------cut here---------------end--------------->8--- >=20 > Most likely your %distro-root-directory points to that older guix.scm, > where the patch in question is unavailable. I get this: --8<---------------cut here---------------end--------------->8--- $ guile GNU Guile 2.0.13 Copyright (C) 1995-2016 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (@@ (gnu packages) %distro-root-directory) $1 =3D "/home/anonimo/Documentos/guix" scheme@(guile-user)> (search-path %load-path "guix.scm") $2 =3D "/home/anonimo/Documentos/guix/guix.scm" scheme@(guile-user)> ,use(gnu packages) scheme@(guile-user)> (search-patch "4store-fix-buildsystem.patch") ERROR: Throw to key `srfi-34' with args `(#)'. Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,q scheme@(guile-user)> (%patch-path) $3 =3D ("/home/anonimo" "/home/anonimo/.guix-profile/share/guile/site/2.0= "=20 "" "/home/anonimo/Documentos/misitio" "/home/anonimo/Documentos/myglab"=20 "/home/anonimo/Documentos/retsi" "/home/anonimo/Documentos/guix/"=20 "/home/anonimo/Documentos/guix-artwork/website"=20 "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile/2.0= "=20 "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile/sit= e/2.0"=20 "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile/sit= e"=20 "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile") --8<---------------cut here---------------end--------------->8--- Searching my home directory for "guix.scm" files I get this: --8<---------------cut here---------------end--------------->8--- $ find -name "guix.scm" ./Documentos/guix/build-aux/hydra/guix.scm ./Documentos/guix/guix.scm --8<---------------cut here---------------end--------------->8--- So, I don't know :) --=20 Luis Felipe L=C3=B3pez Acevedo http://sirgazil.bitbucket.org/