From 70a1aa314f051713510504432ae2f9ecff5ecdfa Mon Sep 17 00:00:00 2001 From: Marco Bonetti Date: Thu, 8 Apr 2010 23:36:43 -0400 Subject: multimedia/tvtime: Updated build with glibc patch. --- multimedia/tvtime/patches/glibc-2.10.patch | 24 ++++++++++++++++++++++++ multimedia/tvtime/tvtime.SlackBuild | 5 +++-- multimedia/tvtime/tvtime.info | 2 +- 3 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 multimedia/tvtime/patches/glibc-2.10.patch (limited to 'multimedia/tvtime') diff --git a/multimedia/tvtime/patches/glibc-2.10.patch b/multimedia/tvtime/patches/glibc-2.10.patch new file mode 100644 index 000000000000..c3d8ad87d733 --- /dev/null +++ b/multimedia/tvtime/patches/glibc-2.10.patch @@ -0,0 +1,24 @@ +diff -Naur tvtime-1.0.2.org/src/xmltv.c tvtime-1.0.2/src/xmltv.c +--- tvtime-1.0.2.org/src/xmltv.c 2009-07-02 21:48:49.426191088 +0200 ++++ tvtime-1.0.2/src/xmltv.c 2009-07-02 21:50:20.842066085 +0200 +@@ -118,9 +118,9 @@ + typedef struct { + const char *code; + const char *name; +-} locale_t; ++} tvtime_locale_t; + +-static locale_t locale_table[] = { ++static tvtime_locale_t locale_table[] = { + {"AA", "Afar"}, {"AB", "Abkhazian"}, {"AF", "Afrikaans"}, + {"AM", "Amharic"}, {"AR", "Arabic"}, {"AS", "Assamese"}, + {"AY", "Aymara"}, {"AZ", "Azerbaijani"}, {"BA", "Bashkir"}, +@@ -168,7 +168,7 @@ + {"XH", "Xhosa"}, {"YO", "Yoruba"}, {"ZH", "Chinese"}, + {"ZU", "Zulu"} }; + +-const int num_locales = sizeof( locale_table ) / sizeof( locale_t ); ++const int num_locales = sizeof( locale_table ) / sizeof( tvtime_locale_t ); + + /** + * Timezone parsing code based loosely on the algorithm in diff --git a/multimedia/tvtime/tvtime.SlackBuild b/multimedia/tvtime/tvtime.SlackBuild index 7d71cdd65de5..88a9db5cae02 100644 --- a/multimedia/tvtime/tvtime.SlackBuild +++ b/multimedia/tvtime/tvtime.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=tvtime VERSION=1.0.2 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -57,8 +57,9 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -# Apply some bugfix patches from Pardus +# Apply some bugfix patches from Pardus and Gentoo # http://paketler.pardus.org.tr/2007/source/tvtime.html +# http://bugs.gentoo.org/attachment.cgi?id=196423 for foo in $CWD/patches/* ; do patch -p1 < $foo ; done diff --git a/multimedia/tvtime/tvtime.info b/multimedia/tvtime/tvtime.info index 8edb503fd2ad..db0ba944ad45 100644 --- a/multimedia/tvtime/tvtime.info +++ b/multimedia/tvtime/tvtime.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Marco Bonetti" EMAIL="sid77@slackware.it" -APPROVED="rworkman" +APPROVED="dsomero" -- cgit v1.2.3