Skip to content

Bug fix for ca-certificates-mozilla/package.py to enable spack install --source#32953

Merged
haampie merged 4 commits intospack:developfrom
climbfuji:bugfix/ca_certificates_mozilla_install_source
Oct 4, 2022
Merged

Bug fix for ca-certificates-mozilla/package.py to enable spack install --source#32953
haampie merged 4 commits intospack:developfrom
climbfuji:bugfix/ca_certificates_mozilla_install_source

Conversation

@climbfuji
Copy link
Copy Markdown
Contributor

Bug fix in var/spack/repos/builtin/packages/ca-certificates-mozilla/package.py to enable spack install --source.

Fixes #32948

…ackage.py to enable 'spack install --source'
@spackbot-app spackbot-app bot requested a review from haampie October 3, 2022 14:06
@climbfuji climbfuji marked this pull request as ready for review October 3, 2022 14:28
@haampie
Copy link
Copy Markdown
Member

haampie commented Oct 3, 2022

Wouldn't it be better to put the sources in <prefix>/.spack/src or so? Then it's guaranteed not to clash.

Comment on lines +124 to +128
mkdir(share)
# https://github.com/spack/spack/issues/32948
if not os.path.isdir(share):
mkdir(share)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe mkdirp() from llnl.util.filesystem (implicitly imported from spack.package) does this check for you!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And @haampie it might avoid having to decide whether to introduce the <prefix>/.spack/src convention if that's not used elsewhere yet.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@climbfuji if you do choose to use mkdirp() here I would still retain the link to #32948, that's a helpful comment for later readers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to put the sources in <prefix>/.spack/src or so? Then it's guaranteed not to clash.

Probably, but spack install --source doesn't take an argument, that's something for the spack developers to decide/change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@climbfuji if you do choose to use mkdirp() here I would still retain the link to #32948, that's a helpful comment for later readers.

Thanks, yes, I will do this later today.

@haampie
Copy link
Copy Markdown
Member

haampie commented Oct 3, 2022

Ah, I did not realize Spack puts sources in <prefix>/share/<pkg name>/src. I suppose fixing ca-certificates-mozilla is fine then.

@haampie haampie enabled auto-merge (squash) October 3, 2022 17:32
@climbfuji
Copy link
Copy Markdown
Contributor Author

I tried mkdirp() and it worked as expected.

Copy link
Copy Markdown
Contributor

@cosmicexplorer cosmicexplorer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for diving in to fix this!!

@haampie
Copy link
Copy Markdown
Member

haampie commented Oct 4, 2022

@spackbot run pipeline

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Oct 4, 2022

I've started that pipeline for you!

@haampie haampie merged commit 8af1802 into spack:develop Oct 4, 2022
luke-dt pushed a commit to dantaslab/spack that referenced this pull request Oct 4, 2022
adamjstewart added a commit that referenced this pull request Oct 8, 2022
…(py-dendropy, py-phylophlan, py-pkgconfig) (#32936)

* added metaphlan v4, cleaned up phylophlan

* added iqtree2

* fixed phylophlan, builds now

* changed config.yaml to default

* fixed style

* py-jsonschema: add 4.16.0 and new package py-hatch-fancy-pypi-readme (#32929)

* acfl: add v22.1 (#32915)

Co-authored-by: Annop Wongwathanarat <[email protected]>

* Fixup errors introduced by Clingo Pr: (#32905)

* re2c depends on cmake on Windows
* Winbison properly added to bootstrap package search list

* Set CMAKE_HIP_ARCHITECTURES with the value of amdgpu_target (#32901)

* libtiff: default to +zlib+jpeg (#32945)

* octave: add version 7.2.0 (#32943)

* simgrid new releases (#32920)

* [rocksdb] Added rtti variant (#32918)

* rvs binary path updated for 5.2 rocm release (#32892)

* Add checksum for py-pytest-runner 6.0.0 (#32957)

* py-einops: add v0.5.0 (#32959)

* Replace repo with the NVIDIA one (#32951)

* Add checksum for py-tomli 2.0.1 (#32949)

* QMCPACK: add @3.15.0 (#32931)

* Tidied up configure arguments to use special spack autotools features. (#32930)

* casper: old domain fell off, adding github repo (#32928)

* unifyfs: pin mercury version; add boost variant (#32911)

Mercury has a new version (v2.2) releasing soon that UnifyFS does not build with and hasn't been tested with. This pins UnifyFS to the last version of Mercury used/tested.

Add a variant to avoid building/using boost

Append -std=gnu99 to cflags if building with gcc@4. Needed for mochi-margo to compile

* trilinos: constrain superlu-dist version (#32889)

* trilinos: constrain superlu-dist version for 13.x
* syntax

* FEniCSx: Updates for 0.5.1 (#32665)

* Updates for DOLFINx 0.5.1 and associated packages
* xtensor needed on anything less than main
* Switch back to Python 3.7 minimum.
* Might be good to point out in our README how to fix Python version?
* Fix basix, xtensor dep
* Add numba feature
* Fix checksum
* Make slepc optional

Co-authored-by: Tamara Dahlgren <[email protected]>

* simgrid: add variant and remove flag (#32797)

* simgrid: remove std c++11 flag
* simgrid: add msg variant

* Axom: bring in changes from axom repo (#32643)

* bring in changes from axom repo

Co-authored-by: white238 <[email protected]>
Co-authored-by: Tamara Dahlgren <[email protected]>

* Add checksum for py-pyparsing 3.0.9 (#32952)

* rdma-core: fix syntax for external discoverability (#32962)

* Add checksum for py-flatbuffers 2.0.7 (#32955)

* amrex: add v22.10 (#32966)

* Remove CMakePackage.define alias from most packages (#32950)

* Bug fix for `ca-certificates-mozilla/package.py` to enable `spack install --source` (#32953)

* made suggested changes to iqtree2, py-dendropy, py-metaphlan, and py-pkgconfig. Poetry install still broken

* reverted py-pkgconfig deps to poetry-core

* made iqtree2 less dedundant, changes to py-dendropy and py-pkgconfig deps

Co-authored-by: Manuela Kuhn <[email protected]>
Co-authored-by: Annop Wongwathanarat <[email protected]>
Co-authored-by: Annop Wongwathanarat <[email protected]>
Co-authored-by: John W. Parent <[email protected]>
Co-authored-by: Auriane R <[email protected]>
Co-authored-by: Adam J. Stewart <[email protected]>
Co-authored-by: Kai Torben Ohlhus <[email protected]>
Co-authored-by: Vinícius <[email protected]>
Co-authored-by: Matthieu Dorier <[email protected]>
Co-authored-by: renjithravindrankannath <[email protected]>
Co-authored-by: iarspider <[email protected]>
Co-authored-by: Paul R. C. Kent <[email protected]>
Co-authored-by: Brian Van Essen <[email protected]>
Co-authored-by: snehring <[email protected]>
Co-authored-by: Cameron Stanavige <[email protected]>
Co-authored-by: Cody Balos <[email protected]>
Co-authored-by: Jack S. Hale <[email protected]>
Co-authored-by: Tamara Dahlgren <[email protected]>
Co-authored-by: Lucas Nesi <[email protected]>
Co-authored-by: Chris White <[email protected]>
Co-authored-by: white238 <[email protected]>
Co-authored-by: Martin Pokorny <[email protected]>
Co-authored-by: Weiqun Zhang <[email protected]>
Co-authored-by: Massimiliano Culpo <[email protected]>
Co-authored-by: Dom Heinzeller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

spack install --source not working for ca-certificates-mozilla

3 participants