Skip to content

ocaml: Fix version conversion process#13749

Merged
adamjstewart merged 1 commit intospack:developfrom
noguchi-k:ocaml/fix_url
Nov 26, 2019
Merged

ocaml: Fix version conversion process#13749
adamjstewart merged 1 commit intospack:developfrom
noguchi-k:ocaml/fix_url

Conversation

@noguchi-k
Copy link
Copy Markdown
Contributor

The download url of the ocaml package was invalid because the following error occurred.
"The requested url returned error: 404 Not Found"

The purpose is to convert the version 4.06.0 to 4.06
But, when using up_to, 4.06 was converted to 4.6.

http://caml.inria.fr/pub/distrib/ocaml-4.6/ocaml-4.06.0.tar.gz
http://caml.inria.fr/pub/distrib/ocaml-4.06/ocaml-4.06.0.tar.gz

So I converted the string of version in the recipe without using up_to.

@noguchi-k noguchi-k closed this Nov 15, 2019
@noguchi-k noguchi-k reopened this Nov 15, 2019
@adamjstewart
Copy link
Copy Markdown
Member

I'm wondering if we should fix this more generally. The culprit for this bug is https://github.com/spack/spack/blob/develop/lib/spack/spack/version.py#L112. But this line has been there for 7 years, so I have no idea what the consequences of removing int_if_int would be. @tgamblin @becker33 @scheibelp @alalazo any thoughts?

@adamjstewart
Copy link
Copy Markdown
Member

Merging this for now just so we can get OCaml working again. We should still think about whether we want to fix this more generally.

@adamjstewart adamjstewart merged commit 18cf751 into spack:develop Nov 26, 2019
@noguchi-k
Copy link
Copy Markdown
Contributor Author

Thank you.

@noguchi-k noguchi-k deleted the ocaml/fix_url branch November 29, 2019 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants