From f22cd2adf1a015ea17c592a5977b6e4946e58a9d Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Tue, 3 Nov 2009 20:23:18 +1100 Subject: [PATCH] mjpegtools: fix for glibc 2.10 --- mjpegtools/.md5sum | 1 + mjpegtools/Pkgfile | 6 ++++-- mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch | 12 ++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch diff --git a/mjpegtools/.md5sum b/mjpegtools/.md5sum index 8b5e6e10b..c8d232ea8 100644 --- a/mjpegtools/.md5sum +++ b/mjpegtools/.md5sum @@ -1 +1,2 @@ +35480a6eb4ca5f90660890022dd97ae2 mjpegtools-1.9.0-glibc-2.10.patch 309a6fcf0900a010d6a9c1e91afc2f5c mjpegtools-1.9.0.tar.gz diff --git a/mjpegtools/Pkgfile b/mjpegtools/Pkgfile index f03a81a2d..98d9b141c 100644 --- a/mjpegtools/Pkgfile +++ b/mjpegtools/Pkgfile @@ -6,11 +6,13 @@ name=mjpegtools version=1.9.0 -release=1 -source=(http://downloads.sourceforge.net/sourceforge/mjpeg/$name-$version.tar.gz) +release=2 +source=(http://downloads.sourceforge.net/sourceforge/mjpeg/$name-$version.tar.gz + mjpegtools-1.9.0-glibc-2.10.patch) build() { cd $name-$version + patch -p 1 -i $SRC/mjpegtools-1.9.0-glibc-2.10.patch ./configure \ --prefix=/usr \ diff --git a/mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch b/mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch new file mode 100644 index 000000000..2abeb3b58 --- /dev/null +++ b/mjpegtools/mjpegtools-1.9.0-glibc-2.10.patch @@ -0,0 +1,12 @@ +diff -pruN mjpegtools-1.9.0.orig/mplex/lpcmstrm_in.cpp mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp +--- mjpegtools-1.9.0.orig/mplex/lpcmstrm_in.cpp 2009-11-03 09:12:41.193553723 +0000 ++++ mjpegtools-1.9.0/mplex/lpcmstrm_in.cpp 2009-11-03 09:13:54.740427219 +0000 +@@ -53,7 +53,7 @@ LPCMStream::LPCMStream(IBitStream &ibs, + + bool LPCMStream::Probe(IBitStream &bs ) + { +- char *last_dot = strrchr( bs.StreamName(), '.' ); ++ const char *last_dot = strrchr( bs.StreamName(), '.' ); + return + last_dot != NULL + && strcmp( last_dot+1, "lpcm") == 0;