~ruther/guix-local

e6eeff18561b24fa93601f11874b002bda7c1b7e — Mark H Weaver 11 years ago e7908a2
gnu: xf86-video-mga: Update to 1.6.3.

* gnu/packages/patches/xf86-video-mga-glibc-2.20.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
* gnu/packages/xorg.scm (xf86-video-mga): Update to 1.6.3.  Add patch.
3 files changed, 22 insertions(+), 3 deletions(-)

M gnu-system.am
A gnu/packages/patches/xf86-video-mga-glibc-2.20.patch
M gnu/packages/xorg.scm
M gnu-system.am => gnu-system.am +1 -0
@@ 466,6 466,7 @@ dist_patch_DATA =						\
  gnu/packages/patches/xf86-video-intel-compat-api.patch	\
  gnu/packages/patches/xf86-video-intel-glibc-2.20.patch	\
  gnu/packages/patches/xf86-video-mach64-glibc-2.20.patch	\
  gnu/packages/patches/xf86-video-mga-glibc-2.20.patch		\
  gnu/packages/patches/xf86-video-openchrome-includes.patch	\
  gnu/packages/patches/xfce4-panel-plugins.patch		\
  gnu/packages/patches/xmodmap-asprintf.patch

A gnu/packages/patches/xf86-video-mga-glibc-2.20.patch => gnu/packages/patches/xf86-video-mga-glibc-2.20.patch +17 -0
@@ 0,0 1,17 @@
Fix test compilation with exa.h in configure when using glibc 2.20.
Inspired by a patch by Peter Hutterer <peter.hutterer@who-t.net>.
See <https://raw.githubusercontent.com/openembedded/oe-core/master/meta/recipes-graphics/xorg-driver/xf86-input-synaptics/always_include_xorg_server.h.patch>.

--- xf86-video-mga-1.6.3/configure.~1~	2013-12-04 21:10:25.000000000 -0500
+++ xf86-video-mga-1.6.3/configure	2014-12-19 01:06:23.005774736 -0500
@@ -18464,7 +18464,9 @@
 
     SAVE_CPPFLAGS="$CPPFLAGS"
     CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
-    ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
+    ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default
+#include <xorg-server.h>
+"
 if test "x$ac_cv_header_exa_h" = xyes; then :
   have_exa_h="yes"
 else

M gnu/packages/xorg.scm => gnu/packages/xorg.scm +4 -3
@@ 2641,17 2641,18 @@ devices, thus making direct access unnecessary.")
(define-public xf86-video-mga
  (package
    (name "xf86-video-mga")
    (version "1.5.0")
    (version "1.6.3")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://xorg/X11R7.7/src/everything/xf86-video-mga-"
               "mirror://xorg/individual/driver/xf86-video-mga-"
               version
               ".tar.bz2"))
        (sha256
          (base32
            "03l3wz5kz0hmxmzqqbkgn7pf9d956jlag04rb701a0fr1mw3v66a"))))
           "1my7y67sadjjmab1dyxckylrggi7p01yk4wwg9w6k1q96pmb213p"))
        (patches (list (search-patch "xf86-video-mga-glibc-2.20.patch")))))
    (build-system gnu-build-system)
    (inputs `(("mesa" ,mesa)
              ("xf86driproto" ,xf86driproto)