summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2020-04-16 18:01:03 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2020-04-17 11:21:50 -0700
commitac54b7d5c130caac5b1296fa71613951d2ee08ab (patch)
treeb29de98faa31dc8311da3be03a892b364426e788 /var
parent85e089e3fa573e90e966927322257728f5fc7df7 (diff)
downloadspack-ac54b7d5c130caac5b1296fa71613951d2ee08ab.tar.gz
spack-ac54b7d5c130caac5b1296fa71613951d2ee08ab.tar.bz2
spack-ac54b7d5c130caac5b1296fa71613951d2ee08ab.tar.xz
spack-ac54b7d5c130caac5b1296fa71613951d2ee08ab.zip
coreutils: add variant for g prefix
- [x] Add a `gprefix` variant to coreutils, so that the 'g' prefix on binaries is optional. - [x] Make un-prefixed binaries the default again
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/coreutils/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/coreutils/package.py b/var/spack/repos/builtin/packages/coreutils/package.py
index 5743bfdc57..c43b6a5b31 100644
--- a/var/spack/repos/builtin/packages/coreutils/package.py
+++ b/var/spack/repos/builtin/packages/coreutils/package.py
@@ -22,13 +22,16 @@ class Coreutils(AutotoolsPackage, GNUMirrorPackage):
version('8.26', sha256='155e94d748f8e2bc327c66e0cbebdb8d6ab265d2f37c3c928f7bf6c3beba9a8e')
version('8.23', sha256='ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d')
+ variant("gprefix", default=False, description="prefix commands with 'g', to avoid conflicts with OS utilities")
+
build_directory = 'spack-build'
def configure_args(self):
spec = self.spec
configure_args = []
if spec.satisfies('platform=darwin'):
- configure_args.append('--program-prefix=g')
+ if "+gprefix" in self.spec:
+ configure_args.append('--program-prefix=g')
configure_args.append('--without-gmp')
configure_args.append('gl_cv_func_ftello_works=yes')
configure_args.append('FORCE_UNSAFE_CONFIGURE=1')