Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2017 03:53:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220873] Opencascade patch-src_STEPConstruct_STEPConstruct__AP203Context.cxx is wrong
Message-ID:  <bug-220873-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220873

            Bug ID: 220873
           Summary: Opencascade
                    patch-src_STEPConstruct_STEPConstruct__AP203Context.cx
                    x is wrong
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: rcarter@pinyon.org

Opencascade patch-src_STEPConstruct_STEPConstruct__AP203Context.cxx is wrong

root@bruno> more patch-src_STEPConstruct_STEPConstruct__AP203Context.cxx
--- src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig       2016-11-25
09:52:26 UTC
+++ src/STEPConstruct/STEPConstruct_AP203Context.cxx
@@ -123,7 +123,7 @@ Handle(StepBasic_DateAndTime) STEPConstr
     long shift =3D 0;
     _get_timezone (&shift);
   #else
-    Standard_Integer shift =3D Standard_Integer(timezone);
+    Standard_Integer shift =3D Standard_Integer((long long)timezone);
   #endif
     Standard_Integer shifth =3D abs ( shift ) / 3600;
     Standard_Integer shiftm =3D ( abs ( shift ) - shifth * 3600 ) / 60;
--More--(END)

timezone(3) on FreeBSD is a function whose address is a long long; on Linux,
via tzset(3) it is a global long integer.  Indeed the patch compiles, but I
doubt the result is what is intended.  I fixed this before getting so disgu=
sted
with opencascade which required purging everything associated.  I regret th=
at,
I should have kept my git branches around.

Anyway the solution is from memory a short static helper function inserted =
in
the source directly above the inline definition.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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