all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH 4/6] gnu: Add emacs-constants.
Date: Tue, 05 Jan 2016 23:08:36 +0100	[thread overview]
Message-ID: <87vb77k7bv.fsf@gnu.org> (raw)
In-Reply-To: <CAKrPhPNNEfe-+Xgsbr0NYP8SLB8124zK9FQbaw+nA5GLa8tQCQ@mail.gmail.com> (Federico Beffa's message of "Wed, 30 Dec 2015 18:33:24 +0100")

Federico Beffa <beffa@ieee.org> skribis:

> If found a few times the need to download a single, uncompressed file
> which needs to be patched. The available fetch methods do not appear
> to be appropriate. So, I've added the function
> 'uncompressed-file-fetch'. This and the function
> 'broken-tarball-fetch' which currently resides in 'engineering.scm'
> should probably belong to '(guix build utils)'.

Rather (guix download).

> From 6035d4dfd7542a615fbd70bd80527c15424185a3 Mon Sep 17 00:00:00 2001
> From: Federico Beffa <beffa@fbengineering.ch>
> Date: Sat, 26 Dec 2015 11:02:01 +0100
> Subject: [PATCH 4/6] gnu: Add emacs-constants.
>
> * gnu/packages/emacs.scm (emacs-constants): New variable.
> * gnu/packages/patches/emacs-constants-lisp-like.patch: New patch.
> * gnu-system.am (dist_patch_DATA): Add it.

[...]

> +(define* (uncompressed-file-fetch url hash-algo hash
> +                                  #:optional name
> +                                  #:key (system (%current-system))
> +                                  (guile (default-guile)))
> +  (mlet %store-monad ((drv (url-fetch url hash-algo hash name
> +                                      #:system system
> +                                      #:guile guile)))
> +    (gexp->derivation (or name (basename url))
> +                      #~(begin
> +                          (mkdir #$output)
> +                          (setenv "PATH"
> +                                  (string-append #$gzip "/bin"))
> +                          (chdir #$output)
> +                          (copy-file #$drv (basename #$url))))))

The dependency on gzip can be removed.

Also, the second derivation is okay, but kind of wasteful: it only
serves to move the file in a directory so the patch-application logic
can work.

However, I’m unsure the patch in question really belongs here.  After
all, there’s just one file, and additionally it’s called ‘constants.el’!
;-)

> diff --git a/gnu/packages/patches/emacs-constants-lisp-like.patch b/gnu/packages/patches/emacs-constants-lisp-like.patch
> new file mode 100644
> index 0000000..5ec37f3
> --- /dev/null
> +++ b/gnu/packages/patches/emacs-constants-lisp-like.patch
> @@ -0,0 +1,81 @@
> +Add Scheme support

This is too terse, and I feel like the patch really does upstream work.

It seems that the file has a new home (or is it just a mirror?) at

  https://github.com/emacsmirror/constants/blob/master/constants.el

Is the patch yours?  If yes, could you find an upstream to submit it
too?  If there’s no such thing, you could always become the upstream.
;-)

Thanks,
Ludo’.

  reply	other threads:[~2016-01-05 22:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 17:33 [PATCH 4/6] gnu: Add emacs-constants Federico Beffa
2016-01-05 22:08 ` Ludovic Courtès [this message]
2016-01-09 10:42   ` Federico Beffa
2016-01-10 20:45     ` Ludovic Courtès
2016-02-03  9:53       ` Federico Beffa
2016-02-03 21:52         ` 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

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

  git send-email \
    --in-reply-to=87vb77k7bv.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=beffa@ieee.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 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.