Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (fauli)" <fauli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/svgalib/files: svgalib-1.9.25-linux2.6.28.patch
Date: Sat, 28 Feb 2009 00:12:16
Message-Id: E1LdCoR-0004pV-93@stork.gentoo.org
1 fauli 09/02/28 00:12:15
2
3 Added: svgalib-1.9.25-linux2.6.28.patch
4 Log:
5 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
6 (Portage version: 2.1.6.7/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 media-libs/svgalib/files/svgalib-1.9.25-linux2.6.28.patch
10
11 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
12 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
13
14 Index: svgalib-1.9.25-linux2.6.28.patch
15 ===================================================================
16 --- svgalib-1.9.25-original/kernel/svgalib_helper/kernel26compat.h 2008-12-26 15:52:24.000000000 +0100
17 +++ svgalib-1.9.25/kernel/svgalib_helper/kernel26compat.h 2008-12-26 16:48:46.000000000 +0100
18 @@ -128,7 +128,7 @@
19 MKDEV(SVGALIB_HELPER_MAJOR, _minor), \
20 _name);
21 /* 2.6.27 changed device_create to device_create_drvdata */
22 -#else
23 +#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
24 # define SLH_SYSFS_ADD_CONTROL \
25 device_create_drvdata(svgalib_helper_class, NULL, \
26 MKDEV(SVGALIB_HELPER_MAJOR, 0), \
27 @@ -139,6 +139,18 @@
28 &sh_pci_devs[_minor]->dev->dev, \
29 MKDEV(SVGALIB_HELPER_MAJOR, _minor), \
30 "%s%d", _name, _minor);
31 +/* 2.6.28 changed device_create_drvdata back to device_create */
32 +#else
33 +# define SLH_SYSFS_ADD_CONTROL \
34 + device_create(svgalib_helper_class, NULL, \
35 + MKDEV(SVGALIB_HELPER_MAJOR, 0), NULL, \
36 + "%s%d", "svga", 0);
37 +
38 +# define SLH_SYSFS_ADD_DEVICE(_name, _minor) \
39 + device_create(svgalib_helper_class, \
40 + &sh_pci_devs[_minor]->dev->dev, \
41 + MKDEV(SVGALIB_HELPER_MAJOR, _minor), NULL, \
42 + "%s%d", _name, _minor);
43 #endif
44
45 # define SLH_SYSFS_REMOVE_DEVICE(i) \