summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-05-28 23:56:59 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-05-28 23:56:59 +0200
commit531940d388b08318edbf243e3e5008288b1eb60e (patch)
tree60a4bea7ef00ed050b1f19d71be993df8066acd1
parente4519ee73dfc08e72977d0788807d6150bff66c6 (diff)
downloadpatches-531940d388b08318edbf243e3e5008288b1eb60e.tar
patches-531940d388b08318edbf243e3e5008288b1eb60e.tar.gz
import: cran: Ignore invalid packages from the system requirements.
* guix/import/cran.scm (description->package): Filter invalid packages from the list of system requirements.
-rw-r--r--guix/import/cran.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 4763fccd36..3240094444 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -313,7 +313,9 @@ from the alist META, which was derived from the R package's DESCRIPTION file."
(tarball (download source-url))
(sysdepends (append
(if (needs-zlib? tarball) '("zlib") '())
- (map string-downcase (listify meta "SystemRequirements"))))
+ (filter (lambda (name)
+ (not (member name invalid-packages)))
+ (map string-downcase (listify meta "SystemRequirements")))))
(propagate (filter (lambda (name)
(not (member name (append default-r-packages
invalid-packages))))