Skip to content

Reapply "meson: add soversion to libraries (#13960)"#13979

Closed
Mic92 wants to merge 1 commit intoNixOS:masterfrom
Mic92:soname
Closed

Reapply "meson: add soversion to libraries (#13960)"#13979
Mic92 wants to merge 1 commit intoNixOS:masterfrom
Mic92:soname

Conversation

@Mic92
Copy link
Copy Markdown
Member

@Mic92 Mic92 commented Sep 13, 2025

This reverts commit 0db2b8c.

This was original reverted to give the impression of an stable ABI.

However version 0, from the looks of it this is in conventional Linux distribtion is not considered stable but a preparation to avoid conflict with future stable versions.

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_downstream_so_name_versioning

I don't really see any downside on our side to add this and follow conventions here.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This reverts commit 0db2b8c.

This was original reverted to give the impression of an stable ABI.

However version 0, from the looks of it this is in conventional Linux distribtion
is not considered stable but a preparation to avoid conflict with future
stable versions.

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_downstream_so_name_versioning

I don't really see any downside on our side to add this and follow conventions here.
@github-actions github-actions bot added fetching Networking with the outside (non-Nix) world, input locking c api Nix as a C library with a stable interface labels Sep 13, 2025
@Mic92 Mic92 requested a review from xokdvium September 13, 2025 08:23
@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Sep 13, 2025

@juhp

@github-project-automation github-project-automation bot moved this to Triage in Nix team Sep 13, 2025
@juhp
Copy link
Copy Markdown
Contributor

juhp commented Sep 15, 2025

Well maybe using the soversion same as the nix version would be more to your liking?

@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Sep 15, 2025

Well maybe using the soversion same as the nix version would be more to your liking?

I think 0 is better because we are not really doing abi versioning.

@juhp
Copy link
Copy Markdown
Contributor

juhp commented Sep 15, 2025

I opened an alternative PR #13995 which makes the SONAME in sync with nix versions.

juhp added a commit to juhp/nix that referenced this pull request Sep 15, 2025
…3960, NixOS#13979)

remove 'pre' version suffix for non-releases (chokes Darwin ld)
juhp added a commit to juhp/nix that referenced this pull request Sep 15, 2025
…3960, NixOS#13979)

remove 'pre' version suffix for non-releases (chokes Darwin ld)
@Mic92
Copy link
Copy Markdown
Member Author

Mic92 commented Sep 15, 2025

I prefer #13995 (review)

@Mic92 Mic92 closed this Sep 15, 2025
@Mic92 Mic92 deleted the soname branch September 15, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c api Nix as a C library with a stable interface fetching Networking with the outside (non-Nix) world, input locking

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants