[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: |
Fri, 03 Jul 2015 13:36:14 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 6a52df505ad7d6d5026ea616dc9cc48b31d65011
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 master updated (4a6aeb6 -> 606c638), Ludovic Courtès, 2015/07/03
- 03/09: gnu: mysql: Strip references and GCC and other build-time dependencies., Ludovic Courtès, 2015/07/03
- 07/09: gnu: qt-4: Use a more standard directory layout., Ludovic Courtès, 2015/07/03
- 09/09: gnu: gnutls: Move man3 pages to "doc" output., Ludovic Courtès, 2015/07/03
- 02/09: gnu: mutt: Don't retain reference to GCC., Ludovic Courtès, 2015/07/03
- 01/09: gnu: ghostscript: Add "doc" output., Ludovic Courtès, 2015/07/03
- 04/09: gnu: mysql: Remove unnecessary binaries.,
Ludovic Courtès <=
- 06/09: gnu: qt-4: Use 'modify-phases'., Ludovic Courtès, 2015/07/03
- 05/09: gnu: cups-filter: Install backends and filters under lib/cups., Ludovic Courtès, 2015/07/03
- 08/09: gnu: qt-4: Remove reference from "out" to "doc"., Ludovic Courtès, 2015/07/03