diff options
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/base.scm | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 59a9acd67ec..8a48cadf7bf 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm | |||
| @@ -778,35 +778,33 @@ with the Linux kernel.") | |||
| 778 | ((#:phases original-phases) | 778 | ((#:phases original-phases) |
| 779 | ;; Add libmachuser.so and libhurduser.so to libc.so's search path. | 779 | ;; Add libmachuser.so and libhurduser.so to libc.so's search path. |
| 780 | ;; See <http://lists.gnu.org/archive/html/bug-hurd/2015-07/msg00051.html>. | 780 | ;; See <http://lists.gnu.org/archive/html/bug-hurd/2015-07/msg00051.html>. |
| 781 | `(alist-cons-after | 781 | `(modify-phases ,original-phases |
| 782 | 'install 'augment-libc.so | 782 | (add-after 'install 'augment-libc.so |
| 783 | (lambda* (#:key outputs #:allow-other-keys) | 783 | (lambda* (#:key outputs #:allow-other-keys) |
| 784 | (let* ((out (assoc-ref outputs "out"))) | 784 | (let* ((out (assoc-ref outputs "out"))) |
| 785 | (substitute* (string-append out "/lib/libc.so") | 785 | (substitute* (string-append out "/lib/libc.so") |
| 786 | (("/[^ ]+/lib/libc.so.0.3") | 786 | (("/[^ ]+/lib/libc.so.0.3") |
| 787 | (string-append out "/lib/libc.so.0.3" " libmachuser.so" " libhurduser.so")))) | 787 | (string-append out "/lib/libc.so.0.3" " libmachuser.so" " libhurduser.so")))) |
| 788 | #t) | 788 | #t)) |
| 789 | (alist-cons-after | 789 | (add-after 'pre-configure 'pre-configure-set-pwd |
| 790 | 'pre-configure 'pre-configure-set-pwd | 790 | (lambda _ |
| 791 | (lambda _ | 791 | ;; Use the right 'pwd'. |
| 792 | ;; Use the right 'pwd'. | 792 | (substitute* "configure" |
| 793 | (substitute* "configure" | 793 | (("/bin/pwd") "pwd")) |
| 794 | (("/bin/pwd") "pwd"))) | 794 | #t)) |
| 795 | (alist-replace | 795 | (replace 'build |
| 796 | 'build | 796 | (lambda _ |
| 797 | (lambda _ | 797 | ;; Force mach/hurd/libpthread subdirs to build first in order to avoid |
| 798 | ;; Force mach/hurd/libpthread subdirs to build first in order to avoid | 798 | ;; linking errors. |
| 799 | ;; linking errors. | 799 | ;; See <https://lists.gnu.org/archive/html/bug-hurd/2016-11/msg00045.html> |
| 800 | ;; See <https://lists.gnu.org/archive/html/bug-hurd/2016-11/msg00045.html> | 800 | (let ((-j (list "-j" (number->string (parallel-job-count))))) |
| 801 | (let ((-j (list "-j" (number->string (parallel-job-count))))) | 801 | (let-syntax ((make (syntax-rules () |
| 802 | (let-syntax ((make (syntax-rules () | 802 | ((_ target) |
| 803 | ((_ target) | 803 | (zero? (apply system* "make" target -j)))))) |
| 804 | (zero? (apply system* "make" target -j)))))) | 804 | (and (make "mach/subdir_lib") |
| 805 | (and (make "mach/subdir_lib") | 805 | (make "hurd/subdir_lib") |
| 806 | (make "hurd/subdir_lib") | 806 | (make "libpthread/subdir_lib") |
| 807 | (make "libpthread/subdir_lib") | 807 | (zero? (apply system* "make" -j))))))))) |
| 808 | (zero? (apply system* "make" -j)))))) | ||
| 809 | ,original-phases)))) | ||
| 810 | ((#:configure-flags original-configure-flags) | 808 | ((#:configure-flags original-configure-flags) |
| 811 | `(append (list "--host=i586-pc-gnu" | 809 | `(append (list "--host=i586-pc-gnu" |
| 812 | 810 | ||
