Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2009 12:04:35 +0300 (MSK)
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        fluffy@FreeBSD.org
Subject:   ports/141917: [PATCH] deskutils/fbreader: Fix build on i386
Message-ID:  <200912230904.nBN94ZOc079401@darklight.org.ru>
Resent-Message-ID: <200912230910.nBN9A1MX009212@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141917
>Category:       ports
>Synopsis:       [PATCH] deskutils/fbreader: Fix build on i386
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 23 09:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Yuri Pankov
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD darklight.org.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Wed Dec 16 08:47:03 MSK 2009
>Description:
Fix build on i386.

Reported by:	Alex V. Petrov <alexvpetrov@gmail.com>

Port maintainer (fluffy@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- fbreader-0.12.1_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/deskutils/fbreader/Makefile,v
retrieving revision 1.36
diff -u -r1.36 Makefile
--- Makefile	23 Dec 2009 00:38:18 -0000	1.36
+++ Makefile	23 Dec 2009 09:01:47 -0000
@@ -8,6 +8,7 @@
 PORTNAME=	fbreader
 PORTVERSION=	0.12.1
 DISTVERSIONPREFIX=	sources-
+PORTREVISION=	1
 CATEGORIES=	deskutils
 MASTER_SITES=	http://www.fbreader.org/
 EXTRACT_SUFX=	.tgz
Index: files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp
===================================================================
RCS file: /home/ncvs/ports/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp,v
retrieving revision 1.5
diff -u -r1.5 patch-zlibrary__src__unix__time__ZLUnixTime.cpp
--- files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp	18 Jul 2007 10:15:15 -0000	1.5
+++ files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp	23 Dec 2009 09:01:47 -0000
@@ -1,6 +1,6 @@
---- ./zlibrary/core/src/unix/time/ZLUnixTime.cpp.orig	Tue Apr 17 22:53:30 2007
-+++ ./zlibrary/core/src/unix/time/ZLUnixTime.cpp	Sat Apr 28 00:13:29 2007
-@@ -18,21 +18,22 @@
+--- ./zlibrary/core/src/unix/time/ZLUnixTime.cpp.orig	2009-12-13 11:03:09.000000000 +0300
++++ ./zlibrary/core/src/unix/time/ZLUnixTime.cpp	2009-12-23 09:34:03.273539781 +0300
+@@ -17,33 +17,37 @@
   * 02110-1301, USA.
   */
  
@@ -30,3 +30,21 @@
 +	time_t st = seconds;
 +	return localtime(&st)->tm_min;
  }
+ 
+ short ZLUnixTimeManager::yearBySeconds(long seconds) const {
+-	return localtime(&seconds)->tm_year + 1900;
++	time_t st = seconds;
++	return localtime(&st)->tm_year + 1900;
+ }
+ 
+ short ZLUnixTimeManager::monthBySeconds(long seconds) const {
+-	return localtime(&seconds)->tm_mon + 1;
++	time_t st = seconds;
++	return localtime(&st)->tm_mon + 1;
+ }
+ 
+ short ZLUnixTimeManager::dayOfMonthBySeconds(long seconds) const {
+-	return localtime(&seconds)->tm_mday;
++	time_t st = seconds;
++	return localtime(&st)->tm_mday;
+ }
--- fbreader-0.12.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912230904.nBN94ZOc079401>