mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
science/dakota: Fix build on i386
Reported by: fallout
This commit is contained in:
parent
abad2a84ee
commit
a8773182a3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566874
@ -102,11 +102,16 @@ post-install:
|
||||
.endfor
|
||||
|
||||
do-test: # from Additional Test Suites @ https://dakota.sandia.gov/content/additional-test-suites (many tests are known to fail)
|
||||
# minimal set of fast-running tests that should NOT FAIL (may DIFF, depending on platform / compiler)
|
||||
cd ${WRKSRC}/test && ./dakota_test.perl
|
||||
# test suite that should PASS on any supported platform (NO DIFF or FAIL)
|
||||
cd ${WRKSRC}/test && ./dakota_test.perl --label-regex=AcceptanceTest
|
||||
# run all Dakota tests active in this build (should PASS or DIFF)
|
||||
cd ${WRKSRC}/test && ./dakota_test.perl --label-regex=dakota_
|
||||
## minimal set of fast-running tests that should NOT FAIL (may DIFF, depending on platform / compiler)
|
||||
#cd ${WRKSRC}/test && ./dakota_test.perl
|
||||
## test suite that should PASS on any supported platform (NO DIFF or FAIL)
|
||||
#cd ${WRKSRC}/test && ./dakota_test.perl --label-regex=AcceptanceTest
|
||||
## run all Dakota tests active in this build (should PASS or DIFF)
|
||||
#cd ${WRKSRC}/test && ./dakota_test.perl --label-regex=dakota_
|
||||
# Tests should be this way, but this fails:
|
||||
@cd ${BUILD_WRKSRC} && \
|
||||
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DDAKOTA_ENABLE_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
|
||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
|
||||
(cd ${WRKSRC} && ctest -j 4 -L FastTest -LE Diff)
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -0,0 +1,13 @@
|
||||
- Fix i386 build.
|
||||
|
||||
--- packages/external/JEGA/eddy/threads/src/thread.cpp.orig 2021-03-01 17:15:15 UTC
|
||||
+++ packages/external/JEGA/eddy/threads/src/thread.cpp
|
||||
@@ -152,7 +152,7 @@ thread::sleep(
|
||||
)
|
||||
{
|
||||
struct timespec ts = {
|
||||
- msecs/1000, static_cast<long>((msecs%1000)*1000000)
|
||||
+ time_t(msecs/1000), static_cast<long>((msecs%1000)*1000000)
|
||||
};
|
||||
|
||||
#if defined(EDDY_WINDOWS)
|
Loading…
Reference in New Issue
Block a user