summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-03-17 09:55:55 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-03-17 07:55:55 -0700
commit10b767b93f60926ef7e1cb132af364890819c5bc (patch)
treedcb000d8d6745e0d812ff40e0be816ffd1deda3a /lib
parent5f13e4065592799ccf8d75dbd5a420da4e7c0d22 (diff)
downloadspack-10b767b93f60926ef7e1cb132af364890819c5bc.tar.gz
spack-10b767b93f60926ef7e1cb132af364890819c5bc.tar.bz2
spack-10b767b93f60926ef7e1cb132af364890819c5bc.tar.xz
spack-10b767b93f60926ef7e1cb132af364890819c5bc.zip
Don't use @system in packages.yaml (#3472)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/getting_started.rst41
-rw-r--r--lib/spack/docs/packaging_guide.rst31
-rw-r--r--lib/spack/docs/workflows.rst20
3 files changed, 19 insertions, 73 deletions
diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst
index efc1965ce9..3c2610beb0 100644
--- a/lib/spack/docs/getting_started.rst
+++ b/lib/spack/docs/getting_started.rst
@@ -85,18 +85,8 @@ Check Installation
With Spack installed, you should be able to run some basic Spack
commands. For example:
-.. code-block:: console
+.. command-output:: spack spec netcdf
- $ spack spec netcdf
- ...
- netcdf@4.4.1%gcc@5.3.0~hdf4+mpi arch=linux-SuSE11-x86_64
- ^curl@7.50.1%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^openssl@system%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^zlib@1.2.8%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^hdf5@1.10.0-patch1%gcc@5.3.0+cxx~debug+fortran+mpi+shared~szip~threadsafe arch=linux-SuSE11-x86_64
- ^openmpi@1.10.1%gcc@5.3.0~mxm~pmi~psm~psm2~slurm~sqlite3~thread_multiple~tm+verbs+vt arch=linux-SuSE11-x86_64
- ^m4@1.4.17%gcc@5.3.0+sigsegv arch=linux-SuSE11-x86_64
- ^libsigsegv@2.10%gcc@5.3.0 arch=linux-SuSE11-x86_64
^^^^^^^^^^^^^^^^^^^^^^^^^^
Optional: Alternate Prefix
@@ -225,7 +215,7 @@ If you want to see specifics on a particular compiler, you can run
f77 = /usr/local/bin/ifort-15.0.090
fc = /usr/local/bin/ifort-15.0.090
modules = []
- operating system = centos6
+ operating_system = centos6
...
This shows which C, C++, and Fortran compilers were detected by Spack.
@@ -712,19 +702,22 @@ example:
$ curl -O https://github.com/ImageMagick/ImageMagick/archive/7.0.2-7.tar.gz
-The recommended way to tell Spack to use the system-supplied OpenSSL is
-to add the following to ``packages.yaml``. Note that the ``@system``
-"version" means "I don't care what version it is, just use what is
-there." This is reasonable for OpenSSL, which has a stable API.
+To tell Spack to use the system-supplied OpenSSL, first determine what
+version you have:
+
+.. code-block:: console
+
+ $ openssl version
+ OpenSSL 1.0.2g 1 Mar 2016
+Then add the following to ``~/.spack/packages.yaml``:
.. code-block:: yaml
packages:
openssl:
paths:
- openssl@system: /usr
- version: [system]
+ openssl@1.0.2g: /usr
buildable: False
@@ -740,8 +733,7 @@ to add the following to ``packages.yaml``:
packages:
netlib-lapack:
paths:
- netlib-lapack@system: /usr
- version: [system]
+ netlib-lapack@3.6.1: /usr
buildable: False
all:
providers:
@@ -750,11 +742,9 @@ to add the following to ``packages.yaml``:
.. note::
- The ``@system`` "version" means "I don't care what version it is,
- just use what is there." Above we pretend that the system-provided
- Blas/Lapack is ``netlib-lapack`` only because it is the only BLAS / LAPACK
- provider which use standard names for libraries (as opposed to, for example,
- `libopenblas.so`).
+ Above we pretend that the system-provided BLAS / LAPACK is ``netlib-lapack``
+ only because it is the only BLAS / LAPACK provider which use standard names
+ for libraries (as opposed to, for example, ``libopenblas.so``).
Although we specify external package in ``/usr``, Spack is smart enough not
to add ``/usr/lib`` to RPATHs, where it could cause unrelated system
@@ -909,7 +899,6 @@ with Spack:
tcl:
paths:
tcl@8.5: /usr
- version: [8.5]
buildable: False
#. Install with:
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index b794bb2581..729ea5d656 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -3156,37 +3156,6 @@ Version Lists
Spack packages should list supported versions with the newest first.
-^^^^^^^^^^^^^^^^
-Special Versions
-^^^^^^^^^^^^^^^^
-
-The following *special* version names may be used when building a package:
-
-"""""""""""
-``@system``
-"""""""""""
-
-Indicates a hook to the OS-installed version of the
-package. This is useful, for example, to tell Spack to use the
-OS-installed version in ``packages.yaml``:
-
-.. code-block:: yaml
-
- openssl:
- paths:
- openssl@system: /usr
- buildable: False
-
-Certain Spack internals look for the ``@system`` version and do
-appropriate things in that case.
-
-""""""""""
-``@local``
-""""""""""
-
-Indicates the version was built manually from some source
-tree of unknown provenance (see ``spack setup``).
-
---------------------------
Packaging workflow commands
---------------------------
diff --git a/lib/spack/docs/workflows.rst b/lib/spack/docs/workflows.rst
index 11b77c008d..7814ebf3cd 100644
--- a/lib/spack/docs/workflows.rst
+++ b/lib/spack/docs/workflows.rst
@@ -33,24 +33,12 @@ possible realization of a particular package, out of combinatorially
many other realizations. For example, here is a concrete spec
instantiated from ``curl``:
-.. code-block:: console
-
- curl@7.50.1%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^openssl@system%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^zlib@1.2.8%gcc@5.3.0 arch=linux-SuSE11-x86_64
+.. command-output:: spack spec curl
Spack's core concretization algorithm generates concrete specs by
instantiating packages from its repo, based on a set of "hints",
including user input and the ``packages.yaml`` file. This algorithm
-may be accessed at any time with the ``spack spec`` command. For
-example:
-
-.. code-block:: console
-
- $ spack spec curl
- curl@7.50.1%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^openssl@system%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^zlib@1.2.8%gcc@5.3.0 arch=linux-SuSE11-x86_64
+may be accessed at any time with the ``spack spec`` command.
Every time Spack installs a package, that installation corresponds to
a concrete spec. Only a vanishingly small fraction of possible
@@ -68,7 +56,7 @@ variant, compiler, etc. For example, the following set is consistent:
.. code-block:: console
curl@7.50.1%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^openssl@system%gcc@5.3.0 arch=linux-SuSE11-x86_64
+ ^openssl@1.0.2k%gcc@5.3.0 arch=linux-SuSE11-x86_64
^zlib@1.2.8%gcc@5.3.0 arch=linux-SuSE11-x86_64
zlib@1.2.8%gcc@5.3.0 arch=linux-SuSE11-x86_64
@@ -77,7 +65,7 @@ The following set is not consistent:
.. code-block:: console
curl@7.50.1%gcc@5.3.0 arch=linux-SuSE11-x86_64
- ^openssl@system%gcc@5.3.0 arch=linux-SuSE11-x86_64
+ ^openssl@1.0.2k%gcc@5.3.0 arch=linux-SuSE11-x86_64
^zlib@1.2.8%gcc@5.3.0 arch=linux-SuSE11-x86_64
zlib@1.2.7%gcc@5.3.0 arch=linux-SuSE11-x86_64