summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-12-10 11:51:49 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-12-10 11:51:49 +0000
commit9b9ed372608a84d528f45b8ba590b8390ad50ab7 (patch)
tree0292e3945318e7c02492d026919ffe97107a5cbf /media-video/guvcview
parentRemove pam_sha512 masking. (diff)
downloadgentoo-2-9b9ed372608a84d528f45b8ba590b8390ad50ab7.tar.gz
gentoo-2-9b9ed372608a84d528f45b8ba590b8390ad50ab7.tar.bz2
gentoo-2-9b9ed372608a84d528f45b8ba590b8390ad50ab7.zip
Add include for locale.h to get setlocale wrt #250495, thanks to Ivan Miljenovic.
(Portage version: 2.1.6/cvs/Linux 2.6.27.7 i686)
Diffstat (limited to 'media-video/guvcview')
-rw-r--r--media-video/guvcview/ChangeLog8
-rw-r--r--media-video/guvcview/files/guvcview-0.9.6-implicit_declaration_setlocale.patch11
-rw-r--r--media-video/guvcview/guvcview-0.9.6.ebuild10
3 files changed, 27 insertions, 2 deletions
diff --git a/media-video/guvcview/ChangeLog b/media-video/guvcview/ChangeLog
index 69110a98da65..28c932d9ecee 100644
--- a/media-video/guvcview/ChangeLog
+++ b/media-video/guvcview/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/guvcview
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/guvcview/ChangeLog,v 1.1 2008/12/09 20:34:16 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/guvcview/ChangeLog,v 1.2 2008/12/10 11:51:48 ssuominen Exp $
+
+ 10 Dec 2008; <ssuominen@gentoo.org>
+ +files/guvcview-0.9.6-implicit_declaration_setlocale.patch,
+ guvcview-0.9.6.ebuild:
+ Add include for locale.h to get setlocale wrt #250495, thanks to Ivan
+ Miljenovic.
*guvcview-0.9.6 (09 Dec 2008)
diff --git a/media-video/guvcview/files/guvcview-0.9.6-implicit_declaration_setlocale.patch b/media-video/guvcview/files/guvcview-0.9.6-implicit_declaration_setlocale.patch
new file mode 100644
index 000000000000..f2584c24559a
--- /dev/null
+++ b/media-video/guvcview/files/guvcview-0.9.6-implicit_declaration_setlocale.patch
@@ -0,0 +1,11 @@
+diff -ur guvcview-src-0.9.6.orig/src/guvcview.c guvcview-src-0.9.6/src/guvcview.c
+--- guvcview-src-0.9.6.orig/src/guvcview.c 2008-12-06 20:51:44.000000000 +0200
++++ guvcview-src-0.9.6/src/guvcview.c 2008-12-10 12:19:34.000000000 +0200
+@@ -29,6 +29,7 @@
+ #include <sys/file.h>
+ #include <string.h>
+ #include <pthread.h>
++#include <locale.h>
+ #include <SDL/SDL.h>
+ //#include <SDL/SDL_thread.h>
+ //#include <SDL/SDL_audio.h>
diff --git a/media-video/guvcview/guvcview-0.9.6.ebuild b/media-video/guvcview/guvcview-0.9.6.ebuild
index 5d446a7e8acb..86f2f67f4a66 100644
--- a/media-video/guvcview/guvcview-0.9.6.ebuild
+++ b/media-video/guvcview/guvcview-0.9.6.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/guvcview/guvcview-0.9.6.ebuild,v 1.1 2008/12/09 20:34:16 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/guvcview/guvcview-0.9.6.ebuild,v 1.2 2008/12/10 11:51:48 ssuominen Exp $
+
+inherit eutils
MY_P=${PN}-src-${PV}
@@ -24,6 +26,12 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-implicit_declaration_setlocale.patch
+}
+
src_compile() {
econf --disable-dependency-tracking
emake || die "emake failed."