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

[RDY] wireshark: run binary from nix-shell #40204

Merged
merged 1 commit into from
May 9, 2018
Merged

Conversation

teto
Copy link
Member

@teto teto commented May 9, 2018

when in a shell, export variable WIRESHARK_RUN_FROM_BUILD_DIRECTORY to be able to run the newly built wireshark
else one get:
./build/run/wireshark: error while loading shared libraries: libwscodecs.so.0: cannot open shared object file: No such file or directory

see #29638

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
bruth Byron Ruth
when in a shell, export variable WIRESHARK_RUN_FROM_BUILD_DIRECTORY to be able to run the newly built wireshark
else one get:
./build/run/wireshark: error while loading shared libraries: libwscodecs.so.0: cannot open shared object file: No such file or directory

see NixOS#29638
@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: wireshark

Partial log (click to expand)

shrinking /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6/bin/tfshark
shrinking /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6/bin/tshark
shrinking /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6/bin/wireshark
gzipping man pages under /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6/share/man/
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6/lib  /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6/bin
patching script interpreter paths in /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6
checking for references to /build in /nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6...
postPatchMkspecs
/nix/store/pvkjyshfz37zs88id23s4yvzwma3hr7d-wireshark-qt-2.4.6

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: wireshark

Partial log (click to expand)

shrinking /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6/lib/wireshark/extcap/androiddump
shrinking /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6/lib/wireshark/extcap/ciscodump
shrinking /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6/lib/wireshark/extcap/sshdump
gzipping man pages under /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6/lib  /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6/bin
patching script interpreter paths in /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6
checking for references to /build in /nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6...
postPatchMkspecs
/nix/store/69zwx7g46759ybjqcmmyqjhfp06dn18x-wireshark-qt-2.4.6

@FRidh
Copy link
Member

FRidh commented May 9, 2018

cc maintainer @bjornfor

@FRidh FRidh added the 0.kind: enhancement Add something new label May 9, 2018
@xeji xeji merged commit c85d0be into NixOS:master May 9, 2018
@teto teto deleted the wireshark_hook branch May 10, 2018 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants