Skip to content

Conversation

zapashcanon
Copy link
Contributor

@zapashcanon zapashcanon commented Mar 18, 2025

rust-lld is provided by the rustc package which should provided by the dependency on conf-rust which depends on cargo

provided by the rustc package which should provided by the dependency on
conf-rust which depends on cargo
@zapashcanon
Copy link
Contributor Author

I don't understand where does the error come from for Ubuntu:

[ERROR] Package conf-rust-llvm.1 depends on the unavailable system package 'rust-llvm'. You can use `--no-depexts' to attempt installation anyway.

Because I removed the depext on rust-llvm in this case. Is there something weird going on like the Debian packages being inherited on Ubuntu or something?

@mseri
Copy link
Member

mseri commented Mar 20, 2025

@zapashcanon do you know in which version of ubuntu it started being provided by the rustc package? I could not find it

@zapashcanon
Copy link
Contributor Author

zapashcanon commented Mar 20, 2025

Why did you remove it on Debian? It should stay there, this package exists and is required in Debian.

Regarding Ubuntu, I'm not sure about the version (it seems it has always been there), but you can see rust-lld being provided by rustc here:

https://packages.ubuntu.com/search?searchon=contents&keywords=rust-lld&mode=exactfilename&suite=oracular&arch=any

Also, did you see my previous question? Why is the CI trying to install the rust-llvm depext in Ubuntu? It should not do it and I don't understand why it does.

@mseri
Copy link
Member

mseri commented Mar 20, 2025

I don’t see it being installed in the ci. It fails to find rust-lld

@zapashcanon
Copy link
Contributor Author

Isn't it simply because you removed it from Debian? It was installing it in the beginning and I suspect something is going on between Debian and Ubuntu. Are packages specified for debian family installed on ubuntu?

@mseri
Copy link
Member

mseri commented Mar 20, 2025

Isn't it simply because you removed it from Debian? It was installing it in the beginning and I suspect something is going on between Debian and Ubuntu. Are packages specified for debian family installed on ubuntu?

I thought they would not, since the family filter is different

@zapashcanon
Copy link
Contributor Author

zapashcanon commented Mar 20, 2025

Well, it seems it is now trying to install it again: https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/d29c58d5a87cd15d0a0834def4b71d5ce1592e70/variant/distributions,ubuntu-24.10-ocaml-5.3,conf-rust-llvm.1

[ERROR] Package conf-rust-llvm.1 depends on the unavailable system package 'rust-llvm'. You can use `--no-depexts' to attempt installation anyway.

Do you have any clue about why it does so?

EDIT: I tried changing os-family to os-distribution for Debian to see if it prevents the Ubuntu run to install it.

@shonfeder shonfeder changed the title remove rust-llvm depext for conf-rust-llvm in ubuntu, rust-lld is remove rust-llvm depext for conf-rust-llvm in ubuntu Mar 20, 2025
@mseri
Copy link
Member

mseri commented Mar 20, 2025

ubuntu seems to be still failing

@zapashcanon
Copy link
Contributor Author

ubuntu seems to be still failing

Indeed, but at least it was not trying to install the rust-llvm package anymore. It seems that os-family = debian will actually be used by Ubuntu. So we should use os-distribution.

Now, I have to understand why rust-lld is not found when it should come with rustc on Ubuntu. I think adding rustc as a direct depext is a good first step, let's see how it goes.

@zapashcanon
Copy link
Contributor Author

OK, there's something weird going on. Is there a Docker image I can run to get an environment that is the same as what is run on the CI (the Ubuntu one)? I had a quick look at the ocurrent/opam-repo-ci README but did not find anything

@mseri
Copy link
Member

mseri commented Mar 21, 2025

I am on mobile and cannot copy paste comfortably, but you can find the instruction to reproduce the environment on the top of the logs

@mseri
Copy link
Member

mseri commented Mar 26, 2025

Fedora and ubuntu still seem to have issues. Not sure how to proceed

@zapashcanon
Copy link
Contributor Author

zapashcanon commented Mar 26, 2025

Yes, I made some progress locally, I'll get back to it soon.

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.

3 participants