gnu: sra-tools: Fix build on i686.

* gnu/packages/bioinformatics.scm (sra-tools)[arguments]: Pass
"VDB_LIBDIR" in make-flags; dynamically link libmagic.
This commit is contained in:
Ricardo Wurmus 2016-09-28 22:28:51 +02:00
parent 37042a0fb4
commit 2320e76b82
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

@ -4580,6 +4580,14 @@ sequence itself can be retrieved from these databases.")
(arguments
`(#:parallel-build? #f ; not supported
#:tests? #f ; no "check" target
#:make-flags
(list (string-append "VDB_LIBDIR="
(assoc-ref %build-inputs "ncbi-vdb")
,(if (string-prefix? "x86_64"
(or (%current-target-system)
(%current-system)))
"/lib64"
"/lib32")))
#:phases
(alist-replace
'configure
@ -4598,6 +4606,10 @@ sequence itself can be retrieved from these databases.")
(("my \\$ilibdir = File::Spec->catdir\\(\\$builddir, 'ilib'\\);")
"my $ilibdir = File::Spec->catdir($dir, 'ilib');"))
;; Dynamic linking
(substitute* "tools/copycat/Makefile"
(("smagic-static") "lmagic"))
;; The 'configure' script doesn't recognize things like
;; '--enable-fast-install'.
(zero? (system*