From: Leo Famulari <leo@famulari.name>
To: 27120@debbugs.gnu.org
Subject: bug#27120: [PATCH] gnu: graphicsmagick: Remove bundled libraries from source checkout.
Date: Sun, 28 May 2017 18:03:18 -0400 [thread overview]
Message-ID: <412084db1c7a91e590784f5ec8b3941c0c416819.1496008998.git.leo@famulari.name> (raw)
In-Reply-To: <20170528202321.GA31713@jasmine>
Fixes <https://bugs.gnu.org/27120>.
* gnu/packages/imagemagick.scm (graphicsmagick)[source]: Add a snippet
to delete bundled libraries.
[version]: Bump the package revision counter to 3.
---
gnu/packages/imagemagick.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/imagemagick.scm b/gnu/packages/imagemagick.scm
index bde3ebe40..3f7d95c2e 100644
--- a/gnu/packages/imagemagick.scm
+++ b/gnu/packages/imagemagick.scm
@@ -163,7 +163,7 @@ script.")
(define-public graphicsmagick
(let ((changeset "6156b4c2992d855ece6079653b3b93c3229fc4b8") ; fix CVE-2017-6335
- (revision "2"))
+ (revision "3"))
(package
(name "graphicsmagick")
(version (string-append "1.3.25-" revision "."
@@ -180,7 +180,20 @@ script.")
;; "/GraphicsMagick-" version ".tar.xz"))
(sha256
(base32
- "08yfsn8mrqkwpax43vv1crfr55rcf004wwpzsinr5c6m0asqr08b"))))
+ "08yfsn8mrqkwpax43vv1crfr55rcf004wwpzsinr5c6m0asqr08b"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove bundled software. This reduces the size of the
+ ;; build source checkout from 177 MiB to 49 MiB. This should
+ ;; not be necessary when using the GraphicsMagick release
+ ;; tarball, because these files are not distributed there.
+ (for-each delete-file-recursively '("bzlib" "dcraw" "hp2xx"
+ "jbig" "jp2" "jpeg"
+ "lcms" "libxml" "png"
+ "ralcgm" "tiff" "ttf"
+ "webp" "wmf" "xlib"
+ "zlib"))))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
--
2.13.0
next prev parent reply other threads:[~2017-05-28 22:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-28 20:23 bug#27120: GraphicsMagick bundles libtiff, libpng, zlib, libxml2, and more Leo Famulari
2017-05-28 21:26 ` Leo Famulari
2017-05-28 22:03 ` Leo Famulari [this message]
2017-05-30 15:08 ` bug#27120: [PATCH] gnu: graphicsmagick: Remove bundled libraries from source checkout 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=412084db1c7a91e590784f5ec8b3941c0c416819.1496008998.git.leo@famulari.name \
--to=leo@famulari.name \
--cc=27120@debbugs.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.