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

gforge.inria.fr was shut down #19757

Closed
mseri opened this issue Oct 12, 2021 · 14 comments
Closed

gforge.inria.fr was shut down #19757

mseri opened this issue Oct 12, 2021 · 14 comments

Comments

@mseri
Copy link
Member

mseri commented Oct 12, 2021

Many packages some also used by opam are now unavailable. For example mccs is uninstallable because cudf is no longer downloadable.

I think they may have moved to gitlab.inria.fr but I didn’t check. We should probably prioritise this issue

@xavierleroy
Copy link
Contributor

I sent some e-mails concerning CUDF. AFAIK projects were not automatically migrated from gforge.inria.fr to gitlab.inria.fr, but ample early notice was given and tools to help with the migration were provided.

avsm added a commit to avsm/opam-repository that referenced this issue Oct 16, 2021
gforge has been deprecated, so archive is now on a repository
under ocaml/opam-source-archives (with the same checksum).

see ocaml#19757
@avsm
Copy link
Member

avsm commented Oct 16, 2021

I've created a new https://github.com/ocaml/opam-source-archives to host selective archives that are important and prone to disappearance from elsewhere. This should tide us along until the Software Heritage archive is available next year for use with opam 2.2

@xavierleroy
Copy link
Contributor

@zacchiro just moved CUDF to its new home: https://gitlab.com/irill/cudf

Note that dose3 also resides in the same organization: https://gitlab.com/irill/dose3

Hope this helps!

@smorimoto
Copy link
Member

The dose3 archives seem to have different hash values (#19807), and we found a few cases during this transition where the actual code content was slightly different (e.g. #19602). Are they really the same?

@smorimoto
Copy link
Member

If it's not clear, I got a tool from a friend who lives in a different language team that makes it easy to find actual differences and so on, so I can use it to investigate all.

@xavierleroy
Copy link
Contributor

Re: dose3, I was just repeating what @treinen (one the main developers of dose3) mentioned to me by e-mail. I'm pretty sure https://gitlab.com/irill/dose3 is the new home and the place where maintenance and development takes place. I don't know about reproducing the tarballs for versions released before the move to gitlab.com.

@zapashcanon
Copy link
Contributor

Note that everything that was in gforge.inria.fr and in opam has already been archived in swh, e.g. cudf.

@smorimoto
Copy link
Member

I see. And it's good to know that swh already has them!

@abate
Copy link
Contributor

abate commented Oct 19, 2021

reg dose3. A related problem with gitlab is that from time gitlab regenerates tarball of the package. I've seen this problem in the past as well. A workaround that I'll try to quickly implement is to generate and make available on gitlab a tarball that I generate myself. This should avoid hash mismatch in the future. Not sure if this is what happened this time.

If somebody have other ideas how to solve this annoying problem with gitlab, I'm all hears.

@smorimoto
Copy link
Member

Hmm? Does GitLab actually generate files that are not the same? That is quite weird.

@abate
Copy link
Contributor

abate commented Oct 21, 2021

for some reason ( that I don't undestand ), the hash of the tarball generated by gitlab change and this clarly is a probem with opam.
But I think this is not related to this issue I think.

@zacchiro
Copy link

Both tar-ing and gzip-ing are not reproducible operations out of the box. (They of course roundtrip, but there is no guarantee that re-tar-ing or re-gzip-ing the same content will always give you a bit-by-bit identical file.) This is a problem that reproducible builds have encountered many times, and fixed in specific versions of zip and tar, but it depends on what gitlab uses. Why doesn't opam use git clone --depth 1, instead of generated tarballs? But anyway, @abate is right that this looks like an entirely separate issue.

@avsm
Copy link
Member

avsm commented Oct 26, 2021

Why doesn't opam use git clone --depth 1, instead of generated tarballs

opam is simply following the instructions of the maintainers who generate the package description. They claim in the package description that a given tarball has a given checksum, which then proceeds to become false when gitlab/github regenerates the archive.

opam thus cannot distinguish a malicious attack from a simple recompression. In the current model, we'll need package maintainers to ensure their upstream archives don't change. In the medium term, we will likely start hosting the package archives ourselves as it's too much trouble to expect 30,000 packages to remain unchanging upstream.

@hannesm
Copy link
Member

hannesm commented Jan 5, 2025

I'm closing this issue: the opam repository archiving process has identified various missing archives and bad checksums, and has taken measures (if the source tarball couldn't be found, the package has been marked as unavailable). now most packages have been moved to the archive, and some more will follow on february 1st. thanks for the issue and heads up - I hope we have dealt with those packages that we could.

if there are remaining issues or someone finds tarballs with matching checksums, please don't hesitate to open a specific issue.

@hannesm hannesm closed this as completed Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants