summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-08-28 23:18:24 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-08-28 20:18:24 -0700
commite119c32a9cbd798ce4fb64393f1e4eb59ed26c54 (patch)
tree70bdd6b6e91f269e7851e30778096ba695318122
parent82808f944ab4b126e92ff16222ebf41c1e51d6c1 (diff)
downloadspack-e119c32a9cbd798ce4fb64393f1e4eb59ed26c54.tar.gz
spack-e119c32a9cbd798ce4fb64393f1e4eb59ed26c54.tar.bz2
spack-e119c32a9cbd798ce4fb64393f1e4eb59ed26c54.tar.xz
spack-e119c32a9cbd798ce4fb64393f1e4eb59ed26c54.zip
Hot-fix for qthreads (#1632)
The download tarball for qthreads vanished. Install it from a git branch instead as temporary work-around.
-rw-r--r--var/spack/repos/builtin/packages/qthreads/package.py23
1 files changed, 19 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/qthreads/package.py b/var/spack/repos/builtin/packages/qthreads/package.py
index 2eaff0a240..634d934938 100644
--- a/var/spack/repos/builtin/packages/qthreads/package.py
+++ b/var/spack/repos/builtin/packages/qthreads/package.py
@@ -37,16 +37,31 @@ class Qthreads(Package):
either full or empty, and a thread can wait for any word to
attain either state."""
homepage = "http://www.cs.sandia.gov/qthreads/"
- url = "https://qthreads.googlecode.com/files/qthread-1.10.tar.bz2"
- version('1.10', '5af8c8bbe88c2a6d45361643780d1671')
+ # Google Code has stopped serving tarballs
+ # We assume the tarballs will soon be available on Github instead
+ # url = "https://qthreads.googlecode.com/files/qthread-1.10.tar.bz2"
+ # version('1.10', '5af8c8bbe88c2a6d45361643780d1671')
- patch("ldflags.patch")
+ # Temporarily install from a git branch
+ url = "https://github.com/Qthreads/qthreads"
+ version("1.10",
+ git="https://github.com/Qthreads/qthreads",
+ branch="release-1.10")
+
+ # patch("ldflags.patch")
patch("restrict.patch")
patch("trap.patch")
+ depends_on("autoconf", type="build")
+ depends_on("hwloc")
+
def install(self, spec, prefix):
+ autogen = Executable("./autogen.sh")
+ autogen()
configure("--prefix=%s" % prefix,
- "--enable-guard-pages")
+ "--enable-guard-pages",
+ "--with-topology=hwloc",
+ "--with-hwloc=%s" % spec["hwloc"].prefix)
make()
make("install")