diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-04-10 23:16:08 +0300 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-12 08:29:36 -0400 |
commit | 4f7a0695cac56f509df1715c09111504866507d8 (patch) | |
tree | cdcd5015293843cfebe5c61cc8ad77f26d982a3f /gnu | |
parent | 54372b289a549bf9fa0f1954b9ef084045cf7e39 (diff) | |
download | guix-4f7a0695cac56f509df1715c09111504866507d8.tar.gz guix-4f7a0695cac56f509df1715c09111504866507d8.zip |
gnu: qpdf: Fix cross-building.
* gnu/packages/pdf.scm (qpdf)[arguments]: When cross-building add
configure-flags to set /dev/random and /dev/urandom as existing.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/pdf.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index dd1064bd6c..17637af0f6 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -910,7 +910,13 @@ line tools for batch rendering @command{pdfdraw}, rewriting files "0yw2cpw7ygfd6jlgpwbi8vsnvv9p55zxp9h17x77z2qq733pf8jx")))) (build-system gnu-build-system) (arguments - `(#:disallowed-references (,perl) + `(#:configure-flags '(,@(if (%current-target-system) + ;; We cannot check for these devices + ;; when cross compiling. + `("ac_cv_file__dev_random=yes" + "ac_cv_file__dev_urandom=yes") + '())) + #:disallowed-references (,perl) #:phases (modify-phases %standard-phases (add-before 'configure 'patch-paths |