Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions outputs/package-py-files/1.package.py

This file was deleted.

43 changes: 0 additions & 43 deletions outputs/package-py-files/3.package.py

This file was deleted.

56 changes: 0 additions & 56 deletions outputs/package-py-files/4.package.py

This file was deleted.

58 changes: 0 additions & 58 deletions outputs/package-py-files/5.package.py

This file was deleted.

58 changes: 0 additions & 58 deletions outputs/package-py-files/6.package.py

This file was deleted.

12 changes: 6 additions & 6 deletions outputs/packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ example packaging/checksum-mpileaks-1 "spack checksum tutorial-mpileaks 1.0"
example --tee --expect-error packaging/install-mpileaks-1 "spack install tutorial-mpileaks"

# add documentation
cp "$PROJECT/package-py-files/1.package.py" "$mpileaks_package_py"
cp "$PROJECT/packaging/examples/1.package.py" "$mpileaks_package_py"
example packaging/info-mpileaks "spack info --phases tutorial-mpileaks"

# add dependencies
cp "$PROJECT/package-py-files/2.package.py" "$mpileaks_package_py"
cp "$PROJECT/packaging/examples/2.package.py" "$mpileaks_package_py"
example --tee --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpileaks"

stage_dir="$(spack location -s tutorial-mpileaks)"
Expand All @@ -67,20 +67,20 @@ example packaging/build-output "cat $stage_dir/spack-build-out.txt"
#run_configure

# configure arguments
cp "$PROJECT/package-py-files/3.package.py" "$mpileaks_package_py"
cp "$PROJECT/packaging/examples/3.package.py" "$mpileaks_package_py"
example --tee packaging/install-mpileaks-3 "spack install tutorial-mpileaks"

# variants
cp "$PROJECT/package-py-files/4.package.py" "$mpileaks_package_py"
cp "$PROJECT/packaging/examples/4.package.py" "$mpileaks_package_py"
example --tee packaging/install-mpileaks-4 "spack install --verbose tutorial-mpileaks stackstart=4"

# TODO: Re-enable once https://github.com/spack/spack/issues/52573 is resolved.
# tests
#example --tee packaging/install-mpileaks-5 "spack uninstall -ay tutorial-mpileaks"
#cp "$PROJECT/package-py-files/5.package.py" "$mpileaks_package_py"
#cp "$PROJECT/packaging/examples/5.package.py" "$mpileaks_package_py"
#example --tee --expect-error packaging/install-mpileaks-5 "spack install --test=root tutorial-mpileaks"
#
#cp "$PROJECT/package-py-files/6.package.py" "$mpileaks_package_py"
#cp "$PROJECT/packaging/examples/6.package.py" "$mpileaks_package_py"
#example --tee packaging/install-mpileaks-6 "spack install --test=root tutorial-mpileaks"

# cleanup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# ----------------------------------------------------------------------------

from spack_repo.builtin.build_systems.autotools import AutotoolsPackage

from spack.package import *


Expand All @@ -28,7 +29,11 @@ class TutorialMpileaks(AutotoolsPackage):

# FIXME: Add a proper url for your package's homepage here.
homepage = "https://www.example.com"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"
url = "https://github.com/llnl/mpileaks/archive/refs/tags/v1.0.tar.gz"

# FIXME: Uncomment and add the upstream supplier (organization or author).
# If unknown or inapplicable, remove this entire block.
# supplier = organization_or_author

# FIXME: Add a list of GitHub accounts to
# notify when the package is updated.
Expand All @@ -45,10 +50,11 @@ class TutorialMpileaks(AutotoolsPackage):
depends_on("cxx", type="build")
depends_on("fortran", type="build")

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")
with default_args(type="build"):
depends_on("autoconf")
depends_on("automake")
depends_on("libtool")
depends_on("m4")

# FIXME: Add additional dependencies if required.
# depends_on("foo")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,33 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack_repo.builtin.build_systems.autotools import AutotoolsPackage

from spack.package import *


class TutorialMpileaks(AutotoolsPackage):
"""Tool to detect and report leaked MPI objects like MPI_Requests and MPI_Datatypes."""

homepage = "https://github.com/LLNL/mpileaks"
url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"
homepage = "https://github.com/llnl/mpileaks"
url = "https://github.com/llnl/mpileaks/archive/refs/tags/v1.0.tar.gz"

supplier = "Organization: LLNL"

maintainers("adamjstewart")
maintainers("cmelone")

license("BSD", checked_by="adamjstewart")
license("BSD", checked_by="cmelone")

version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9")

depends_on("c", type="build")
depends_on("cxx", type="build")
depends_on("fortran", type="build")

depends_on("autoconf", type="build")
depends_on("automake", type="build")
depends_on("libtool", type="build")
depends_on("m4", type="build")
with default_args(type="build"):
depends_on("autoconf")
depends_on("automake")
depends_on("libtool")
depends_on("m4")

# FIXME: Add additional dependencies if required.
# depends_on("foo")
Expand Down
Loading
Loading