guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/09: gnu: mysql: Remove unnecessary binaries.


From: Ludovic Courtès
Subject: 04/09: gnu: mysql: Remove unnecessary binaries.
Date: Tue, 30 Jun 2015 14:07:18 +0000

civodul pushed a commit to branch wip-diet
in repository guix.

commit ecd1408bc7b132f86d3ccc00d8b4df8d5c22f135
Author: Ludovic Courtès <address@hidden>
Date:   Sat Jun 27 10:13:39 2015 +0200

    gnu: mysql: Remove unnecessary binaries.
    
    This saves ~42 MiB on x86_64.
    
    * gnu/packages/databases.scm (mysql)[arguments]: Add 'remove-extra-binaries'
      phase.
---
 gnu/packages/databases.scm |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 5185e3e..55b155f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -145,6 +145,16 @@ SQL, Key/Value, XML/XQuery or Java Object storage for 
their data model.")
                                  (list (string-append out "/bin/mysqlbug")
                                        (string-append
                                         out "/share/mysql/docs/INFO_BIN")))
+                       #t)))
+                  (add-after
+                   'install 'remove-extra-binaries
+                   (lambda* (#:key outputs #:allow-other-keys)
+                     (let ((out (assoc-ref outputs "out")))
+                       ;; Remove the 3 *_embedded files, which weigh in at
+                       ;; 14 MiB each.
+                       (for-each delete-file
+                                 (find-files (string-append out "/bin")
+                                             "_embedded$"))
                        #t))))))
     (native-inputs
      `(("bison" ,bison)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]