gnu: fprintd: Provide the right file name for 'fprintd.conf'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 11 Jan 2017 21:59:49 +0000 (22:59 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 11 Jan 2017 22:01:54 +0000 (23:01 +0100)
* gnu/packages/freedesktop.scm (fprintd)[arguments]: New field.

gnu/packages/freedesktop.scm

index 9cfb987..66060ea 100644 (file)
@@ -853,6 +853,18 @@ software.")
                (base32
                 "05915i0bv7q62fqrs5diqwr8dz3pwqa1c1ivcgggkjyw0xk4ldp5"))))
     (build-system gnu-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (add-before 'build 'set-sysconfdir
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      ;; Work around a bug whereby the 'SYSCONFDIR' macro
+                      ;; expands literally to '${prefix}/etc'.
+                      (let ((out (assoc-ref outputs "out")))
+                        (substitute* "src/main.c"
+                          (("SYSCONFDIR, \"fprintd.conf\"")
+                           (string-append "\"" out "/etc\", "
+                                          "\"fprintd.conf\"")))
+                        #t))))))
     (native-inputs
      `(("pkg-config" ,pkg-config)
        ("intltool" ,intltool)))