~ruther/guix-local

e420308f292cc55bbc21d0907a3a02779b4527e1 — Ludovic Courtès 12 years ago fd3bfc4
gnu: xorg-server: Use /var as $localstatedir.

* gnu/packages/xorg.scm (xorg-server): Pass --localstatedir=/var.  In
  'configure' phase, patch 'hw/xfree86/Makefile.in'.
1 files changed, 10 insertions(+), 1 deletions(-)

M gnu/packages/xorg.scm
M gnu/packages/xorg.scm => gnu/packages/xorg.scm +10 -1
@@ 4377,7 4377,10 @@ tracking.")
                                    ; the compiled keyboard maps go?
             (string-append "--with-xkb-bin-directory="
                            (assoc-ref %build-inputs "xkbcomp")
                            "/bin"))
                            "/bin")

             ;; For the log file, etc.
             "--localstatedir=/var")
       #:phases
        (alist-replace
         'configure


@@ 4385,6 4388,12 @@ tracking.")
           (let ((configure (assoc-ref %standard-phases 'configure)))
             (substitute* (find-files "." "\\.c$")
               (("/bin/sh") (which "sh")))

             ;; Don't try to 'mkdir /var'.
             (substitute* "hw/xfree86/Makefile.in"
               (("mkdir(.*)logdir.*")
                "true\n"))

             (apply configure args)))
         %standard-phases)))
    (home-page "http://www.x.org/wiki/")