[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: gnu: perl: Strip the DSOs.
From: |
Ludovic Courtès |
Subject: |
04/08: gnu: perl: Strip the DSOs. |
Date: |
Thu, 04 Jun 2015 16:08:39 +0000 |
civodul pushed a commit to branch core-updates
in repository guix.
commit 696062b1f06194f6c276ff6889ce2f19b1755eaf
Author: Ludovic Courtès <address@hidden>
Date: Thu Jun 4 11:24:07 2015 +0200
gnu: perl: Strip the DSOs.
* gnu/packages/perl.scm (perl)[arguments]: Add
'make-shared-objects-writable'
phase.
---
gnu/packages/perl.scm | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 5ace05d..09e5757 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -72,7 +72,18 @@
"-Dinstallstyle=lib/perl5"
"-Duseshrplib"
(string-append "-Dlocincpth=" libc "/include")
- (string-append "-Dloclibpth=" libc "/lib")))))))))
+ (string-append "-Dloclibpth=" libc "/lib"))))))
+
+ (add-before
+ 'strip 'make-shared-objects-writable
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; The 'lib/perl5' directory contains ~50 MiB of .so. Make them
+ ;; writable so that 'strip' actually strips them.
+ (let* ((out (assoc-ref outputs "out"))
+ (lib (string-append out "/lib")))
+ (for-each (lambda (dso)
+ (chmod dso #o755))
+ (find-files lib "\\.so$"))))))))
(native-search-paths (list (search-path-specification
(variable "PERL5LIB")
(files '("lib/perl5/site_perl")))))
- branch core-updates updated (20a9466 -> 8d866b9), Ludovic Courtès, 2015/06/04
- 01/08: gnu: gawk: Update to 4.1.3., Ludovic Courtès, 2015/06/04
- 04/08: gnu: perl: Strip the DSOs.,
Ludovic Courtès <=
- 03/08: gnu: perl: Use 'modify-phases'., Ludovic Courtès, 2015/06/04
- 05/08: gnu: findutils: Use /var as the localstatedir, for 'updatedb'., Ludovic Courtès, 2015/06/04
- 06/08: gnu: linux-libre-headers: Do not retain reference to the bootstrap tools., Ludovic Courtès, 2015/06/04
- 02/08: gnu: gcc: Move patch upstream status in the patch itself., Ludovic Courtès, 2015/06/04
- 07/08: gnu: Switch to GCC 4.9 as the default compiler., Ludovic Courtès, 2015/06/04
- 08/08: gnu: Switch to GCC 4.9 as the default cross-compiler., Ludovic Courtès, 2015/06/04