Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
025b9140
Commit
025b9140
authored
8 years ago
by
Denis Davydov
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
oce: fix for Sierra (#1934)
parent
eb178956
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/repos/builtin/packages/oce/package.py
+5
-0
5 additions, 0 deletions
var/spack/repos/builtin/packages/oce/package.py
var/spack/repos/builtin/packages/oce/sierra.patch
+45
-0
45 additions, 0 deletions
var/spack/repos/builtin/packages/oce/sierra.patch
with
50 additions
and
0 deletions
var/spack/repos/builtin/packages/oce/package.py
+
5
−
0
View file @
025b9140
...
@@ -54,6 +54,11 @@ class Oce(Package):
...
@@ -54,6 +54,11 @@ class Oce(Package):
# https://github.com/tpaviot/oce/commit/61cb965b9ffeca419005bc15e635e67589c421dd.patch
# https://github.com/tpaviot/oce/commit/61cb965b9ffeca419005bc15e635e67589c421dd.patch
patch
(
'
null.patch
'
,
when
=
'
@0.16:0.17.1
'
)
patch
(
'
null.patch
'
,
when
=
'
@0.16:0.17.1
'
)
# fix build with Xcode 8 "previous definition of CLOCK_REALTIME"
# reported 27 Sep 2016 https://github.com/tpaviot/oce/issues/643
if
(
platform
.
system
()
==
"
Darwin
"
)
and
(
platform
.
mac_ver
()[
0
]
==
'
10.12
'
):
patch
(
'
sierra.patch
'
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
options
=
[]
options
=
[]
options
.
extend
(
std_cmake_args
)
options
.
extend
(
std_cmake_args
)
...
...
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/oce/sierra.patch
0 → 100644
+
45
−
0
View file @
025b9140
diff --git a/adm/cmake/TKernel/CMakeLists.txt b/adm/cmake/TKernel/CMakeLists.txt
index 54e241e..72873c6 100644
--- a/adm/cmake/TKernel/CMakeLists.txt
+++ b/adm/cmake/TKernel/CMakeLists.txt
@@ -29,7 +29,7 @@
if(WIN32)
set(TOOLKIT_LIBS ${TOOLKIT_LIBS} ${CSF_SOCKETLibs_LIB} ${CSF_advapi32_LIB} ${CSF_gdi32_LIB} ${CSF_user32_LIB} ${CSF_kernel32_LIB} ${CSF_psapi_LIB})
else(WIN32)
# An implementation for Mac OS X has been added in src/OSD/gettime_osx.h
- if(NOT APPLE)
+ if(APPLE)
include( CheckFunctionExists )
check_function_exists( clock_gettime CLOCK_GETTIME_IN_LIBC )
if(NOT CLOCK_GETTIME_IN_LIBC)
@@ -40,7 +40,7 @@
else(WIN32)
endif(NOT CLOCK_GETTIME_IN_LIBRT)
set(TOOLKIT_LIBS ${TOOLKIT_LIBS} rt)
endif(NOT CLOCK_GETTIME_IN_LIBC)
- endif(NOT APPLE)
+ endif(APPLE)
endif(WIN32)
# Adde-DHAVE_TBB in TKernel in order to benefit from Standard_MMgrTBBalloc
@@ -70,4 +70,3 @@
if (OCE_BUILD_TKERNEL_WITH_INSTALL_RPATH)
set_target_properties_install_rpath(${TOOLKIT} "${OCE_INSTALL_LIB_DIR_RPATH};${OCE_INSTALL_PACKAGE_LIB_DIR_RPATH}")
set_target_properties(${TOOLKIT} PROPERTIES BUILD_WITH_INSTALL_RPATH ON)
endif ()
-
diff --git a/src/OSD/OSD_Chronometer.cxx b/src/OSD/OSD_Chronometer.cxx
index 444f844..25970d0 100644
--- a/src/OSD/OSD_Chronometer.cxx
+++ b/src/OSD/OSD_Chronometer.cxx
@@ -51,7 +51,7 @@
#include <mach/mach.h>
#endif
-#if defined(__APPLE__) && defined(__MACH__)
+#if defined(__OOOOPPLE__) && defined(__MACH__)
#include "gettime_osx.h"
#endif
@@ -283,4 +283,3 @@
void OSD_Chronometer::Show (Standard_Real& user,
system = Cumul_sys;
if (!StopSav) Start();
}
-
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment