gnu: xorg: Fix xorg-server.

* gnu/packages/xorg.scm (xkbcomp-intermediate): New variable, serves as
    input to xkeyboard-config.
* gnu/packages/xorg.scm (xkeyboard-config): Add input xkbcomp-intermediate.
* gnu/packages/xorg.scm (xkbcomp): Add input xkeyboard-config.
* gnu/packages/xorg.scm (xorg-server): Adapt xkb paths and replace references
    to /bin/sh (with Ludovic Courtès <ludo@gnu.org>).
This commit is contained in:
Andreas Enge 2013-09-24 21:56:33 +02:00
parent caf96debc2
commit 2365338b18
1 changed files with 39 additions and 7 deletions

View File

@ -29,11 +29,11 @@
#:use-module ((gnu packages gettext) #:use-module ((gnu packages gettext)
#:renamer (symbol-prefix-proc 'gnu:)) #:renamer (symbol-prefix-proc 'gnu:))
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages gperf) #:use-module (gnu packages gperf)
#:use-module (gnu packages libpng) #:use-module (gnu packages libpng)
#:use-module (gnu packages linux) #:use-module (gnu packages linux)
#:use-module (gnu packages m4) #:use-module (gnu packages m4)
#:use-module (gnu packages openssl)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python) #:use-module (gnu packages python)
@ -3114,9 +3114,9 @@ tracking.")
(license license:x11))) (license license:x11)))
(define-public xkbcomp (define xkbcomp-intermediate ; used as input for xkeyboard-config
(package (package
(name "xkbcomp") (name "xkbcomp-intermediate")
(version "1.2.4") (version "1.2.4")
(source (source
(origin (origin
@ -3139,6 +3139,18 @@ tracking.")
(description "X.org provides an implementation of the X Window System") (description "X.org provides an implementation of the X Window System")
(license license:x11))) (license license:x11)))
(define-public xkbcomp ; using xkeyboard-config as input
(package (inherit xkbcomp-intermediate)
(name "xkbcomp")
(inputs
`(,@(package-inputs xkbcomp-intermediate)
("xkeyboard-config" ,xkeyboard-config)))
(arguments
`(#:configure-flags
(list (string-append "--with-xkb-config-root="
(assoc-ref %build-inputs "xkeyboard-config")
"/share/X11/xkb"))))))
(define-public xkbevd (define-public xkbevd
(package (package
@ -3212,7 +3224,7 @@ tracking.")
("intltool" ,intltool) ("intltool" ,intltool)
("libx11" ,libx11) ("libx11" ,libx11)
("pkg-config" ,pkg-config) ("pkg-config" ,pkg-config)
("xkbcomp" ,xkbcomp))) ("xkbcomp-intermediate" ,xkbcomp-intermediate)))
(home-page "http://www.x.org/wiki/") (home-page "http://www.x.org/wiki/")
(synopsis "xorg implementation of the X Window System") (synopsis "xorg implementation of the X Window System")
(description "X.org provides an implementation of the X Window System") (description "X.org provides an implementation of the X Window System")
@ -4262,6 +4274,7 @@ emulation to complete hardware acceleration for modern GPUs.")
("dbus" ,dbus) ("dbus" ,dbus)
("dmxproto" ,dmxproto) ("dmxproto" ,dmxproto)
("libdmx" ,libdmx) ("libdmx" ,libdmx)
("libgcrypt" ,libgcrypt)
("libxau" ,libxau) ("libxau" ,libxau)
("libxaw" ,libxaw) ("libxaw" ,libxaw)
("libxdmcp" ,libxdmcp) ("libxdmcp" ,libxdmcp)
@ -4273,7 +4286,6 @@ emulation to complete hardware acceleration for modern GPUs.")
("libxt" ,libxt) ("libxt" ,libxt)
("libxv" ,libxv) ("libxv" ,libxv)
("mesa" ,mesa) ("mesa" ,mesa)
("openssl" ,openssl)
("pkg-config" ,pkg-config) ("pkg-config" ,pkg-config)
("python" ,python-wrapper) ("python" ,python-wrapper)
("recordproto" ,recordproto) ("recordproto" ,recordproto)
@ -4284,10 +4296,30 @@ emulation to complete hardware acceleration for modern GPUs.")
("xf86dgaproto" ,xf86dgaproto) ("xf86dgaproto" ,xf86dgaproto)
("xf86driproto" ,xf86driproto) ("xf86driproto" ,xf86driproto)
("xf86vidmodeproto" ,xf86vidmodeproto) ("xf86vidmodeproto" ,xf86vidmodeproto)
;; ("xkbutils" ,xkbutils) ("xkbcomp" ,xkbcomp)
;; ("xkeyboard-config" ,xkeyboard-config) ("xkeyboard-config" ,xkeyboard-config)
("xtrans" ,xtrans) ("xtrans" ,xtrans)
("zlib" ,zlib))) ("zlib" ,zlib)))
(arguments
`(#:configure-flags
(list (string-append "--with-xkb-path="
(assoc-ref %build-inputs "xkeyboard-config")
"/share/X11/xkb")
(string-append "--with-xkb-output="
"/tmp") ; FIXME: This is a bit doubtful; where should
; the compiled keyboard maps go?
(string-append "--with-xkb-bin-directory="
(assoc-ref %build-inputs "xkbcomp")
"/bin"))
#:phases
(alist-replace
'configure
(lambda* (#:key outputs #:allow-other-keys #:rest args)
(let ((configure (assoc-ref %standard-phases 'configure)))
(substitute* (find-files "." "\\.c$")
(("/bin/sh") (which "sh")))
(apply configure args)))
%standard-phases)))
(home-page "http://www.x.org/wiki/") (home-page "http://www.x.org/wiki/")
(synopsis "xorg implementation of the X Window System") (synopsis "xorg implementation of the X Window System")
(description "X.org provides an implementation of the X Window System") (description "X.org provides an implementation of the X Window System")