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
IPMIView: 2.17.0 -> 2.18.0 #106428
IPMIView: 2.17.0 -> 2.18.0 #106428
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package still doesn't build for me because the hash is not correct and the patchelf issue needs to be resolved. See my comments in #106164. It's okay if you don't know how to fix the libIKVM patching issue by yourself, I can help you if you'd like.
You can try building the derivation yourself via issueing the following command in the root of your nixpkgs git checkout:
$ nix-build . -A ipmiview
these derivations will be built:
/nix/store/lig12cvpbjmm74h4nkid9brhk2fq7bgx-IPMIView_2.18.0_build.201007_bundleJRE_Linux_x64.tar.gz.drv
/nix/store/wffdmz8m03552z4625f0r0xk04hq7s3h-IPMIView-2.18.0.drv
these paths will be fetched (0.00 MiB download, 0.01 MiB unpacked):
/nix/store/1l18i82158dndfx7mdg6wxqjb476lfqg-mirrors-list
copying path '/nix/store/1l18i82158dndfx7mdg6wxqjb476lfqg-mirrors-list' from 'https://cache.nixos.org'...
building '/nix/store/lig12cvpbjmm74h4nkid9brhk2fq7bgx-IPMIView_2.18.0_build.201007_bundleJRE_Linux_x64.tar.gz.drv'...
trying https://www.supermicro.com/wftp/utility/IPMIView/Linux/IPMIView_2.18.0_build.201007_bundleJRE_Linux_x64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 103M 100 103M 0 0 9475k 0 0:00:11 0:00:11 --:--:-- 11.0M
hash mismatch in fixed-output derivation '/nix/store/4mx1wp32ijww8w33znjxnvrv33wr1kz9-IPMIView_2.18.0_build.201007_bundleJRE_Linux_x64.tar.gz':
wanted: sha256:14cl9jhp2wvv5dgv4akkp75nqjz21f6j9pi6743s3rp298rpj095
got: sha256:10cv63yhh81gjxahsg4y3zp4mjivc217m4z1vcpwvvnds46c65h8
cannot build derivation '/nix/store/wffdmz8m03552z4625f0r0xk04hq7s3h-IPMIView-2.18.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/wffdmz8m03552z4625f0r0xk04hq7s3h-IPMIView-2.18.0.drv' failed
|
||
src = fetchurl { | ||
url = "https://www.supermicro.com/wftp/utility/IPMIView/Linux/IPMIView_${version}_build.${buildVersion}_bundleJRE_Linux_x64.tar.gz"; | ||
sha256 = "0ba0694krj2q77zwdn22v2qzjdy52a7ryhgc3m51s7p17ahigz97"; | ||
sha256 = "14cl9jhp2wvv5dgv4akkp75nqjz21f6j9pi6743s3rp298rpj095"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hash is still incorrect
help me, please)
|
So the issue is with the
Here is the complete diff I suggest (click to expand)@@ -31,8 +31,6 @@ stdenv.mkDerivation rec {
''
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/libawt_xawt.so
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ freetype ]}" ./jre/lib/amd64/libfontmanager.so
- patchelf --set-rpath "${gcc-unwrapped.lib}/lib" ./libiKVM64.so
- patchelf --set-rpath "${gcc-unwrapped.lib}/lib" ./libiKVM_v11_64.so
patchelf --set-rpath "${gcc.cc}/lib:$out/jre/lib/amd64/jli" --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./jre/bin/java
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" ./BMCSecurity/${stunnelBinary}
'';
@@ -56,7 +54,7 @@ stdenv.mkDerivation rec {
# WORK_DIR: unfortunately the ikvm related binaries are loaded from
# and user configuration is written to files in the CWD
makeWrapper $out/jre/bin/java $out/bin/IPMIView \
- --set LD_LIBRARY_PATH "${stdenv.lib.makeLibraryPath [ fontconfig ]}" \
+ --set LD_LIBRARY_PATH "${stdenv.lib.makeLibraryPath [ fontconfig gcc-unwrapped.lib ]}" \
--prefix PATH : "$out/jre/bin:${iputils}/bin:${psmisc}/bin" \
--add-flags "-jar $out/IPMIView20.jar" \
--run 'WORK_DIR=''${XDG_DATA_HOME:-~/.local/share}/ipmiview |
@vlaci thx man! build succesed |
3bf2809
to
b943feb
Compare
Just one nitpick, please keep the original commit message header |
b943feb
to
9d22a8b
Compare
fixed |
LGTM Thank you, for the contribution! |
thank you to you! |
Result of 1 package built:
|
@vlaci Hello! when will this task be merged to master? |
As soon as a maintainer with write access picks it up. I can review packages I maintain but I am not able to merge. |
got it |
@mweinelt pls, approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested by logging into an X7SPA board, checking sensors, opening KVM console. LGTM
@mweinelt Hello! When merge this commit to nixpkgs-unstable? I have to create PR for merge? |
The nixpkgs manual contains some information how and when the channels are updated. TL; DR nixpkgs-unstable is usually updated in every few days. No need for additional PR. |
thx! |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)