public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-libs/svgalib/files: svgalib-1.9.25-linux2.6.28.patch
@ 2009-02-28  0:12 Christian Faulhammer (fauli)
  0 siblings, 0 replies; only message in thread
From: Christian Faulhammer (fauli) @ 2009-02-28  0:12 UTC (permalink / raw
  To: gentoo-commits

fauli       09/02/28 00:12:15

  Added:                svgalib-1.9.25-linux2.6.28.patch
  Log:
  add patch from bug 252614 by Marco Leogrande <dark DOT knight DOT ita AT gmail DOT com> to fix compilation with Kernel 2.6.28.  Also rename no-helper USE flag to kernel-helper and make it default with EAPI=1
  (Portage version: 2.1.6.7/cvs/Linux i686)

Revision  Changes    Path
1.1                  media-libs/svgalib/files/svgalib-1.9.25-linux2.6.28.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.28.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.28.patch?rev=1.1&content-type=text/plain

Index: svgalib-1.9.25-linux2.6.28.patch
===================================================================
--- svgalib-1.9.25-original/kernel/svgalib_helper/kernel26compat.h	2008-12-26 15:52:24.000000000 +0100
+++ svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h	2008-12-26 16:48:46.000000000 +0100
@@ -128,7 +128,7 @@
                              MKDEV(SVGALIB_HELPER_MAJOR, _minor),        \
                              _name);
 /* 2.6.27 changed device_create to device_create_drvdata */
-#else
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
 #  define SLH_SYSFS_ADD_CONTROL                                          \
      device_create_drvdata(svgalib_helper_class, NULL,                   \
                            MKDEV(SVGALIB_HELPER_MAJOR, 0),               \
@@ -139,6 +139,18 @@
                            &sh_pci_devs[_minor]->dev->dev,               \
                            MKDEV(SVGALIB_HELPER_MAJOR, _minor),          \
                            "%s%d", _name, _minor);
+/* 2.6.28 changed device_create_drvdata back to device_create */
+#else
+#  define SLH_SYSFS_ADD_CONTROL                                         \
+     device_create(svgalib_helper_class, NULL,                          \
+                   MKDEV(SVGALIB_HELPER_MAJOR, 0), NULL,                \
+                   "%s%d", "svga", 0);
+
+#  define SLH_SYSFS_ADD_DEVICE(_name, _minor)                           \
+     device_create(svgalib_helper_class,                                \
+                   &sh_pci_devs[_minor]->dev->dev,                      \
+                   MKDEV(SVGALIB_HELPER_MAJOR, _minor), NULL,           \
+                   "%s%d", _name, _minor);
 #endif
 
 #  define SLH_SYSFS_REMOVE_DEVICE(i)                                    \






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-28  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28  0:12 [gentoo-commits] gentoo-x86 commit in media-libs/svgalib/files: svgalib-1.9.25-linux2.6.28.patch Christian Faulhammer (fauli)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox