[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: python: Make sure shared libraries are stripped.
From: |
Ludovic Courtès |
Subject: |
03/03: gnu: python: Make sure shared libraries are stripped. |
Date: |
Tue, 10 May 2016 14:51:10 +0000 (UTC) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 216c283b0adf0357032019ff73b5d14cff109612
Author: Ludovic Courtès <address@hidden>
Date: Tue May 10 09:04:40 2016 +0200
gnu: python: Make sure shared libraries are stripped.
* gnu/packages/python.scm (python-2)[arguments]: Add
'make-libraries-writable' phase.
---
gnu/packages/python.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f09ff96..adef5e6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -223,6 +223,15 @@
file))))))
(call-with-output-file "__init__.py" (const #t))
#t)))))))
+ (add-before 'strip 'make-libraries-writable
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Make .so files writable so they can be stripped.
+ (let ((out (assoc-ref outputs "out")))
+ (for-each (lambda (file)
+ (chmod file #o755))
+ (find-files (string-append out "/lib")
+ "\\.so"))
+ #t)))
(add-after 'install 'move-tk-inter
(lambda* (#:key outputs #:allow-other-keys)
;; When Tkinter support is built move it to a separate output so