From ee4050c58f7c76cf789a03d62a6ee613f8b1a34a Mon Sep 17 00:00:00 2001 From: Serban Maerean Date: Wed, 13 Jun 2018 18:53:14 -0400 Subject: boost package: patch dirent for pgi and boost 1.67 (#8313) --- .../repos/builtin/packages/boost/boost_1.67.0_pgi.patch | 13 +++++++++++++ var/spack/repos/builtin/packages/boost/package.py | 1 + 2 files changed, 14 insertions(+) create mode 100644 var/spack/repos/builtin/packages/boost/boost_1.67.0_pgi.patch (limited to 'var') diff --git a/var/spack/repos/builtin/packages/boost/boost_1.67.0_pgi.patch b/var/spack/repos/builtin/packages/boost/boost_1.67.0_pgi.patch new file mode 100644 index 0000000000..b2c7acaf6b --- /dev/null +++ b/var/spack/repos/builtin/packages/boost/boost_1.67.0_pgi.patch @@ -0,0 +1,13 @@ +--- a/libs/filesystem/src/operations.cpp ++++ b/libs/filesystem/src/operations.cpp +@@ -2056,10 +2056,6 @@ + return ok; + } + +-#if defined(__PGI) && defined(__USE_FILE_OFFSET64) +-#define dirent dirent64 +-#endif +- + error_code dir_itr_first(void *& handle, void *& buffer, + const char* dir, string& target, + fs::file_status &, fs::file_status &) diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index cc774b927b..5b8b621ba5 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -177,6 +177,7 @@ class Boost(Package): patch('call_once_variadic.patch', when='@1.54.0:1.55.9999%gcc@5.0:5.9') # Patch fix for PGI compiler + patch('boost_1.67.0_pgi.patch', when='@1.67.0%pgi') patch('boost_1.63.0_pgi.patch', when='@1.63.0%pgi') patch('boost_1.63.0_pgi_17.4_workaround.patch', when='@1.63.0%pgi@17.4') -- cgit v1.2.3-70-g09d2