summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-01-01copyright: update license headers for 2013-2019 copyright.Todd Gamblin3526-3535/+3531
2019-01-01license: license command prints sorted, non-redundant resultsTodd Gamblin1-3/+7
- spack license command now ignores symlinks - spack license list-files now prints sorted output, and checks for files we've already seen.
2019-01-01Improve validation of modules.yaml (#9878)Massimiliano Culpo8-169/+269
This PR improves the validation of `modules.yaml` by introducing a custom validator that checks if an attribute listed in `properties` or `patternProperties` is a valid spec. This new check applied to the test case in #9857 gives: ```console $ spack install szip ==> Error: /home/mculpo/.spack/linux/modules.yaml:5: "^python@2.7@" is an invalid spec [Invalid version specifier] ``` Details: * Moved the set-up of a custom validator class to spack.schema * In Spack we use `jsonschema` to validate configuration files against a schema. We also need custom validators to enforce writing default values within "properties" or "patternProperties" attributes. * Currently, validators were customized at the place of use and with the recent introduction of environments that meant we were setting-up and using 2 different validator classes in two different modules. * This commit moves the set-up of a custom validator class in the `spack.schema` module and refactors the code in `spack.config` and `spack.environments` to use it. * Added a custom validator to check if an attribute is a valid spec * Added a custom validator that can be used on objects, which yields an error if the attribute is not a valid spec. * Updated the schema for modules.yaml * Updated modules.yaml to fix a few inconsistencies: - a few attributes were not tested properly using 'anyOf' - suffixes has been updated to also check that the attribute is a spec - hierarchical_scheme has been updated to hierarchy * Removed $ref from every schema * $ref is not composable or particularly legible * Use python dicts and regular old variables instead.
2018-12-31express: new version, use tags and fix gcc@6.0.0: (#10230)George Hartzell2-4/+30
* express: new version, use tags and fix gcc@6.0.0: Express fails to build with gcc@6.0.0:. The debian project [has a fix](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811859) but they don't seem to have pushed it upstream. I've opened an issue and a PR in eXpress repo, but eXpress isn't actively developed, so I'm fixing it here too. Since the Spack package was created, the eXpress team tagged their releases. I've updated the package to use the tags. Version 1.5.1 used to be known as 2015-11-29 (same commit). 1.5.2 is new(er). * Make flake8 happ{y,ier}
2018-12-31aspell builds with newer gcc's (#10227)George Hartzell2-0/+38
Apply fix from aspell issue (519) for a pointer dereference bug that newer versions of gcc won't let slip past. There hasn't been a release that includes the fix, this applies the change to the latest release.
2018-12-31fastx-toolkit builds with newer gcc's (#10228)George Hartzell2-1/+13
There's a missing break in a switch statement that newer gcc's dislike. Our #4696 simply disallowed newer gcc's. This fixes the problem instead. It's been [PR'ed upstream](https://github.com/agordon/fastx_toolkit/pull/22). Tested with gcc@5.5.0 and gcc@8.2.0 on CentOS.
2018-12-31bamutil builds with newer gcc's (#10229)George Hartzell5-0/+100
The most recent release of bamutil that we support uses an embedded copy of libStatGen that has several issues that keep it from building with newer releases of gcc. They've all been fixed upstream and the latest release of bamutil would pick them up if/when we support it. The build process has changed though, plus my team needs *this* version. This commit backports those fixes.
2018-12-31ds: new package at 9.8.0 (#9852)Justin Stanley1-0/+58
* ds: new package at 9.8.0rc6 * ds: move patches to patch func * ds: use built-in configure phase, remove autoreconf skip * ds: revert to stable 9.8.0 * ds: remove unnecessary dep types * ds: make url consistent with versions
2018-12-31flang, llvm, pgmath: Add release for 2018-09-21 (#10224)Gary Klimowicz3-0/+21
2018-12-31py-sphinxautomodapi: new python package (#10226)Geoffrey Oxberry1-0/+18
2018-12-30Over specifying Quantum Espresso compiler variables causes problems in some ↵Nichols A. Romero1-6/+13
corner cases. (#10216)
2018-12-30xgboost: make sure "libxgboost.so" is provided under prefix/lib (#10208)Sinan1-0/+7
2018-12-30dealii: workaround concretization issue with PETSc (#10217)Denis Davydov1-1/+3
2018-12-30stopgap: allow travis to fail for Python 2.6 againTodd Gamblin1-0/+2
- Travis still fails on `spack spec` in Python 2.6. - Allow the failure until we get to the bottom of it.
2018-12-30bugfix: nested directives were broken in python 3Todd Gamblin2-1/+25
- The nested directive implementation was broken for python 3 - directive results were not properly removed from the directive list when it was processed in the DirectiveMeta metaclass. - the issue was that remove_directives only descended into a list or tuple, but in Python3, the initial value passed to the function is a view of dictionary values. - make it a list to fix things, and add a regression test.
2018-12-30commands: add `spack resource` command to inspect downloadable filesTodd Gamblin4-0/+237
- currently just looks at patches - allows you to find out which package applied a patch to a spec - intended to work with tarballs and resources in the future. - add tab completion for `spack resource` and subcommands
2018-12-30tests: add a test to make sure that patched specs can be round-trippedTodd Gamblin1-30/+101
- previously, if a concrete sub-DAG with patched specs was written out and read back in, its patches would not be found because the dependent that patched it was no longer in the DAG. - Add a test to ensure that the PatchCache handles this case. - Also add tests to ensure that patch objects are properly created from Specs -- previously we only checked that the patches were on the Spec.
2018-12-30patches: add a per-repository patch indexTodd Gamblin8-116/+339
- this fixes a bug where if we save a concretized sug-DAG where a package had been patched by a dependent, and the dependent was not in the DAG, we would not read in all patches correctly. - Rather than looking up patches in the DAG, we look them up globally from an index created from the entire repository. - The patch cache is a bit tricky for several reasons: - we have to cache information from packages, specifically, the patch level and working directory. - FilePatches need to know which package owns them, so that they can figure out where the patch lives. The repo can change locations from run to run, so we have to store relative paths and restore them when the cache is reloaded. - Patch files can change underneath the cache, because repo indexes only update on package changes. We currently punt on this -- there are stub methods for needs_update() that will need to check patch files when packages are loaded. There isn't an easy way to do this at global indexing time without making the FastPackageChecker a lot slower. This is TBD for a future commit. - Currently, the same patch can only be used one way in a package. That is, if it appears twice with different level/working_dir settings, bad things will happen. There's no package that current uses the same patch two different ways, so we've punted on this as well, but we may need to fix this in the future by moving a lot of the metdata (level, working dir) to the spec, and *only* caching sha256sums in the PatchCache. That would require some much more complicated tweaks to the Spec, so we're holding off on that til later. - This required patches to be refactored somewhat -- the difference between a UrlPatch and a FilePatch is still not particularly clean.
2018-12-30ProviderIndex uses json instead of YAMLTodd Gamblin4-21/+18
- indexes should use json, not YAML, to optimize for speed - only use YAML in human-editable files - this makes ProviderIndex consistent with other indexes
2018-12-30repo: refactor indexes to be more extensibleTodd Gamblin1-95/+132
- virtual provider cache and tags were previously generated by nearly identical but separate methods. - factor out an Indexer interface for updating repository caches, and provide implementations for each type of index (TagIndex, ProviderIndex) so that more can be added if needed. - Among other things, this allows all indexes to be updated at once. This is an advantage because loading package files is the real overhead, and building the indexes once the packages are loaded is trivial. We avoid extra bulk read-ins by generating all package indexes at once. - This can be extended for dependents (reverse dependencies) and patches later.
2018-12-30patches: clean up patch.py, directives, and package class propertiesTodd Gamblin7-103/+121
- cleanup patch.py: - make patch.py constructors more understandable - loosen coupling of patch.py with package - in Package: make package_dir, module, and namespace class properties - These were previously instance properties and couldn't be called from directives, e.g. in patch.create() - make them class properties so that they can be used in class definition - also add some instance properties to delegate to class properties so that prior usage on Package objects still works
2018-12-29coverage: use kcov to get coverage for our cc scriptTodd Gamblin5-7/+32
2018-12-29Always build glib with iconv (#10219)George Hartzell1-6/+2
* Always build glib with iconv My early PR, #10165, which added a variant to configure glib to use libiconv and defaulted to false, seems to be causing more trouble than the knob is worth. This changes the glib package to always depend on and use libiconv. * libiconv depends_on is no longer conditional
2018-12-29bugfix: add codecov upload back to travis.yml (#10220)Todd Gamblin1-0/+5
Codecov upload was accidentally removed in #9805
2018-12-29Use homebrew addon instead of manually invoking brew (#10213)Todd Gamblin1-7/+8
2018-12-28Add GDAL 2.4.0 (#10215)Adam J. Stewart1-2/+8
2018-12-28salmon: Add version 0.12.0 (#10211)Eric1-0/+1
2018-12-28velvet: Add missing zlib dependency to fix installation errors (#10212)Eric1-0/+2
2018-12-28py-testinfra: Add version 1.18.0 (#10210)Eric1-0/+1
2018-12-27Add new versions of optional-lite and string-view-lite (#10179)Andrew Gaspar2-0/+3
2018-12-27xgboost: new package at 0.81 (#9854)Justin Stanley1-0/+22
2018-12-26fix moab installation for version 5.0.2 removed from ftp (#10201)Lukasz1-1/+11
* moab install from git repository, fix version 5.0.2 removed from ftp server * add moab dependencies above verson 5.0.1
2018-12-26Add Stata package (#10189)StackKorora1-0/+104
* First draft for installing Stata 15 I've tested this works on my systems and gives a successful install of STATA 15. * Flake8 cleanup * Another Flake8 * Update license header * Various improvements A lot of improvements as suggested by @adamjstewart * flake8 check
2018-12-26pgmath: depend on awk (#10200)Christoph Junghans1-0/+1
2018-12-26Fix pkgconf downloads (#10202)Adam J. Stewart1-1/+1
2018-12-26Fix libxml2+python and libxslt+python import tests (#10196)Adam J. Stewart2-2/+4
* Fix libxml2+python import tests * Same for libxslt package
2018-12-26mawk: added 1.3.4_p20171017 (#10197)Christoph Junghans1-0/+1
2018-12-26slepc: fix homepage URL (#10199)Satish Balay1-1/+1
2018-12-25tests: run 'test_compiler_add' serially in Python 2 (#10127)Massimiliano Culpo1-1/+9
* Don't spawn processes during python 2.6/2.7 'test_compiler_add' unit tests * Travis seems to choke on the excessive parallelism in `compiler find`
2018-12-25environment: ignore invalid files names in var/spack/environments (#10198)Denis Davydov3-5/+20
2018-12-24dealii: fix build with some Intel compilers (#10188)Denis Davydov1-0/+6
2018-12-24Add latest version of NCCL (#10194)Adam J. Stewart1-3/+3
2018-12-24Add PyTorch 1.0 (#10193)Adam J. Stewart1-2/+4
2018-12-24manta: Add version 1.5.0 and add missing zlib dependency (#10178)Eric1-4/+6
2018-12-23bugfix: handle unicode properly in spack.util.executable (#10186)Todd Gamblin2-18/+37
- When returning string output, use text_type and decode utf-8 in Python 2 instead of using `str` - This properly handles unicode, whereas before we would pass bad strings to colify in `spack blame` when reading git output - add a test that round-trips some unicode through an Executable object
2018-12-23travis: fix pip install for docker stage (#10177)Omar Padron1-2/+3
2018-12-23xsdk-0.4.0: add/update package versions: (#10038)Satish Balay4-15/+57
* xsdk-0.4.0: add/update package versions: hypre@2.15.1 mfem@3.4.0 superlu-dist@6.1.0 trilinos@12.14.0-rc1 petsc@3.10.3 dealii@9.0.1 pflotran@xsdk-0.4.0 alquimia@xsdk-0.4.0 sundials@3.2.1 plasma@18.11.1 magma@2.4.0 amrex@18.10.1 slepc@3.10.1 omega-h@9.19.1 strumpack@3.1.1 pumi@2.2.0 tasmanian@6.0 phist@1.7.5 dtk-3.0 [via trilinos features '+dtk+intrepid2+shards'] add option to disable omega-h build [wrt gcc-8 conflict] spack install xsdk~omega-h add option to disable dealii build [wrt cori build error] spack install xsdk~dealii * trilinos: default version should be the prior release
2018-12-23py-cftime: new package (#10066)Neil Flood1-0/+21
* py-cftime: new package * Added dependency on py-setuptools, and version range for py-cython, thanks to the ever-vigilant @adamjstewart
2018-12-23openFOAM-paraview-catalyst (#10129)Simone Bnà6-60/+1176
* paraview: adding variants to use external packages as internal do not compile * paraview: add latest paraview version * catalyst: fixed libvtkexpat undefined reference linking error in Catalyst 5.5 * catalyst: add latest catalyst version * catalyst: added ParaView_DIR env variable to catalyst module * add paraview, catalyst patches - https://gitlab.kitware.com/vtk/vtk-m/merge_requests/1166 - https://gitlab.kitware.com/paraview/paraview/merge_requests/2433 - https://gitlab.kitware.com/paraview/paraview/merge_requests/2436 * - Handle updated library paths for catalyst. Versions 5.4 and old places libraries under a paraview subdirectory. Eg, "lib/paraview-5.4", they are now placed directly under "lib" - Minor code style cleanup * Handle update library and python paths for ParaView-5.5 * catalyst: added ParaView_DIR path to spack_env * BUG: applied the patch to the extracted catalyst source files * paraview: added missing self to a member variable * paraview: added Paraview_DIR to env * catalyst: added osmesa variant * of-catalyst: added new package * add (FOAM,WM)_PROJECT_DIR also to spack_env environment * depends on first openfoam release supporting catalyst * openfoam-com: added missing env variables to module generation * openfoam: fixed flake8 errors * of-catalyst: added full variant and openfoam version dependency * paraview: adding variants to use external packages as internal do not compile * catalyst: fixed libvtkexpat undefined reference linking error in Catalyst 5.5 * catalyst: added ParaView_DIR env variable to catalyst module * add paraview, catalyst patches - https://gitlab.kitware.com/vtk/vtk-m/merge_requests/1166 - https://gitlab.kitware.com/paraview/paraview/merge_requests/2433 - https://gitlab.kitware.com/paraview/paraview/merge_requests/2436 * - Handle updated library paths for catalyst. Versions 5.4 and old places libraries under a paraview subdirectory. Eg, "lib/paraview-5.4", they are now placed directly under "lib" - Minor code style cleanup * Handle update library and python paths for ParaView-5.5 * catalyst: added ParaView_DIR path to spack_env * BUG: applied the patch to the extracted catalyst source files * of-catalyst: added new package * add (FOAM,WM)_PROJECT_DIR also to spack_env environment * depends on first openfoam release supporting catalyst * paraview: added missing self to a member variable * openfoam-com: added missing env variables to module generation * openfoam: fixed flake8 errors * paraview: added Paraview_DIR to env * catalyst: added osmesa variant * of-catalyst: added full variant and openfoam version dependency * paraview-catalyst: use always external expat and netcdf * of-catalyst: reformatted package description * paraview-catalyst: removed duplicated function * catalyst: fixed flake8 error * of-catalyst: fixed license header * of-catalyst: minor changes * of-catalyst: renamed gitrepo with git * of-catalyst: removed useless gitrepo parameter
2018-12-23Feature add breathe and m2r (#10180)Brian Van Essen3-0/+61
* Added a package for the MDAnalysis toolkit. * Added python packages for breathe and m2r. Updated versions and URL for the sphinx package. * Fixed flake8 error * Updated package requirements based on feedback. * Updated with requirements from the setup.py * Switched it back to pypi.