summaryrefslogtreecommitdiff
path: root/www/liferea
diff options
context:
space:
mode:
authorsmb <smb@pkgsrc.org>2008-01-09 20:12:19 +0000
committersmb <smb@pkgsrc.org>2008-01-09 20:12:19 +0000
commitb58d777007b31f0c7ab104fe4ebd9251e2efbcc2 (patch)
tree40a49ccb25ebb7a9bfa632992d347aea53961dbc /www/liferea
parentb02642ccd923f3db39185e0e1cf6db8f80cbbbd9 (diff)
downloadpkgsrc-b58d777007b31f0c7ab104fe4ebd9251e2efbcc2.tar.gz
Replace calls to gmtime() with calls to gmtime_r() in a threaded routine.
Diffstat (limited to 'www/liferea')
-rw-r--r--www/liferea/Makefile3
-rw-r--r--www/liferea/distinfo3
-rw-r--r--www/liferea/patches/patch-ae52
3 files changed, 56 insertions, 2 deletions
diff --git a/www/liferea/Makefile b/www/liferea/Makefile
index e397efa8329..6be1a9713c9 100644
--- a/www/liferea/Makefile
+++ b/www/liferea/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.65 2008/01/08 15:14:25 smb Exp $
+# $NetBSD: Makefile,v 1.66 2008/01/09 20:12:19 smb Exp $
DISTNAME= liferea-1.4.10
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=liferea/}
+PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://liferea.sourceforge.net/
diff --git a/www/liferea/distinfo b/www/liferea/distinfo
index 2504c47485c..f54dd0088b7 100644
--- a/www/liferea/distinfo
+++ b/www/liferea/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.42 2008/01/06 15:53:44 drochner Exp $
+$NetBSD: distinfo,v 1.43 2008/01/09 20:12:19 smb Exp $
SHA1 (liferea-1.4.10.tar.gz) = 7293e6872149308d0fbfdad57c3aae8ec20b6b63
RMD160 (liferea-1.4.10.tar.gz) = af7656ef9e89850c5e5b2fcee4b9e1d5312ffaf5
Size (liferea-1.4.10.tar.gz) = 1609333 bytes
+SHA1 (patch-aa) = 9c9ce0adae109b07ee69422830d35eb09445ec6b
diff --git a/www/liferea/patches/patch-ae b/www/liferea/patches/patch-ae
new file mode 100644
index 00000000000..67bff10ff5e
--- /dev/null
+++ b/www/liferea/patches/patch-ae
@@ -0,0 +1,52 @@
+$NetBSD: patch-ae,v 1.1 2008/01/09 20:12:19 smb Exp $
+
+--- src/common.c.orig 2008-01-09 11:46:50.000000000 -0500
++++ src/common.c 2008-01-09 11:46:53.000000000 -0500
+@@ -196,7 +196,7 @@
+
+ /* converts a ISO 8601 time string to a time_t value */
+ time_t parseISO8601Date(gchar *date) {
+- struct tm tm;
++ struct tm tm, t2buf;
+ time_t t, t2, offset = 0;
+ gboolean success = FALSE;
+ gchar *pos;
+@@ -252,7 +252,7 @@
+ if((time_t)(-1) != (t = mktime(&tm))) {
+ /* Correct for the local timezone*/
+ t = t - offset;
+- t2 = mktime(gmtime(&t));
++ t2 = mktime(gmtime_r(&t, &t2buf));
+ t = t - (t2 - t);
+
+ return t;
+@@ -270,9 +270,9 @@
+ gchar *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
+
+ gchar *createRFC822Date(const time_t *time) {
+- struct tm *tm;
++ struct tm *tm, tmbuf;
+
+- tm = gmtime(time); /* No need to free because it is statically allocated */
++ tm = gmtime_r(time, &tmbuf); /* No need to free because it is statically allocated */
+ return g_strdup_printf("%s, %2d %s %4d %02d:%02d:%02d GMT", dayofweek[tm->tm_wday], tm->tm_mday,
+ months[tm->tm_mon], 1900 + tm->tm_year, tm->tm_hour, tm->tm_min, tm->tm_sec);
+ }
+@@ -322,7 +322,7 @@
+
+ /* converts a RFC822 time string to a time_t value */
+ time_t parseRFC822Date(gchar *date) {
+- struct tm tm;
++ struct tm tm, t2buf;
+ time_t t, t2;
+ char *oldlocale;
+ char *pos;
+@@ -370,7 +370,7 @@
+ correction. (Usually, there is no daylight savings
+ time since the input is GMT.) */
+ t = t - common_parse_rfc822_tz(pos);
+- t2 = mktime(gmtime(&t));
++ t2 = mktime(gmtime_r(&t, &t2buf));
+ t = t - (t2 - t);
+ return t;
+ } else {