~ruther/guix-local

62ea8865257a156625554dfd1e0418dc220e3c20 — Ludovic Courtès 10 years ago 92226a4
gnu: coreutils: Drop dependency on libcap when cross-compiling.

* gnu/packages/base.scm (coreutils)[inputs]: Drop LIBCAP
  when (%current-target-system) is true.
1 files changed, 6 insertions(+), 1 deletions(-)

M gnu/packages/base.scm
M gnu/packages/base.scm => gnu/packages/base.scm +6 -1
@@ 249,7 249,12 @@ used to apply commands with arbitrarily long arguments.")
   (build-system gnu-build-system)
   (inputs `(("acl"  ,acl)                        ; TODO: add SELinux
             ("gmp"  ,gmp)                        ;bignums in 'expr', yay!
             ("libcap" ,libcap)))    ;capability support is 'ls','dir', 'vdir'

             ;; Drop the dependency on libcap when cross-compiling since it's
             ;; not quite cross-compilable.
             ,@(if (%current-target-system)
                   '()
                   `(("libcap" ,libcap)))))  ;capability support is 'ls', etc.
   (native-inputs
    ;; Perl is needed to run tests in native builds, and to run the bundled
    ;; copy of help2man.  However, don't pass it when cross-compiling since