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
This commit is contained in:
parent
85e089e3fa
commit
ac54b7d5c1
@ -22,13 +22,16 @@ class Coreutils(AutotoolsPackage, GNUMirrorPackage):
|
|||||||
version('8.26', sha256='155e94d748f8e2bc327c66e0cbebdb8d6ab265d2f37c3c928f7bf6c3beba9a8e')
|
version('8.26', sha256='155e94d748f8e2bc327c66e0cbebdb8d6ab265d2f37c3c928f7bf6c3beba9a8e')
|
||||||
version('8.23', sha256='ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d')
|
version('8.23', sha256='ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d')
|
||||||
|
|
||||||
|
variant("gprefix", default=False, description="prefix commands with 'g', to avoid conflicts with OS utilities")
|
||||||
|
|
||||||
build_directory = 'spack-build'
|
build_directory = 'spack-build'
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
configure_args = []
|
configure_args = []
|
||||||
if spec.satisfies('platform=darwin'):
|
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('--without-gmp')
|
||||||
configure_args.append('gl_cv_func_ftello_works=yes')
|
configure_args.append('gl_cv_func_ftello_works=yes')
|
||||||
configure_args.append('FORCE_UNSAFE_CONFIGURE=1')
|
configure_args.append('FORCE_UNSAFE_CONFIGURE=1')
|
||||||
|
Loading…
Reference in New Issue
Block a user