[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/17: gnu: bzip2: Simplify phase.
From: |
Marius Bakke |
Subject: |
01/17: gnu: bzip2: Simplify phase. |
Date: |
Sun, 22 Jul 2018 12:00:09 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 5212c52ce524ebfd78fae5bc68a0499148f3bf80
Author: Marius Bakke <address@hidden>
Date: Sat Jul 14 22:11:45 2018 +0200
gnu: bzip2: Simplify phase.
* gnu/packages/compression.scm (bzip2)[arguments]: Use SCANDIR instead of
FIND-FILES when locating the shared library.
---
gnu/packages/compression.scm | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index d9d15a7..7453b07 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -246,6 +246,7 @@ file; as a result, it is often used in conjunction with
\"tar\", resulting in
(arguments
`(#:modules ((guix build gnu-build-system)
(guix build utils)
+ (ice-9 ftw)
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
@@ -274,19 +275,18 @@ file; as a result, it is often used in conjunction with
\"tar\", resulting in
;; it create all the (un)versioned symlinks, so we handle it here.
(let* ((out (assoc-ref outputs "out"))
(libdir (string-append out "/lib"))
- ;; Find the actual library (e.g. "libbz2.so.1.0.6").
- (lib (string-drop
- (car (find-files
- "."
- (lambda (file stat)
- (and (string-prefix? "./libbz2.so" file)
- (eq? 'regular (stat:type stat))))))
- 2))
- (soversion (string-drop lib (string-length "libbz2.so."))))
+ (soname "libbz2.so")
+ ;; Locate the built library (e.g. "libbz2.so.1.0.6").
+ (lib (car (scandir "."
+ (lambda (file)
+ (and (string-prefix? soname file)
+ (eq? 'regular
+ (stat:type (lstat
file))))))))
+ (soversion (string-drop lib (+ 1 (string-length soname)))))
(install-file lib libdir)
(with-directory-excursion libdir
;; Create symlinks libbz2.so.1 -> libbz2.so.1.0, etc.
- (let loop ((base "libbz2.so")
+ (let loop ((base soname)
(numbers (string-split soversion #\.)))
(unless (null? numbers)
(let ((so-file (string-append base "." (car numbers))))
- branch core-updates updated (49b92a2 -> 3e95125), Marius Bakke, 2018/07/22
- 02/17: gnu: bzip2: Add static output., Marius Bakke, 2018/07/22
- 01/17: gnu: bzip2: Simplify phase.,
Marius Bakke <=
- 04/17: gnu: pcre: Install static libraries to separate output., Marius Bakke, 2018/07/22
- 06/17: gnu: libgc: Update to 7.6.6., Marius Bakke, 2018/07/22
- 10/17: gnu: libuv: Update to 1.22.0., Marius Bakke, 2018/07/22
- 03/17: gnu: binutils: Update to 2.31.1., Marius Bakke, 2018/07/22
- 14/17: gnu: pango: Update to 1.42.2., Marius Bakke, 2018/07/22
- 05/17: gnu: fftw: Update to 3.3.8., Marius Bakke, 2018/07/22
- 08/17: gnu: readline: Update to 7.0.5., Marius Bakke, 2018/07/22
- 15/17: gnu: util-linux: Update to 2.32.1., Marius Bakke, 2018/07/22
- 09/17: gnu: texinfo: Fix FTBFS with Perl 5.28., Marius Bakke, 2018/07/22
- 13/17: gnu: harfbuzz: Update to 1.8.4., Marius Bakke, 2018/07/22