gnu: dvd+rw-tools: Fix building with glibc@2.28.

* gnu/packages/cdrom.scm (dvd+rw-tools)[arguments]: Add custom phase to
add missing import.
This commit is contained in:
Efraim Flashner 2018-11-10 19:57:26 +02:00
parent 8754ea483d
commit 2529c8381f
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 9 additions and 0 deletions

View File

@ -291,6 +291,15 @@ images.")
`(#:tests? #f ; No tests. `(#:tests? #f ; No tests.
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-glibc-compatability
(lambda* (#:key inputs #:allow-other-keys)
;; We use sed --in-place because substitute* cannot handle the
;; character encoding used by growisofs.c.
(invoke "sed" "-i" "-e"
(string-append
"s,<sys/stat.h>,"
"<sys/stat.h>\\\n#include <sys/sysmacros.h>,")
"growisofs.c")))
(replace 'configure (replace 'configure
(lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t)) (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
(add-before 'build 'embed-mkisofs (add-before 'build 'embed-mkisofs