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

[FC-41616] overlay: add patchelf-venv #1165

Draft
wants to merge 1 commit into
base: fc-24.05-dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions changelog.d/20241113_135856_FC-41616-patched-patchelf_scriv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--

A new changelog entry.

Delete placeholder items that do not apply. Empty sections will be removed
automatically during release.

Leave the XX.XX as is: this is a placeholder and will be automatically filled
correctly during the release and helps when backporting over multiple platform
branches.

-->

### Impact

- None.


### NixOS XX.XX platform

- Adds a package `patchelf-venv` to the platform overlay which contains an implementation
for the option `--add-rpath-and-shrink`.
12 changes: 12 additions & 0 deletions pkgs/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,18 @@ builtins.mapAttrs (_: patchPhps phpLogPermissionPatch) {

opensearch-dashboards = super.callPackage ./opensearch-dashboards { };

patchelf-venv = super.patchelf.overrideAttrs ({ patches ? [], ... }: {
patches = patches ++ [
# Adds `--add-rpath-and-shrink` option, required for convergent deployment
# tooling invoking `patchelf` multiple times on a virtualenv (see
# `batou_ext.python.FixELFRunPath`)
(fetchpatch {
url = "https://github.com/flyingcircusio/patchelf/commit/6ffde887d77275323c81c2e091891251b021abb3.patch";
hash = "sha256-4Qct2Ez3v6DyUG26JTWt6/tkaqB9h1gYaoaObqhvFS8=";
})
];
});

percona = self.percona80;
percona-toolkit = super.perlPackages.PerconaToolkit.overrideAttrs(oldAttrs: {
# The script uses usr/bin/env perl and the Perl builder adds PERL5LIB to it.
Expand Down
1 change: 1 addition & 0 deletions release/important_packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
"openssl_1_1",
"openssl_3",
"openvpn",
"patchelf-venv",
"pcre",
"pcre2",
"percona",
Expand Down
Loading