From 67140c2a54001bb748036de617e4fabc4c400fdf Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sun, 16 Jul 2006 22:56:24 +0000 Subject: applied patch to prevent hardened symbols in kernel. Commit permission granted by Mike (Portage version: 2.1.1_pre3) --- media-video/spca5xx/ChangeLog | 7 ++++++- media-video/spca5xx/files/spca-20060501-defines.patch | 15 +++++++++++++++ media-video/spca5xx/spca5xx-20060501.ebuild | 4 +++- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 media-video/spca5xx/files/spca-20060501-defines.patch (limited to 'media-video/spca5xx') diff --git a/media-video/spca5xx/ChangeLog b/media-video/spca5xx/ChangeLog index 5de40766a54d..075f9f64ed03 100644 --- a/media-video/spca5xx/ChangeLog +++ b/media-video/spca5xx/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-video/spca5xx # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/spca5xx/ChangeLog,v 1.23 2006/05/30 18:56:00 kingtaco Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/spca5xx/ChangeLog,v 1.24 2006/07/16 22:56:24 dragonheart Exp $ + + 16 Jul 2006; Daniel Black + +files/spca-20060501-defines.patch, spca5xx-20060501.ebuild: + applied patch to prevent hardened symbols in kernel - bug #140697. patch + thanks to me :-) 30 May 2006; Mike Doty spca5xx-20060501.ebuild: ebuild enhancements from genstef diff --git a/media-video/spca5xx/files/spca-20060501-defines.patch b/media-video/spca5xx/files/spca-20060501-defines.patch new file mode 100644 index 000000000000..1b0d2a64d17c --- /dev/null +++ b/media-video/spca5xx/files/spca-20060501-defines.patch @@ -0,0 +1,15 @@ +--- Makefile.orig 2006-07-11 10:18:21.000000000 +1000 ++++ Makefile 2006-07-11 10:19:07.000000000 +1000 +@@ -26,11 +26,11 @@ + # Setup defines + DEFINES += -DCONFIG_USB_SPCA5XX_MODULE=1 -DMODULE -D__KERNEL__ + DEFINES += -DVID_HARDWARE_SPCA5XX=0xFF -DSPCA5XX_VERSION=\"$(VERSION)\" ++CFLAGS += $(DEFINES) + + ifneq ($(shell uname -r | cut -d. -f1,2), 2.4) + + ifneq ($(KERNELRELEASE),) # We were called by kbuild +-CFLAGS += $(DEFINES) + obj-m += spca5xx.o + spca5xx-objs := drivers/usb/spca5xx.o drivers/usb/spcadecoder.o + diff --git a/media-video/spca5xx/spca5xx-20060501.ebuild b/media-video/spca5xx/spca5xx-20060501.ebuild index ace9e3a5057d..7527bff27ddb 100644 --- a/media-video/spca5xx/spca5xx-20060501.ebuild +++ b/media-video/spca5xx/spca5xx-20060501.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/spca5xx/spca5xx-20060501.ebuild,v 1.2 2006/05/30 18:56:00 kingtaco Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/spca5xx/spca5xx-20060501.ebuild,v 1.3 2006/07/16 22:56:24 dragonheart Exp $ inherit linux-mod @@ -27,6 +27,8 @@ pkg_setup() { src_unpack() { unpack ${A} convert_to_m ${S}/Makefile + cd "${S}" + epatch "${FILESDIR}"/spca-20060501-defines.patch } src_install() { -- cgit v1.2.3-65-gdbad