summary refs log tree commit diff
path: root/gnu/packages/cdrom.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2018-11-10 19:57:26 +0200
committerEfraim Flashner <efraim@flashner.co.il>2018-11-10 19:59:27 +0200
commit2529c8381f622b78b02e53a4e95dd6ad65b1f8e4 (patch)
treea11da18053ca5c949bc4b4ee6a8bf67df9b54bde /gnu/packages/cdrom.scm
parent8754ea483dbdac7eef8e885d6bd8c28b4a8a5373 (diff)
downloadguix-2529c8381f622b78b02e53a4e95dd6ad65b1f8e4.tar.gz
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.
Diffstat (limited to 'gnu/packages/cdrom.scm')
-rw-r--r--gnu/packages/cdrom.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/cdrom.scm b/gnu/packages/cdrom.scm
index d8dc9ee6f9..992c204d2f 100644
--- a/gnu/packages/cdrom.scm
+++ b/gnu/packages/cdrom.scm
@@ -291,6 +291,15 @@ images.")
      `(#:tests? #f ; No tests.
        #: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
            (lambda _ (setenv "prefix" (assoc-ref %outputs "out")) #t))
          (add-before 'build 'embed-mkisofs