From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#27120: [PATCH] gnu: graphicsmagick: Remove bundled libraries from source checkout. Date: Sun, 28 May 2017 18:03:18 -0400 Message-ID: <412084db1c7a91e590784f5ec8b3941c0c416819.1496008998.git.leo@famulari.name> References: <20170528202321.GA31713@jasmine> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF6IB-0006Zv-AK for bug-guix@gnu.org; Sun, 28 May 2017 18:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dF6I6-0004h3-Cm for bug-guix@gnu.org; Sun, 28 May 2017 18:04:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dF6I5-0004gn-V8 for bug-guix@gnu.org; Sun, 28 May 2017 18:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dF6I5-00054z-JK for bug-guix@gnu.org; Sun, 28 May 2017 18:04:01 -0400 In-Reply-To: <20170528202321.GA31713@jasmine> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 27120@debbugs.gnu.org Fixes . * 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