diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2020-10-21 15:31:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 15:31:29 -0700 |
commit | 93e7267dcce46515e61287bfe932e2e5854ef454 (patch) | |
tree | 7b92a6d4dd5f29184b89996dfb0bb4acdbe80f13 | |
parent | a1278bfba0304f31b8d8562c28e34af9a7cd94f6 (diff) | |
download | spack-93e7267dcce46515e61287bfe932e2e5854ef454.tar.gz spack-93e7267dcce46515e61287bfe932e2e5854ef454.tar.bz2 spack-93e7267dcce46515e61287bfe932e2e5854ef454.tar.xz spack-93e7267dcce46515e61287bfe932e2e5854ef454.zip |
unzip: fix build for XCode 12 on macosx (#19453)
- [x] `build_targets` should use `macosx` on macOS, `generic` on other systems
- [x] enable `LARGE_FILE_SUPPORT` by default
-rw-r--r-- | var/spack/repos/builtin/packages/unzip/package.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/unzip/package.py b/var/spack/repos/builtin/packages/unzip/package.py index 224c495a64..986bf60705 100644 --- a/var/spack/repos/builtin/packages/unzip/package.py +++ b/var/spack/repos/builtin/packages/unzip/package.py @@ -19,8 +19,15 @@ class Unzip(MakefilePackage): def patch(self): filter_file(r'^LFLAGS2=.*', 'LFLAGS2=', join_path('unix', 'configure')) - make_args = ['-f', join_path('unix', 'Makefile')] - build_targets = make_args + ['generic'] + make_args = [ + '-f', join_path('unix', 'Makefile'), + "LOC=-DLARGE_FILE_SUPPORT" + ] + + @property + def build_targets(self): + target = "macosx" if "platform=darwin" in self.spec else "generic" + return self.make_args + [target] def url_for_version(self, version): return 'http://downloads.sourceforge.net/infozip/unzip{0}.tar.gz'.format(version.joined) |