unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Luis Felipe López Acevedo" <felipe.lopez@openmailbox.org>
Cc: guix-devel@gnu.org
Subject: Re: Website development questions
Date: Wed, 23 Nov 2016 23:11:26 +0100	[thread overview]
Message-ID: <87fumh4zjl.fsf@gnu.org> (raw)
In-Reply-To: <fb1466a3dc66106c22160700fb63ce7d@openmailbox.org> ("Luis Felipe López Acevedo"'s message of "Tue, 22 Nov 2016 19:59:24 -0500")

Luis Felipe López Acevedo <felipe.lopez@openmailbox.org> skribis:

> On 2016-11-22 17:52, ludo@gnu.org wrote:
>> Luis Felipe López Acevedo <felipe.lopez@openmailbox.org> skribis:
>>
>>> However, I have another problem:
>>>
>>>     scheme@(guile-user)> (export-web-page packages-page
>>> "site/packages/index.html")
>>>     gnu/packages/databases.scm:87:21: In procedure #<procedure c375ef0
>>> at gnu/packages/databases.scm:80:12 ()>:
>>>     gnu/packages/databases.scm:87:21: Throw to key `srfi-34' with args
>>> `(#<condition &message [message: "4store-fix-buildsystem.patch: patch
>>> not found"] d5b3220>)'.
>>>
>>>     Entering a new prompt.  Type `,bt' for a backtrace or `,q' to
>>> continue.
>>
>> Somehow ‘search-patch’ from (gnu packages) doesn’t find the patch or is
>> not looking in the right places.
>>
>> Could you check the value of (%patch-path)?
>>
>>   ,use(gnu packages)
>>   (%patch-path)
>
> Ok, this is what I have:
>
> ("/home/anonimo/Documentos/guix-artwork/website"
>  "/home/anonimo/.guix-profile/share/guile/site/2.0"
>  "/home/anonimo/Documentos/guix/"
>  "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile/2.0"
>  "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile/site/2.0"
>  "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile/site"
>  "/gnu/store/dw907d51axf5xcz6qkngdb8mv1x6ja9m-guile-2.0.13/share/guile")
>
> What should be there? I haven't added any patches directory to PATH,
> nor do I know where patches are...

‘%patch-path’ is defined like this:

--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=? directory %distro-root-directory)
              (string-append directory "/gnu/packages/patches")
              directory))
        %load-path)))
--8<---------------cut here---------------end--------------->8---

So patches are looked up in the “gnu/packages/patches” sub-directory
relative to the load path entry that contains “guix.scm”.

Presumably /home/anonimo/Documentos/guix/ contains guix.scm and so
patches are expected to be in
/home/anonimo/Documentos/guix/gnu/packages/patches.

Is it the case?  Or could it be that only “4store-fix-buildsystem.patch”
is missing?

HTH,
Ludo’.

  reply	other threads:[~2016-11-23 22:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-14 18:15 Website development questions Luis Felipe López Acevedo
2016-11-15  9:57 ` Ludovic Courtès
2016-11-16 17:55   ` Luis Felipe López Acevedo
2016-11-20 20:17   ` Luis Felipe López Acevedo
2016-11-21  1:39     ` Luis Felipe López Acevedo
2016-11-21 14:01       ` Ludovic Courtès
2016-11-21 14:55         ` Luis Felipe López Acevedo
2016-11-22 22:52           ` Ludovic Courtès
2016-11-23  0:59             ` Luis Felipe López Acevedo
2016-11-23 22:11               ` Ludovic Courtès [this message]
2016-11-24  1:24                 ` Luis Felipe López Acevedo
2016-11-26 17:37                   ` Ludovic Courtès
2016-11-27  1:02                     ` Luis Felipe López Acevedo
2016-11-27  1:27                       ` Luis Felipe López Acevedo
2016-11-28 14:02                         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fumh4zjl.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=felipe.lopez@openmailbox.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).