diff options
author | Daniel Drake <dsd@gentoo.org> | 2005-01-12 19:43:14 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2005-01-12 19:43:14 +0000 |
commit | 330df011dc97ee9e340690e87e3f3f87be47336c (patch) | |
tree | 7fb4281e466277b0ffa1cf7713c1d023fa457c78 /media-libs/svgalib | |
parent | Updated HOMEPAGE. (diff) | |
download | gentoo-2-330df011dc97ee9e340690e87e3f3f87be47336c.tar.gz gentoo-2-330df011dc97ee9e340690e87e3f3f87be47336c.tar.bz2 gentoo-2-330df011dc97ee9e340690e87e3f3f87be47336c.zip |
Fix 2.6.10 compatibility, bug #77186
Diffstat (limited to 'media-libs/svgalib')
-rw-r--r-- | media-libs/svgalib/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.19-devfs.patch | 15 | ||||
-rw-r--r-- | media-libs/svgalib/files/svgalib.devfs | 4 | ||||
-rw-r--r-- | media-libs/svgalib/svgalib-1.9.19-r1.ebuild | 10 |
4 files changed, 34 insertions, 4 deletions
diff --git a/media-libs/svgalib/ChangeLog b/media-libs/svgalib/ChangeLog index f8f2c989f2e2..4ade0ab6e90b 100644 --- a/media-libs/svgalib/ChangeLog +++ b/media-libs/svgalib/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/svgalib -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/ChangeLog,v 1.50 2004/11/16 04:56:31 vapier Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/ChangeLog,v 1.51 2005/01/12 19:43:14 dsd Exp $ + + 12 Jan 2005; Daniel Drake <dsd@gentoo.org> + +files/svgalib-1.9.19-devfs.patch, +files/svgalib.devfs, + svgalib-1.9.19-r1.ebuild: + Fix 2.6.10 compatibility, bug #77186 15 Nov 2004; Mike Frysinger <vapier@gentoo.org> svgalib-1.9.19-r1.ebuild: Fix the buildcsr demo target to use the correct linking flags #71194. diff --git a/media-libs/svgalib/files/svgalib-1.9.19-devfs.patch b/media-libs/svgalib/files/svgalib-1.9.19-devfs.patch new file mode 100644 index 000000000000..9029588f8370 --- /dev/null +++ b/media-libs/svgalib/files/svgalib-1.9.19-devfs.patch @@ -0,0 +1,15 @@ +No longer available in Linux 2.6.10 + +- Daniel Drake <dsd@gentoo.org> + +diff -urNp svgalib-1.9.19/kernel/svgalib_helper/main.c svgalib-dsd/kernel/svgalib_helper/main.c +--- svgalib-1.9.19/kernel/svgalib_helper/main.c 2004-05-07 10:10:22.000000000 +0100 ++++ svgalib-dsd/kernel/svgalib_helper/main.c 2005-01-09 18:25:13.094026296 +0000 +@@ -577,7 +577,6 @@ int init_module(void) + devfs_mk_cdev(MKDEV(SVGALIB_HELPER_MAJOR, i), + S_IFCHR | S_IRUGO | S_IRWXU, "svga_helper/%d", i); + } +- devfs_mk_symlink("svga", "svga_helper/0"); + # endif + #endif /* devfsd support */ + diff --git a/media-libs/svgalib/files/svgalib.devfs b/media-libs/svgalib/files/svgalib.devfs new file mode 100644 index 000000000000..d6bde0b2c798 --- /dev/null +++ b/media-libs/svgalib/files/svgalib.devfs @@ -0,0 +1,4 @@ +LOOKUP ^svga$ CFUNCTION GLOBAL mksymlink svga_helper/0 svga +REGISTER ^svga_helper/0$ CFUNCTION GLOBAL mksymlink $devname svga +UNREGISTER ^svga_helper/0$ CFUNCTION GLOBAL unlink svga + diff --git a/media-libs/svgalib/svgalib-1.9.19-r1.ebuild b/media-libs/svgalib/svgalib-1.9.19-r1.ebuild index 75fa4141cc04..de94f59ab42b 100644 --- a/media-libs/svgalib/svgalib-1.9.19-r1.ebuild +++ b/media-libs/svgalib/svgalib-1.9.19-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.19-r1.ebuild,v 1.6 2004/11/16 04:56:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/svgalib/svgalib-1.9.19-r1.ebuild,v 1.7 2005/01/12 19:43:14 dsd Exp $ inherit eutils flag-o-matic toolchain-funcs kernel-mod @@ -44,6 +44,9 @@ src_unpack() { # PCI functions have been renamed with newer kernels #69580 epatch ${FILESDIR}/${P}-pci-get-class.patch + # devfs_mk_symlink no longer available #77186 + epatch ${FILESDIR}/${P}-devfs.patch + # Link like the other packages sed -i 's:$(FLAGS):$(CFLAGS) $(LDFLAGS):' demos/Makefile || die } @@ -138,6 +141,9 @@ src_install() { dodir /etc/modules.d echo "probeall /dev/svga svgalib_helper" > ${D}/etc/modules.d/svgalib + dodir /etc/devfs.d + newins ${FILESDIR}/svgalib.devfs svgalib + exeinto /usr/lib/svgalib/demos for x in ${S}/demos/* do |