ports/131600: [patch] - patch correction for cad/opencascade
Cristiano Rolim Pereira
cristianorolim at hotmail.com
Thu Feb 12 02:40:06 UTC 2009
>Number: 131600
>Category: ports
>Synopsis: [patch] - patch correction for cad/opencascade
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 12 02:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Cristiano Rolim Pereira
>Release: 7.1-RELEASE
>Organization:
>Environment:
FreeBSD bsd64.local 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009 root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The current patch file for "./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx" only allow the compilation to finish without errors.
The new patch will also correct the result of the function (caused by a difference between BSD and Linux in the file <time.h> ).
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx.orig 2009-02-11 22:50:54.000000000 -0200
+++ patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx 2009-02-11 22:59:33.000000000 -0200
@@ -1,11 +1,16 @@
---- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2001-09-21 10:00:28.000000000 +0200
-+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-01-24 11:45:15.000000000 +0100
-@@ -103,7 +103,7 @@
+--- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2009-02-11 22:51:29.000000000 -0200
++++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-02-11 22:52:12.000000000 -0200
+@@ -103,6 +103,13 @@
Handle(StepBasic_CoordinatedUniversalTimeOffset) zone =
new StepBasic_CoordinatedUniversalTimeOffset;
-- Standard_Integer shift = Standard_Integer(timezone);
-+ Standard_Integer shift = Standard_Integer((long long) timezone);
++
++ struct tm newtime;
++ time_t ltime;
++ ltime=time(<ime);
++ localtime_r(<ime, &newtime);
++ int timezone=newtime.tm_gmtoff;
++
+ Standard_Integer shift = Standard_Integer(timezone);
Standard_Integer shifth = abs ( shift ) / 3600;
Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60;
- StepBasic_AheadOrBehind sense = ( shift >0 ? StepBasic_aobBehind :
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list