[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: gnu: mysql: Remove unnecessary binaries.
From: |
Ludovic Courtès |
Subject: |
04/08: gnu: mysql: Remove unnecessary binaries. |
Date: |
Sat, 27 Jun 2015 19:39:15 +0000 |
civodul pushed a commit to branch wip-diet
in repository guix.
commit 002f431947d5aee7b232a215d3db47a9d05e7a5e
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)
- branch wip-diet created (now 887dec8), Ludovic Courtès, 2015/06/27
- 02/08: gnu: mutt: Don't retain reference to GCC., Ludovic Courtès, 2015/06/27
- 01/08: gnu: ghostscript: Add "doc" output., Ludovic Courtès, 2015/06/27
- 05/08: gnu: cups-filter: Install backends and filters under lib/cups., Ludovic Courtès, 2015/06/27
- 06/08: gnu: qt-4: Use 'modify-phases'., Ludovic Courtès, 2015/06/27
- 07/08: gnu: qt-4: Use a more standard directory layout., Ludovic Courtès, 2015/06/27
- 03/08: gnu: mysql: Strip references and GCC and other build-time dependencies., Ludovic Courtès, 2015/06/27
- 04/08: gnu: mysql: Remove unnecessary binaries.,
Ludovic Courtès <=
- 08/08: gnu: qt-4: Remove reference from "out" to "doc"., Ludovic Courtès, 2015/06/27