Skip to content

garage: use system-libs instead of bundled-libs - #571119

Merged
herbetom merged 2 commits into
NixOS:masterfrom
ethancedwards8:garage
Oct 14, 2026
Merged

herbetom merged 2 commits into
NixOS:masterfrom
ethancedwards8:garage

Conversation

@ethancedwards8

Copy link
Copy Markdown
Member

Related: #570943

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Oct 7, 2026
@herbetom

This comment was marked as outdated.

@herbetom

This comment was marked as outdated.

@herbetom herbetom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems okay to me. I would however go one step further: herbetom@191c331 (only build and tested garage_1 thus far with that patch)

@ethancedwards8

Copy link
Copy Markdown
Member Author

0h nice. feel free to PR into my branch, or open a new PR

@herbetom

herbetom commented Oct 7, 2026

Copy link
Copy Markdown
Member

ethancedwards8#2 i opened a PR but i don't think github can do a fast forward without messing that up. So maybe just hard reset your branch to mine or feel free to squash them together and add me as co-author or something like that.

@ethancedwards8
ethancedwards8 force-pushed the garage branch 2 times, most recently from e769360 to f093685 Compare October 7, 2026 17:49
@herbetom herbetom closed this Oct 7, 2026
@herbetom herbetom reopened this Oct 7, 2026
@herbetom
herbetom self-requested a review October 7, 2026 18:23
@herbetom

This comment was marked as outdated.

@herbetom herbetom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other then the lmdb removal (as to not confuse others) it would be good to change the title of the PR.

In general this looks good as far as i can tell. Hoping this is the last thing i notice. Thanks :)

Co-authored-by: Tom Herbers <[email protected]>
Signed-off-by: Ethan Carter Edwards <[email protected]>
@ethancedwards8 ethancedwards8 changed the title garage: use libsodium over vendored version garage: use system-libs instead of bundled-libs Oct 7, 2026

@herbetom herbetom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me. I did however notice one thing ... openssl also is an input that isn't actually required or changes the output (garage uses rustls).

If you want you can drop that (as well as the OPENSSL_NO_VENDOR env) but i'm also willing to not burden you further and i'll put it on my TODO.

[nix-shell:~/git/NixOS/nixpkgs]$ nom-build -A nixosTests.garage_2 -A nixosTests.garage_1 -A garage_1 -A garage_2
Finished at 00:21:23 after 18s
/nix/store/qd4gjy0ng9k5j7p7a6avsq3cl0z4m4a0-vm-test-run-garage-2.4.1-basic
/nix/store/hggxr1v5j23kvwf779d5f5yjfvkd6h5z-vm-test-run-garage-2.4.1-3node-replication
/nix/store/xmy269mdns5myjipwz25x8wyhnxq4izg-vm-test-run-garage-1.3.1-basic
/nix/store/y8jia6ibnf5mk2f8nnap8d08h3xwzigs-vm-test-run-garage-1.3.1-3node-replication
/nix/store/s3amjy44n0q8048r1y48zlm0g0scaa8d-garage-1.3.1
/nix/store/3cxr3b8sg7790j82cwm4dxm48b3gjznw-garage-2.4.1

[nix-shell:~/git/NixOS/nixpkgs]$ ldd /nix/store/fc4v9d8j8rxf15v4j0r42izy3p2z36r5-garage-1.3.1/bin/garage | grep -E "(sodium|sqli|zstd)"
	libzstd.so.1 => /nix/store/ph4ib8mxy5yrw40k7a1l03bfd58hq6wj-zstd-1.5.7/lib/libzstd.so.1 (0x000079407ed97000)
	libsqlite3.so => /nix/store/9x0m6s73sg89fv5awb95vsac2mbns8n0-sqlite-3.53.3/lib/libsqlite3.so (0x000079407ebe6000)
	libsodium.so.26 => /nix/store/jn3b4qd96ni82spqlsdvrxfw201p8d7a-libsodium-1.0.22-unstable-2026-08-13/lib/libsodium.so.26 (0x000079407eb4d000)

[nix-shell:~/git/NixOS/nixpkgs]$ ldd /nix/store/isp14hn8d5gcc4flxspdp49y313v7q36-garage-2.4.1/bin/garage | grep -E "(sodium|sqli|zstd)"
	libzstd.so.1 => /nix/store/ph4ib8mxy5yrw40k7a1l03bfd58hq6wj-zstd-1.5.7/lib/libzstd.so.1 (0x000074b5b4195000)
	libsqlite3.so => /nix/store/9x0m6s73sg89fv5awb95vsac2mbns8n0-sqlite-3.53.3/lib/libsqlite3.so (0x000074b5b3fe4000)
	libsodium.so.26 => /nix/store/jn3b4qd96ni82spqlsdvrxfw201p8d7a-libsodium-1.0.22-unstable-2026-08-13/lib/libsodium.so.26 (0x000074b5b3f4b000)

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Oct 8, 2026
@teutat3s teutat3s added the backport release-26.05 Backport PR automatically label Oct 8, 2026
It's an unnecessary input we do not need.
@herbetom

Copy link
Copy Markdown
Member

I've now added a commit that applies the openssl build input drop myself so that these changes can be merged in a bundled fashion. I hope that's okay.

@herbetom
herbetom added this pull request to the merge queue Oct 14, 2026
Merged via the queue into NixOS:master with commit ff097a3 Oct 14, 2026
27 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants