summary refs log tree commit diff
path: root/pkgs/tools/backup/rsbep
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2021-12-18 13:49:54 +0100
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2022-01-17 12:09:27 +0100
commit66d068bf66f8e5f55c589ff4c6114c0773c4ee70 (patch)
tree757e8aa76c33ea02a1586197d5a34b33a349cc99 /pkgs/tools/backup/rsbep
parentf6dca95c5dc8ab63322e439ae33a148877838ba9 (diff)
downloadnixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.tar
nixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.tar.gz
nixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.tar.bz2
nixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.tar.lz
nixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.tar.xz
nixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.tar.zst
nixpkgs-66d068bf66f8e5f55c589ff4c6114c0773c4ee70.zip
tsm-client: use rpm source instead of deb/Ubuntu
IBM publishes their IBM Spectrum Protect client
for Linux in two flavors:

* "Linux x86_64 client"
* "Linux x86_64 Ubuntu client"

Up to this commit, nixpkgs used the Ubuntu
flavor to build its `tsm-client` derivation.
However, the history of published archive files in

* https://public.dhe.ibm.com/storage/tivoli-storage-management/maintenance/client/v8r1/Linux/
* https://public.dhe.ibm.com/storage/tivoli-storage-management/patches/client/v8r1/Linux/

suggests that updates in the fourth level of
the version numbers (e.g. 8.1.13.0 -> 8.1.13.1)
do not get published as Ubuntu flavor.
It order to be able to always use the latest release,
this commit switches to the non-Ubuntu flavor.
The non-Ubuntu archive contains rpm files,
so this commit switches from `ar` to `rpmextract`.
Instead of unpacking all deb files,
the build recipe now unpacks all _but one_ rpm file:
The file `TIVsm-WEBGUI.x86_64.rpm` apparently
contains a plugin that is not included
in the Ubuntu version (see note below).
Comparing the old and the new derivation's output indicates
that this choice minimizes the difference between the results:

The output of the old (Ubuntu flavor) derivation contains:
* `commons-codec-1.6.jar`
* `share/` with changelog and copyright information
  for the packages `gskssl64` and `gskcrypt64`

The output of the new (non-Ubuntu flavor) derivation contains:
* `lib64`, symlink to `lib`
* `commons-codec-1.14.jar`
* `opt/tivoli/tsm/license/{api,baclient}/sm/`
  with license agreement files in many languages

Besides these differences, the outputs' file names are equal.

Note: I don't know what functionality
`TIVsm-WEBGUI.x86_64.rpm` actually provides.
Unpacking it with the other rpm files makes patchelf complain
about missing X11 libraries, so in order to include it here,
one would likely need to add those to `buildInputs`.
However, as the old (Ubuntu flavor) `tsm-client` package
did not contain this functionality and as I cannot test
or use it in any way, I opted to not include it now.
If we want to include this with a later commit,
we should add another package build option (like `enableGui`)
so that the default `tsm-client` package does not pull in
X11 libraries and its closure size therefore stays small.
Diffstat (limited to 'pkgs/tools/backup/rsbep')
0 files changed, 0 insertions, 0 deletions