From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 12 02:40:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C18E61065672 for ; Thu, 12 Feb 2009 02:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9CEFD8FC1B for ; Thu, 12 Feb 2009 02:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1C2e4mo062852 for ; Thu, 12 Feb 2009 02:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1C2e4Li062851; Thu, 12 Feb 2009 02:40:04 GMT (envelope-from gnats) Resent-Date: Thu, 12 Feb 2009 02:40:04 GMT Resent-Message-Id: <200902120240.n1C2e4Li062851@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Cristiano Rolim Pereira Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E382B106566C for ; Thu, 12 Feb 2009 02:31:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 82C9C8FC0C for ; Thu, 12 Feb 2009 02:31:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1C2VrGA075155 for ; Thu, 12 Feb 2009 02:31:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1C2Vr10075154; Thu, 12 Feb 2009 02:31:53 GMT (envelope-from nobody) Message-Id: <200902120231.n1C2Vr10075154@www.freebsd.org> Date: Thu, 12 Feb 2009 02:31:53 GMT From: Cristiano Rolim Pereira To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/131600: [patch] - patch correction for cad/opencascade X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 02:40:06 -0000 >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 ). >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: