Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 02:31:53 GMT
From:      Cristiano Rolim Pereira <cristianorolim@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/131600: [patch] - patch correction for cad/opencascade
Message-ID:  <200902120231.n1C2Vr10075154@www.freebsd.org>
Resent-Message-ID: <200902120240.n1C2e4Li062851@freefall.freebsd.org>

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

>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@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(&ltime);
++    localtime_r(&ltime, &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:



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