Skip to content

Release conf-libelf #27922

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

Merged
merged 6 commits into from
Jun 19, 2025
Merged

Release conf-libelf #27922

merged 6 commits into from
Jun 19, 2025

Conversation

af-afk
Copy link
Contributor

@af-afk af-afk commented May 25, 2025

Add conf-libelf virtual package for libelf.

Copy link
Contributor

@jmid jmid left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! 😃 🙏

Here's a couple of comments - incl. a missing dependency, which I believe is the cause of lots of the CI red lights.

It should also be possible to extend the PR a bit further, e.g.,

bug-reports: "https://github.com/ocaml/opam-repository/issues"
build: ["pkg-config" "--exists" "libelf"]
depexts: [
["libelf-dev"] {os-family = "debian"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
["libelf-dev"] {os-family = "debian"}
["libelf-dev"] {os-family = "debian" | os-family = "ubuntu"}

Otherwise this is going to fail on

]
synopsis: "Virtual package relying on libelf"
description:
"This package can only install if libelf is installed on the system."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"This package can only install if libelf is installed on the system."
"This package can only install if libelf is installed on the system."
depends: ["conf-pkg-config" {build}]

The package test depends on pkg-config, so this should state a dependency on it.
This is the reason for CI failures # [ERROR] Command not found: pkg-config.

@af-afk
Copy link
Contributor Author

af-afk commented May 30, 2025

@jmid Thank you for your feedback on this PR, and for identifying improvements to get it working on the different operating systems! I've committed your feedback, could you please let me know if this is enough?

Copy link
Contributor

@jmid jmid left a comment

Choose a reason for hiding this comment

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

Thanks, this is shaping up nicely with lots of green CI lights! 🙂

I see failures on Alpine, Fedora, and OpenSuse, which I think can be handled without too much effort, ensure broad support, and will save us from having to revise this repeatedly. I therefore suggest a couple of small changes to handle those platforms.

With luck, with these latest changes we are down to just a Windows failure, which I think is fair to leave for later.

In case someone is interested, I figured out one can search pkgs.org for the relevant .pc file, in this case: https://pkgs.org/search/?q=libelf.pc

af-afk and others added 2 commits June 17, 2025 17:42
Co-authored-by: Jan Midtgaard <mail@janmidtgaard.dk>
Co-authored-by: Jan Midtgaard <mail@janmidtgaard.dk>
@af-afk
Copy link
Contributor Author

af-afk commented Jun 17, 2025

@jmid thanks again for your addition to this! I've just committed your changes using the web interface. Please let me know if this is sufficient! :)

Co-authored-by: Jan Midtgaard <mail@janmidtgaard.dk>
Copy link
Contributor

@jmid jmid left a comment

Choose a reason for hiding this comment

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

All green! (except on Windows which we've agreed can be done separately)

This should be good to go 😃

@shonfeder
Copy link
Contributor

Thank you for the review guidance, @jmid. Thank you for publishing the useful package, @af-afk !

@shonfeder shonfeder merged commit d867a3a into ocaml:master Jun 19, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants