From c4df90a594672042ae106730ab5ce07fe85cf46f Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Thu, 31 Jul 2014 18:19:22 -0400 Subject: [PATCH] gnu: gccgo: Suppress the separate "lib" output. Fixes . * gnu/packages/gcc.scm (custom-gcc): Add 'separate-lib-output?' keyword argument. (gccgo-4.8): Pass #:separate-lib-output? #f to 'custom-gcc'. --- gnu/packages/gcc.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index aed2e8925e..938c38e670 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -281,10 +281,13 @@ (define-public gcc-4.9 (base32 "0zki3ngi0gsidnmsp88mjl2868cc7cm5wm1vwqw6znja28d7hd6k")))))) -(define (custom-gcc gcc name languages) +(define* (custom-gcc gcc name languages #:key (separate-lib-output? #t)) "Return a custom version of GCC that supports LANGUAGES." (package (inherit gcc) (name name) + (outputs (if separate-lib-output? + (package-outputs gcc) + (delete "lib" (package-outputs gcc)))) (arguments (substitute-keyword-arguments `(#:modules ((guix build gnu-build-system) (guix build utils) @@ -302,7 +305,11 @@ (define-public gfortran-4.8 (custom-gcc gcc-4.8 "gfortran" '("fortran"))) (define-public gccgo-4.8 - (custom-gcc gcc-4.8 "gccgo" '("go"))) + (custom-gcc gcc-4.8 "gccgo" '("go") + ;; Suppress the separate "lib" output, because otherwise the + ;; "lib" and "out" outputs would refer to each other, creating + ;; a cyclic dependency. + #:separate-lib-output? #f)) (define-public gcc-objc-4.8 (custom-gcc gcc-4.8 "gcc-objc" '("objc")))