Skip to content

sourceforge download filenames corrupted after #11117 #13404

@odoublewen

Description

@odoublewen

Since merge of #11117, I cannot install libuuid:

$ ./bin/spack install libuuid
==> Installing libuuid
==> Searching for binary cache of libuuid
==> Warning: No Spack mirrors are currently configured
==> No binary for libuuid found: installing from source
==> Fetching http://downloads.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flibuuid%2F&ts=1433881396&use_mirror=iweb
######################################################################## 100.0%
==> Error: IOError: [Errno 2] No such file or directory: '/tmp/odoublewen/spack-stage/spack-stage-libuuid-1.0.3-i2o43zceswgaexd5xp6kghipbv3ey7uw/libuuid-1.0.3.tar.gz'

/home/odoublewen/git/odoublewen/spack/lib/spack/spack/package.py:1077, in do_fetch:
       1074
       1075        if checksum and self.version in self.versions:
       1076            self.stage.check()
  >>   1077
       1078        self.stage.cache_local()
       1079
       1080        for patch in self.spec.patches:

The download actually is working, but the filename in the filesystem contains all of the URL GET data.

$ ls /tmp/odoublewen/spack-stage/spack-stage-libuuid-1.0.3-i2o43zceswgaexd5xp6kghipbv3ey7uw/
libuuid-1.0.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flibuuid%2F&ts=1433881396&use_mirror=iweb

If I revert fd58c98, the download and install succeeds.

FYI @opadron

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions