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

tsm-client: 8.1.23.0 -> 8.1.24.0 #345039

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

Yarny0
Copy link
Contributor

@Yarny0 Yarny0 commented Sep 28, 2024

Description of changes

Update tsm-client to newest version, published 2024-09-27 .

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

More:

  • Both test derivations (cli and gui) build/pass.
  • Successfully tested with a real tsm-server: uploaded some files for backup without errors/problems.

Result of nixpkgs-review run on x86_64-linux 1

1 package blacklisted:
  • nixos-install-tools
2 packages built:
  • tsm-client
  • tsm-client-withGui

Add a 👍 reaction to pull requests you find important.

Also, all URLs in package and module comments are updated.

At the time of this writing, the "Update History" page
(release notes) for tsm-client >=8.1.19 does not list any
"APARs" ("Authorized Program Analysis Reports") for 8.1.24.0.
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Sep 28, 2024
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Sep 28, 2024
@pbsds
Copy link
Member

pbsds commented Sep 30, 2024

env -i ldd gives me

results/tsm-client/dsm_dir/plugins/netappmgm/libssl.so.3: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libcrypto.so.3: version `OPENSSL_3.3.0' not found (required by results/tsm-client/dsm_dir/plugins/netappmgm/libssl.so.3)
results/tsm-client/dsm_dir/plugins/netappmgm/libcurl.so: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libssl.so.3: version `OPENSSL_3.2.0' not found (required by results/tsm-client/dsm_dir/plugins/netappmgm/libcurl.so)
results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libcurl.so: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libssl.so.3: version `OPENSSL_3.2.0' not found (required by results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libcurl.so)
results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libssl.so.3: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libcrypto.so.3: version `OPENSSL_3.3.0' not found (required by results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libssl.so.3)

Is this expected?

@pbsbot
Copy link

pbsbot commented Sep 30, 2024

Result of nixpkgs-review pr 345039 run on x86_64-linux 1

2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
2 packages built:
  • tsm-client
  • tsm-client-withGui

@Yarny0
Copy link
Contributor Author

Yarny0 commented Oct 1, 2024

env -i ldd gives me

results/tsm-client/dsm_dir/plugins/netappmgm/libssl.so.3: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libcrypto.so.3: version `OPENSSL_3.3.0' not found (required by results/tsm-client/dsm_dir/plugins/netappmgm/libssl.so.3)
results/tsm-client/dsm_dir/plugins/netappmgm/libcurl.so: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libssl.so.3: version `OPENSSL_3.2.0' not found (required by results/tsm-client/dsm_dir/plugins/netappmgm/libcurl.so)
results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libcurl.so: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libssl.so.3: version `OPENSSL_3.2.0' not found (required by results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libcurl.so)
results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libssl.so.3: /nix/store/a54g4lwm3wgzz0y9k9f6cd37ijhdnybq-tsm-client-8.1.24.0-unwrapped/opt/tivoli/tsm/client/api/bin64/libcrypto.so.3: version `OPENSSL_3.3.0' not found (required by results/tsm-client/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/libssl.so.3)

Is this expected?

Uh-ou .. no, I didn't expect that. This is new, but it doesn't affect core functionality. It seems they changed something about their ssl libraries.

I played around a bit with openssl and patchelf and finally managed to patch these incompatibility messages away with this patch:

patch
diff --git i/pkgs/by-name/ts/tsm-client/package.nix w/pkgs/by-name/ts/tsm-client/package.nix
index bf65c8d0cadc..d9850f1934e7 100644
--- i/pkgs/by-name/ts/tsm-client/package.nix
+++ w/pkgs/by-name/ts/tsm-client/package.nix
@@ -14,6 +14,7 @@
 , jdk  # Java GUI (needed for `enableGui`)
 , buildEnv
 , makeWrapper
+, openssl_3_3
 , enableGui ? false  # enables Java GUI `dsmj`
 # path to `dsm.sys` configuration files
 , dsmSysCli ? "/etc/tsm-client/cli.dsm.sys"
@@ -161,6 +162,16 @@ let
       do
         ln --symbolic --force --no-target-directory "$out$(readlink "$link")" "$link"
       done
+      autoPatchelf -- $out
+    '';
+
+    dontAutoPatchelf = true;
+
+    postFixup = ''
+      for so in $out/opt/tivoli/tsm/client/ba/bin/plugins/netappmgm/{libssl.so.3,libcurl.so}
+      do
+        patchelf --set-rpath "${lib.makeLibraryPath [ openssl_3_3 ]}:$(patchelf --print-rpath $so)" $so
+      done
     '';
   });

However, I'm reluctant to adding this code to the pull request (that's why I'm documenting it here instead):

Those libraries seem to be related to some "NetApp" connectivity. I'm not using this and I cannot judge if that is improved or otherwise changed in any way by the patch above. I suspect that IBM's itention here is that those libraries are linked within the package and something went wrong ... and is hopefully fixed in the next release. If the patch above is applied, it might break whatever those libraries attempt to accomplish with the next update.

Therefore I suggest to not touch this now and wait if a user of the NetApp functionality comes up with a bug report. Then, with the help of that user, we should be able to find a sustainable solution.

What do you think about this, @pbsds ?

@pbsds
Copy link
Member

pbsds commented Oct 4, 2024

Great investigative work! If you the maintainer is not comfortable shipping a patch then i'm fine leaving it

@pbsds pbsds merged commit 986e6d4 into NixOS:master Oct 4, 2024
30 checks passed
@Yarny0 Yarny0 deleted the tsm-client-8124-update branch October 5, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants