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:
parent
8754ea483d
commit
2529c8381f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue