unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: "Alexander Asteroth" <alexander.asteroth@h-brs.de>,
	"Daniel Meißner" <daniel.meissner-i4k@ruhr-uni-bochum.de>
Cc: 51968@debbugs.gnu.org
Subject: bug#51968: Missing dependency for Xournal++
Date: Tue, 21 Dec 2021 10:51:03 +0000	[thread overview]
Message-ID: <8428aecd8d2d15dbcf057a8e85f40ea70705311f.camel@telenet.be> (raw)
In-Reply-To: <87ee66e3wp.fsf@h-brs.de>

Hi,

Alexander Asteroth schreef op di 21-12-2021 om 09:45 [+0100]:
> [...]
> In the meantime I found that as well. But the documentation (from my
> perspective) is unfortunately incomplete. It neither specifies the
> full
> semantics (without looking into the macro-code)

‘Modify the given package inputs, as returned by package-inputs & co.,
according to the given clauses. The example below removes the GMP and
ACL inputs of Coreutils and _adds libcap to the back of the input
list_:

(modify-inputs (package-inputs coreutils)
  (delete "gmp" "acl")
  (append libcap))’

(Emphasis mine.) Seems like the behaviour of 'append' is specified?
Except that it isn't explicitely stated there can be multiple
arguments, although this seems implied by the 'delete' example.

>  nor does it tell me,
> what kind of clauses I can put e.g. into (modify-input ...).

The manual documnets ‘delete’, ’append’ and ‘replace’, and ends with
‘the last type of clause is prepend’, no?

>  How is
> (append ...) translated? The web document links to the list append
> function which it might somehow translate to but that is not
> documented
> either (at least I dont find it).

The ‘append’ procedure is from Guile, not Guix.
Also, it doesn't link to the 'append' procedure?
--- nevermind, the 'append' in the code example does link to the Guile
manual. Seems like a bug, because 'append' accepts lists, not elements
of lists. Likewise for 'delete'.

About how ‘(append ...)’ is translated:

‘The example below [...] adds libcap to the back of the input list’.

I don't see how the documentation could be more complete,
unless you're looking for a less informal description of the syntax,
e.g. as in the documentation for 'match' or 'define-record-type' in
Guile.

Greetings,
Maxime

>
https://guix.gnu.org/manual/devel/en/html_node/Defining-Package-Variants.html#index-modify_002dinputs





  reply	other threads:[~2021-12-21 10:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19  9:19 bug#51968: Missing dependency for Xournal++ Daniel Meißner via Bug reports for GNU Guix
2021-12-10 13:32 ` Ludovic Courtès
2021-12-10 13:54   ` Daniel Meißner via Bug reports for GNU Guix
2021-12-17 10:06   ` Daniel Meißner via Bug reports for GNU Guix
2021-12-17 16:14     ` Alexander Asteroth
     [not found]       ` <875yrj5qxf.fsf@ruhr-uni-bochum.de>
2021-12-21  8:45         ` Alexander Asteroth
2021-12-21 10:51           ` Maxime Devos [this message]
2021-12-21 11:43           ` Daniel Meißner via Bug reports for GNU Guix
2021-12-21 22:46             ` Maxime Devos

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=8428aecd8d2d15dbcf057a8e85f40ea70705311f.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=51968@debbugs.gnu.org \
    --cc=alexander.asteroth@h-brs.de \
    --cc=daniel.meissner-i4k@ruhr-uni-bochum.de \
    /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).