all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
@ 2017-07-10  4:04 Alex Vong
  2017-07-10  9:50 ` bug#27635: " Arun Isaac
  2017-07-10 10:36 ` [bug#27635] " Ludovic Courtès
  0 siblings, 2 replies; 10+ messages in thread
From: Alex Vong @ 2017-07-10  4:04 UTC (permalink / raw)
  To: 27635


[-- Attachment #1.1: Type: text/plain, Size: 115 bytes --]

Hi,

Currently, Emacs cannot resize image in image-mode because it lacks
imagemagick support. This patch adds it:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-emacs-Build-with-imagemagick-support.patch --]
[-- Type: text/x-diff, Size: 772 bytes --]

From bd4bb491b84b45c16775fb9ed2734ff3d239d9c8 Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Mon, 10 Jul 2017 11:54:22 +0800
Subject: [PATCH] gnu: emacs: Build with imagemagick support.

* gnu/packages/emacs.scm (emacs)[inputs]: Add imagemagick.
---
 gnu/packages/emacs.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index a8bc58bb2..be71f140d 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -171,6 +171,7 @@
        ("libtiff" ,libtiff)
        ("giflib" ,giflib)
        ("libjpeg" ,libjpeg-8)
+       ("imagemagick" ,imagemagick)
        ("acl" ,acl)
 
        ;; When looking for libpng `configure' links with `-lpng -lz', so we
-- 
2.13.2


[-- Attachment #1.3: Type: text/plain, Size: 14 bytes --]


Cheers,
Alex

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* bug#27635: [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-10  4:04 [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support Alex Vong
@ 2017-07-10  9:50 ` Arun Isaac
  2017-07-10 10:36 ` [bug#27635] " Ludovic Courtès
  1 sibling, 0 replies; 10+ messages in thread
From: Arun Isaac @ 2017-07-10  9:50 UTC (permalink / raw)
  To: Alex Vong; +Cc: 27635-done


Pushed, thanks!

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-10  4:04 [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support Alex Vong
  2017-07-10  9:50 ` bug#27635: " Arun Isaac
@ 2017-07-10 10:36 ` Ludovic Courtès
  2017-07-11  5:28   ` Arun Isaac
                     ` (3 more replies)
  1 sibling, 4 replies; 10+ messages in thread
From: Ludovic Courtès @ 2017-07-10 10:36 UTC (permalink / raw)
  To: Alex Vong; +Cc: 27635

Hi Alex,

Alex Vong <alexvong1995@gmail.com> skribis:

> Currently, Emacs cannot resize image in image-mode because it lacks
> imagemagick support. This patch adds it:

That’s good news, I always wonder whether/how this could be fixed.  :-)

It noticeably increases the size of the Emacs closure though:

--8<---------------cut here---------------start------------->8---
$ guix size emacs |tail -1
total: 795.1 MiB
$ guix size emacs imagemagick |tail -1
total: 904.4 MiB
--8<---------------cut here---------------end--------------->8---

There a few big packages showing up in the profile; we should try to
make them smaller, perhaps by introducing separate outputs:

--8<---------------cut here---------------start------------->8---
$ guix size imagemagick 
store item                                                       total    self
/gnu/store/rcwblby3chpyhqxawxh3b8ykllsx9pik-imagemagick-6.9.8-10   394.1    19.6   5.0%
/gnu/store/szar30hn9qh7g6ib89rck1sswd44mm5x-graphviz-2.38.0        306.2    62.0  15.7%
/gnu/store/kqn8ib1hnlxhkb64bn1ggh1rp0xxidyv-pango-1.40.6           212.0     3.9   1.0%
/gnu/store/1x8x3bddq7pki89kyqlyx3g7dhkvviki-harfbuzz-1.4.6         181.9     2.4   0.6%
/gnu/store/4k53v34ja39r4rb08km0piak1c65nrkn-cairo-1.14.8           152.1     6.0   1.5%
/gnu/store/17d0ywzd9cp3qsbwc6j6h8cnwh4rplj5-ghostscript-9.14.0     140.2    19.1   4.9%
/gnu/store/rmb4nh95s22lnd42sarzj5bswakd3mxx-icu4c-58.2             134.0    34.9   8.9%
--8<---------------cut here---------------end--------------->8---

Thoughts?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-10 10:36 ` [bug#27635] " Ludovic Courtès
@ 2017-07-11  5:28   ` Arun Isaac
       [not found]   ` <4065ab44.AEMAM2ovFI4AAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZGIV@mailjet.com>
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Arun Isaac @ 2017-07-11  5:28 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alex Vong, 27635


Ludovic Courtès writes:

> There a few big packages showing up in the profile; we should try to
> make them smaller, perhaps by introducing separate outputs:
> Thoughts?

I have to go through the dependency tree carefully to figure out which
package to split. Do you have any suggestions off the bat?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
       [not found]   ` <4065ab44.AEMAM2ovFI4AAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZGIV@mailjet.com>
@ 2017-07-11  8:29     ` Ludovic Courtès
  2017-07-11 13:16       ` Alex Vong
  2017-07-11 21:31       ` Arun Isaac
  0 siblings, 2 replies; 10+ messages in thread
From: Ludovic Courtès @ 2017-07-11  8:29 UTC (permalink / raw)
  To: Arun Isaac; +Cc: Alex Vong, 27635

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Ludovic Courtès writes:
>
>> There a few big packages showing up in the profile; we should try to
>> make them smaller, perhaps by introducing separate outputs:
>> Thoughts?
>
> I have to go through the dependency tree carefully to figure out which
> package to split. Do you have any suggestions off the bat?

ImageMagick and Graphviz are pretty big.  For the latter, ISTR there are
a couple of executables that are surprisingly big; perhaps the solution
would be to figure out why it is the case and strip them somehow, if
possible.

Ghostscript and icu4c are also rather big.

Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-11  8:29     ` Ludovic Courtès
@ 2017-07-11 13:16       ` Alex Vong
  2017-07-11 14:42         ` Ludovic Courtès
  2017-07-11 21:31       ` Arun Isaac
  1 sibling, 1 reply; 10+ messages in thread
From: Alex Vong @ 2017-07-11 13:16 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 27635

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

ludo@gnu.org (Ludovic Courtès) writes:

> Arun Isaac <arunisaac@systemreboot.net> skribis:
>
>> Ludovic Courtès writes:
>>
>>> There a few big packages showing up in the profile; we should try to
>>> make them smaller, perhaps by introducing separate outputs:
>>> Thoughts?
>>
>> I have to go through the dependency tree carefully to figure out which
>> package to split. Do you have any suggestions off the bat?
>
> ImageMagick and Graphviz are pretty big.  For the latter, ISTR there are
> a couple of executables that are surprisingly big; perhaps the solution
> would be to figure out why it is the case and strip them somehow, if
> possible.
>
> Ghostscript and icu4c are also rather big.
>
How about making a tiny version of imagemagick excluding ghostscript?
The emacs manual[0] says ghostscript is a hard requirement for
postscript files. If users don't need to render postscript files, then
we don't need it, right?

> Ludo’.

[0]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Document-View.html#fnd-1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-10 10:36 ` [bug#27635] " Ludovic Courtès
  2017-07-11  5:28   ` Arun Isaac
       [not found]   ` <4065ab44.AEMAM2ovFI4AAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZGIV@mailjet.com>
@ 2017-07-11 14:12   ` Arun Isaac
       [not found]   ` <8fa36bff.AEEANLsStFwAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZNy9@mailjet.com>
  3 siblings, 0 replies; 10+ messages in thread
From: Arun Isaac @ 2017-07-11 14:12 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alex Vong, 27635


Ludovic Courtès writes:

> Thoughts?

Some preliminary thoughts:

`guix size emacs' lists cups, cups-minimal, ghostscript and
ghostscript-with-cups as dependencies. Can't we do with just cups and
ghostscript, or just cups-minimal and ghostscript?

Also, there are two builds (different hashes) of cairo-1.14.8 listed.

Is it acceptable to build gtk+ with cups-minimal, instead of cups?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-11 13:16       ` Alex Vong
@ 2017-07-11 14:42         ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2017-07-11 14:42 UTC (permalink / raw)
  To: Alex Vong; +Cc: 27635

Alex Vong <alexvong1995@gmail.com> skribis:

> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Arun Isaac <arunisaac@systemreboot.net> skribis:
>>
>>> Ludovic Courtès writes:
>>>
>>>> There a few big packages showing up in the profile; we should try to
>>>> make them smaller, perhaps by introducing separate outputs:
>>>> Thoughts?
>>>
>>> I have to go through the dependency tree carefully to figure out which
>>> package to split. Do you have any suggestions off the bat?
>>
>> ImageMagick and Graphviz are pretty big.  For the latter, ISTR there are
>> a couple of executables that are surprisingly big; perhaps the solution
>> would be to figure out why it is the case and strip them somehow, if
>> possible.
>>
>> Ghostscript and icu4c are also rather big.
>>
> How about making a tiny version of imagemagick excluding ghostscript?
> The emacs manual[0] says ghostscript is a hard requirement for
> postscript files. If users don't need to render postscript files, then
> we don't need it, right?

As someone who uses DocView, I’d like to keep it.  :-)

In general I think we should work more on making our packages smaller,
but not at the cost of useful features.

Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
       [not found]   ` <8fa36bff.AEEANLsStFwAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZNy9@mailjet.com>
@ 2017-07-11 14:44     ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2017-07-11 14:44 UTC (permalink / raw)
  To: Arun Isaac; +Cc: Alex Vong, 27635

Arun Isaac <arunisaac@systemreboot.net> skribis:

> Ludovic Courtès writes:
>
>> Thoughts?
>
> Some preliminary thoughts:
>
> `guix size emacs' lists cups, cups-minimal, ghostscript and
> ghostscript-with-cups as dependencies. Can't we do with just cups and
> ghostscript, or just cups-minimal and ghostscript?
>
> Also, there are two builds (different hashes) of cairo-1.14.8 listed.
>
> Is it acceptable to build gtk+ with cups-minimal, instead of cups?

I’m not sure, but I guess not (cups depends on cups-filters, which
depends on cups-minimal IIRC).

I suggest looking at “guix graph -t references emacs” to get an idea of
where things come from.  Stripping a dependency graph can be tricky!

Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support.
  2017-07-11  8:29     ` Ludovic Courtès
  2017-07-11 13:16       ` Alex Vong
@ 2017-07-11 21:31       ` Arun Isaac
  1 sibling, 0 replies; 10+ messages in thread
From: Arun Isaac @ 2017-07-11 21:31 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Alex Vong, 27635


Ludovic Courtès writes:

> ImageMagick and Graphviz are pretty big.  For the latter, ISTR there are
> a couple of executables that are surprisingly big;

Upgrading graphviz fixes this problem (whatever it was!). I have
submitted a patch for the same.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27657

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-07-11 21:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-10  4:04 [bug#27635] [PATCH] gnu: emacs: Build with imagemagick support Alex Vong
2017-07-10  9:50 ` bug#27635: " Arun Isaac
2017-07-10 10:36 ` [bug#27635] " Ludovic Courtès
2017-07-11  5:28   ` Arun Isaac
     [not found]   ` <4065ab44.AEMAM2ovFI4AAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZGIV@mailjet.com>
2017-07-11  8:29     ` Ludovic Courtès
2017-07-11 13:16       ` Alex Vong
2017-07-11 14:42         ` Ludovic Courtès
2017-07-11 21:31       ` Arun Isaac
2017-07-11 14:12   ` Arun Isaac
     [not found]   ` <8fa36bff.AEEANLsStFwAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZZNy9@mailjet.com>
2017-07-11 14:44     ` Ludovic Courtès

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.