unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40117] [PATCH] gnu: make-libiberty: use install-file.
@ 2020-03-18  7:54 guy fleury iteriteka
  2020-03-20 17:46 ` bug#40117: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: guy fleury iteriteka @ 2020-03-18  7:54 UTC (permalink / raw)
  To: 40117; +Cc: guy fleury iteriteka

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=y, Size: 2117 bytes --]

* gnu/packages/gcc.scm(make-libiberty): In phase install use
  install-file helper function to install file.
---
 gnu/packages/gcc.scm | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 08afd80358..d170ae9175 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
+;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -578,22 +579,17 @@ using compilers other than GCC."
        #:phases
        (modify-phases %standard-phases
          (add-before 'configure 'chdir
-                     (lambda _
-                       (chdir "libiberty")
-                       #t))
-         (replace
-          'install
-          (lambda* (#:key outputs #:allow-other-keys)
-            (let* ((out     (assoc-ref outputs "out"))
-                   (lib     (string-append out "/lib/"))
-                   (include (string-append out "/include/")))
-              (mkdir-p lib)
-              (mkdir-p include)
-              (copy-file "libiberty.a"
-                         (string-append lib "libiberty.a"))
-              (copy-file "../include/libiberty.h"
-                         (string-append include "libiberty.h"))
-              #t))))))
+           (lambda _
+             (chdir "libiberty")
+             #t))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out     (assoc-ref outputs "out"))
+                    (lib     (string-append out "/lib/"))
+                    (include (string-append out "/include/")))
+               (install-file "libiberty.a" lib)
+               (install-file "../include/libiberty.h" include))
+             #t)))))
     (inputs '())
     (outputs '("out"))
     (native-inputs '())
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#40117: [PATCH] gnu: make-libiberty: use install-file.
  2020-03-18  7:54 [bug#40117] [PATCH] gnu: make-libiberty: use install-file guy fleury iteriteka
@ 2020-03-20 17:46 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2020-03-20 17:46 UTC (permalink / raw)
  To: guy fleury iteriteka, 40117-done

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

guy fleury iteriteka <gfleury@disroot.org> writes:

> * gnu/packages/gcc.scm(make-libiberty): In phase install use
>   install-file helper function to install file.

Applied, thank you!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-20 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18  7:54 [bug#40117] [PATCH] gnu: make-libiberty: use install-file guy fleury iteriteka
2020-03-20 17:46 ` bug#40117: " Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).