Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating versions from urls doesn't modify class attributes #15452

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

alalazo
Copy link
Member

@alalazo alalazo commented Mar 11, 2020

fixes #15449

Before this PR a call to pkg.url_for_version was modifying class attributes determining different results for subsequent calls and an error when the urls was empty.

@alalazo alalazo added fetching bugfix Something wasn't working, here's a fix labels Mar 11, 2020
@alalazo alalazo added this to In progress in Spack v0.14.1 release via automation Mar 11, 2020
@alalazo
Copy link
Member Author

alalazo commented Mar 11, 2020

Errors in CI are before running tests:

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-7/libgfortran-7-dev_7.4.0-1ubuntu1~18.04.1_amd64.deb  404  Not Found [IP: 52.168.50.79 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-7/gfortran-7_7.4.0-1ubuntu1~18.04.1_amd64.deb  404  Not Found [IP: 52.168.50.79 80]

I'll try to restart them later.

@alalazo
Copy link
Member Author

alalazo commented Mar 11, 2020

@mwkrentel With this PR and a locally modified version of bzip2:

$ spack info bzip2
Package:   bzip2

Description:
    bzip2 is a freely available, patent free high-quality data compressor.
    It typically compresses files to within 10% to 15% of the best available
    techniques (the PPM family of statistical compressors), whilst being
    around twice as fast at compression and six times faster at
    decompression.

Homepage: https://sourceware.org/bzip2/

Tags: 
    None

Preferred version:  
    1.0.8    htt://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz

Safe versions:  
    1.0.8    htt://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
    1.0.7    htt://sourceware.org/pub/bzip2/bzip2-1.0.7.tar.gz
    1.0.6    htt://sourceware.org/pub/bzip2/bzip2-1.0.6.tar.gz

Variants:
    Name [Default]    Allowed values    Description
    ==============    ==============    ==============================

    shared [on]       True, False       Enables the build of shared
                                        libraries.

Installation Phases:
    install

Build Dependencies:
    diffutils

Link Dependencies:
    None

Run Dependencies:
    None

Virtual Packages: 
    None

The broken url seen above is the default one. When fetching or installing Spack correctl;y falls back to the ftp mirror. Improvement to spack info to show the list of urls can be done in a following PR.

@mwkrentel
Copy link
Member

Yes, spack info now works for me and I can fetch.
I agree this fixes #15449.

Thanks!

fixes spack#15449

Before this PR a call to pkg.url_for_version was modifying
class attributes determining different results for subsequents
calls and an error when the urls was empty.
@alalazo
Copy link
Member Author

alalazo commented Mar 12, 2020

@tgamblin @becker33 @scheibelp Also merging this 3 lines bugfix to solve an issue reported yesterday

@alalazo alalazo merged commit 59b6822 into spack:develop Mar 12, 2020
Spack v0.14.1 release automation moved this from In progress to Done Mar 12, 2020
@alalazo alalazo deleted the fixes/spack_info_and_urls branch March 12, 2020 08:21
@tgamblin tgamblin moved this from Done to Reviewer approved in Spack v0.14.1 release Mar 19, 2020
@tgamblin tgamblin moved this from Reviewer approved to Done in Spack v0.14.1 release Mar 20, 2020
tgamblin pushed a commit that referenced this pull request Mar 20, 2020
fixes #15449

Before this PR a call to pkg.url_for_version was modifying
class attributes determining different results for subsequents
calls and an error when the urls was empty.
likask pushed a commit to likask/spack that referenced this pull request Apr 7, 2020
…upstream_master

* commit 'e2b1737a42c9c0c796671f9dd0c39f623e4c91c0': (1343 commits)
  update CHANGELOG.md for 0.14.1
  version bump: 0.14.1
  multiprocessing: allow Spack to run uninterrupted in background (spack#14682)
  Cray bugfix: TERM missing while reading default target (spack#15381)
  Upstreams: don't write metadata directory to upstream DB (spack#15526)
  Creating versions from urls doesn't modify class attributes (spack#15452)
  bugfix: fix install_missing_compilers option bug from v0.14.0 (spack#15416)
  bugfix: installer.py shouldn't be executable (spack#15386)
  Add function replace_prefix_nullterm for use on mach-o rpaths. (spack#15347)
  ArchSpec: fix semantics of satisfies when not concrete and strict is true (spack#15319)
  suite-sparse: fix installation for v5.X (spack#15326)
  testing:  increase installer coverage (spack#15237)
  bugfix: resolve undefined source_pkg_dir failure (spack#15339)
  Bugfix: resolve StopIteration message attribute failure (spack#15341)
  Recover coverage from subprocesses during unit tests (spack#15354)
  Correct pytest.raises matches to match (spack#15346)
  bugfix:  Add dependents when initializing spec from yaml (spack#15220)
  Uniquify suffixes added to module names (spack#14920)
  bugfix: ensure proper dependency handling for package-only installs (spack#15197)
  Fix for being able to 'spack load' packages that have been renamed. (spack#14348)
  ...

# Conflicts:
#	.travis.yml
#	lib/spack/spack/modules/common.py
#	var/spack/repos/builtin/packages/mofem-cephas/package.py
#	var/spack/repos/builtin/packages/mofem-fracture-module/package.py
#	var/spack/repos/builtin/packages/mofem-users-modules/package.py
#	var/spack/repos/builtin/packages/python/package.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something wasn't working, here's a fix fetching
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

spack info errors out with multiple urls
2 participants