From: Leo Prikler <leo.prikler@student.tugraz.at>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: 39717@debbugs.gnu.org
Subject: [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system.
Date: Thu, 27 Feb 2020 11:52:50 +0100 [thread overview]
Message-ID: <635f276d8ce7198de37c5c95387dc656ee80f4ae.camel@student.tugraz.at> (raw)
In-Reply-To: <87mu9472ai.fsf@ambrevar.xyz>
Am Donnerstag, den 27.02.2020, 11:27 +0100 schrieb Pierre Neidhardt:
> Thanks for the patch!
> Comments below:
>
> > (arguments
> > - `(#:modules ((guix build utils))
> > - #:builder
> > - (begin
> > - (use-modules (guix build utils))
> > - (copy-recursively (assoc-ref %build-inputs "source")
> > "icons")
> > - (substitute* "icons/Delft/index.theme"
> > - (("gnome") "Adwaita"))
> > - (delete-file "icons/README.md")
> > - (delete-file "icons/LICENSE")
> > - (delete-file "icons/logo.jpg")
> > - (copy-recursively "icons" (string-append %output
> > "/share/icons")))))
> > + `(#:install-plan
> > + '(,@(append-map (lambda (file)
> > + `((,file "share/icons/")
> > + (,(string-append file "-Dark")
> > "share/icons/")
> > + (,(string-append file "-Darker")
> > "share/icons/")
> > + (,(string-append file "-Darkest")
> > "share/icons/")))
> > + '("Delft" "Delft-Amber" "Delft-Aqua"
> > "Delft-Blue"
> > + "Delft-Gray" "Delft-Green" "Delft-Mint"
> > "Delft-Purple"
> > + "Delft-Red" "Delft-Teal")))))
>
> Interesting use of install-plan, but wouldn't it be to copy
> everything
> and simply exclude the previous delete files? E.g. (untested):
>
> #:install-plan
> `(("." "./" #:exclude ("README.md" "LICENSE" "logo.jpg")))
It would indeed be nice if it worked that way. However, Delft makes
heavy use of symbolic links, of which some are even dead, and that
causes install-file to fail.
I tried patching copy-build-system, but the result was not usable,
probably because symlinks were not resolved correctly. On top of that,
I don't think putting that much more work into copy-build-system is a
good idea. copy-build-system should be a simple build-system that just
copies stuff. Perhaps we can swallow the "file does not exist" errors,
but even that seems kinda wrong to me.
Anyways, since the original used copy-recursively, the only thing I had
to do was to make copy-build-system resort to copy-recursively as well,
hence this interesting use of install-plan. Alternatively, one could
delete the files in a pre-install phase, but that seems even weirder to
me.
Regards,
Leo
next prev parent reply other threads:[~2020-02-27 10:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-21 16:32 [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: Use the copy-build-system Leo Prikler
2020-02-21 16:32 ` [bug#39716] [PATCH 2/3] gnu: gnome-shell-extension-appindicator: " Leo Prikler
2020-02-27 10:31 ` Pierre Neidhardt
2020-02-21 16:32 ` [bug#39715] [PATCH 3/3] gnu: gnome-shell-extension-noannoyance: " Leo Prikler
2020-02-27 10:34 ` Pierre Neidhardt
2020-02-27 10:27 ` [bug#39717] [PATCH 1/3] gnu: delft-icon-theme: " Pierre Neidhardt
2020-02-27 10:52 ` Leo Prikler
2020-02-27 10:52 ` Leo Prikler [this message]
2020-02-27 13:19 ` Pierre Neidhardt
2020-02-27 13:44 ` Leo Prikler
2020-02-27 14:02 ` Pierre Neidhardt
2020-02-27 14:49 ` Leo Prikler
2020-02-28 8:40 ` Pierre Neidhardt
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=635f276d8ce7198de37c5c95387dc656ee80f4ae.camel@student.tugraz.at \
--to=leo.prikler@student.tugraz.at \
--cc=39717@debbugs.gnu.org \
--cc=mail@ambrevar.xyz \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.