From b69fc124669939fdc7e02ce7296c16c52a3f7f57 Mon Sep 17 00:00:00 2001 From: maya Date: Sun, 30 Oct 2016 09:41:58 +0000 Subject: liboggz: remove all patches these patches were intended to fix build on Open/Free-BSD and are simply wrong and broke the build on linux before and now on OS X. "it declares an uninitialized timezone structure and uses it to adjust the date. ...even if struct timezone weren't deprecated." PR pkg/50558, report on pkgsrc-users by Emre Eryilmaz --- multimedia/liboggz/distinfo | 4 +--- .../patches/patch-src_tools_oggz-chop_httpdate.c | 28 ---------------------- .../patch-src_tools_oggz-chop_httpdate__test.c | 28 ---------------------- 3 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate.c delete mode 100644 multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate__test.c (limited to 'multimedia') diff --git a/multimedia/liboggz/distinfo b/multimedia/liboggz/distinfo index eb9bae0fed8..7e3da6395e0 100644 --- a/multimedia/liboggz/distinfo +++ b/multimedia/liboggz/distinfo @@ -1,8 +1,6 @@ -$NetBSD: distinfo,v 1.4 2016/01/03 20:54:50 markd Exp $ +$NetBSD: distinfo,v 1.5 2016/10/30 09:41:58 maya Exp $ SHA1 (liboggz-1.1.1.tar.gz) = 3540190c8c9a31d834aa7794ef991bbab699f4de RMD160 (liboggz-1.1.1.tar.gz) = e85073131bc8ec021b1529487ef21802d01b0260 SHA512 (liboggz-1.1.1.tar.gz) = 8f5fc8ca49cb6f7a1160a9c1932876b771d55985d59ddc1f48497dfc08641414a58244d7a7e52bfcecdb69f52913d0123efd8f92513f8b9064e4abe1442f2cba Size (liboggz-1.1.1.tar.gz) = 702261 bytes -SHA1 (patch-src_tools_oggz-chop_httpdate.c) = e99506865b72aacc98fdc26f0ab838f95f438066 -SHA1 (patch-src_tools_oggz-chop_httpdate__test.c) = c2d7c3ce0bdb6d3f14b71b9846d6e3f3ebd22f99 diff --git a/multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate.c b/multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate.c deleted file mode 100644 index 22d7f93797c..00000000000 --- a/multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate.c +++ /dev/null @@ -1,28 +0,0 @@ -$NetBSD: patch-src_tools_oggz-chop_httpdate.c,v 1.2 2016/01/03 20:54:50 markd Exp $ - -Fix build for {Free,Open}BSD. - ---- src/tools/oggz-chop/httpdate.c.orig 2010-01-30 05:55:59.000000000 +0000 -+++ src/tools/oggz-chop/httpdate.c -@@ -33,6 +33,9 @@ time_t - httpdate_parse (char * s, int n) - { - struct tm d; -+#ifndef __linux__ -+ struct timezone tzone; -+#endif - char wday[3], month[3]; - int i; - -@@ -60,7 +63,11 @@ httpdate_parse (char * s, int n) - - d.tm_year -= 1900; - -+#ifdef __linux__ - d.tm_sec -= timezone; -+#else -+ d.tm_sec -= (tzone.tz_minuteswest * 60); -+#endif - - return mktime (&d); - } diff --git a/multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate__test.c b/multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate__test.c deleted file mode 100644 index 9ad60ae9140..00000000000 --- a/multimedia/liboggz/patches/patch-src_tools_oggz-chop_httpdate__test.c +++ /dev/null @@ -1,28 +0,0 @@ -$NetBSD: patch-src_tools_oggz-chop_httpdate__test.c,v 1.2 2016/01/03 20:54:50 markd Exp $ - -Fix build for {Free,Open}BSD. - ---- src/tools/oggz-chop/httpdate_test.c.orig 2010-01-30 05:55:59.000000000 +0000 -+++ src/tools/oggz-chop/httpdate_test.c -@@ -13,6 +13,9 @@ main (int argc, char * argv[]) - char * d_in = "Mon, 06 Feb 2006 11:20:01 GMT"; - char d_out[30]; - time_t t; -+#ifndef __linux__ -+ struct timezone tzone; -+#endif - - INFO ("Parsing date:"); - INFO (d_in); -@@ -21,7 +24,11 @@ main (int argc, char * argv[]) - if (t == (time_t)-1) { - FAIL ("Parse error"); - } else { -+#ifdef __linux__ - t -= timezone; -+#else -+ t -= tzone.tz_minuteswest; -+#endif - httpdate_snprint (d_out, 30, t); - - INFO ("Output date:"); -- cgit v1.2.3