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

[WIP] radare2: 2.7.0 -> 2.8.0, radare2-cutter: 1.6 -> 1.7, refactor #44650

Merged
merged 5 commits into from Aug 22, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Aug 8, 2018

  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
    • works-for-me ;)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: radare2

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: radare2

Partial log (click to expand)

shrinking /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/lib/libr_crypto.so.2.8.0
shrinking /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/lib/libr_hash.so.2.8.0
shrinking /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/lib/libr_util.so.2.8.0
gzipping man pages under /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/share/man/
strip is /nix/store/zrs21zqcchgyabjf4xfimncdq16njizc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/lib  /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/bin
patching script interpreter paths in /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0
/nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0/bin/r2pm: interpreter directive changed from "/bin/sh" to "/nix/store/6vqgi9d49smsbr2qxra52yhipg0yxf9f-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0...
/nix/store/6bz150515jy2vivgw6syfwvxpa01b9lx-radare2-2.8.0

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: radare2

Partial log (click to expand)

shrinking /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/bin/rasm2
shrinking /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/bin/r2agent
shrinking /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/bin/rahash2
gzipping man pages under /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/lib  /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/bin
patching script interpreter paths in /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0
/nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0/bin/r2pm: interpreter directive changed from "/bin/sh" to "/nix/store/dkh7l9a4sx7zqh8riqbj3z21sz25p8xy-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0...
/nix/store/ixy8knlak75s0fb79clwix5z8b2yln2b-radare2-2.8.0

@dtzWill dtzWill requested a review from Mic92 August 8, 2018 01:33
@Mic92
Copy link
Member

Mic92 commented Aug 8, 2018

Now we have a problem that we check CS_TIP, which breaks radare2-for-cutter:

unpacking source archive /nix/store/7jx11qyfkdswvwhqnz20v6m703rk94sg-source
source root is source
patching sources
CS_TIP mismatch
builder for '/nix/store/99phyhxdssng0i5lb5vwmklk05nph36q-radare2-for-cutter-1.6.drv' failed with exit code 1

It is probably the best to move radare2-cutter to the radare2 directory and let it have its own pinning.

Regarding update.py:

if len(sys.argv) > 2:
  expression_file = sys.argv[1]
else:
  expression_file = "default.nix"

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: radare2, radare2-cutter

Partial log (click to expand)

cannot build derivation '/nix/store/p7xi7nmizxak273gc03qlc7822f957aa-qtsvg-5.11.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/hyw3awsisl0v50pr84f5hpy2f5dldzk9-qtxmlpatterns-5.11.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/kvk249wsmallnsxxxmc4id9z47lrjmi1-qtdeclarative-5.11.1.drv': 4 dependencies couldn't be built
cannot build derivation '/nix/store/crgiwiaka5gslhdvjjc3f0ix1h4ngr9a-qtmultimedia-5.11.1.drv': 5 dependencies couldn't be built
cannot build derivation '/nix/store/p7dx0sjdwf7fzvf63kbv72djzgw6fkha-qtquickcontrols-5.11.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/81l0xn5xj7cln2sbqalx5a9711449la9-qtwebchannel-5.11.1.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/c7fqkdw7lykxvshzm8871hjv9kbiw0qj-qtlocation-5.11.1.drv': 3 dependencies couldn't be built
cannot build derivation '/nix/store/cwmkbvbagd1dy9v4bfsiv7lg851qpg1q-qtwebengine-5.11.1.drv': 6 dependencies couldn't be built
cannot build derivation '/nix/store/rgjv46vgwk8hj7fcawhlrmzqybbnki0v-radare2-cutter-1.6.drv': 4 dependencies couldn't be built
error: build of '/nix/store/rgjv46vgwk8hj7fcawhlrmzqybbnki0v-radare2-cutter-1.6.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: radare2-cutter

The following builds were skipped because they don't evaluate on x86_64-darwin: radare2

Partial log (click to expand)

/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_fs.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_core.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_magic.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_parse.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_asm.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_debug.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_util.2.8.0-git.dylib: fixing dylib
/nix/store/9nq2zkj8a44vqawv5xp8hjk4ll55xij3-radare2-for-cutter-1.6/lib/libr_bp.2.8.0-git.dylib: fixing dylib
cannot build derivation '/nix/store/hncvk2b3xb8y22xliz6bzjvlwhjdg8rj-radare2-cutter-1.6.drv': 1 dependencies couldn't be built
error: build of '/nix/store/hncvk2b3xb8y22xliz6bzjvlwhjdg8rj-radare2-cutter-1.6.drv' failed

@dtzWill
Copy link
Member Author

dtzWill commented Aug 8, 2018

It is probably the best to move radare2-cutter to the radare2 directory and let it have its own pinning.

hmm okay, agreed. Sorry didn't see this earlier :).

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: radare2, radare2-cutter

Partial log (click to expand)

shrinking /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6/bin/rabin2
shrinking /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6/bin/rarun2
gzipping man pages under /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6/lib  /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6/bin
patching script interpreter paths in /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6
/nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6/bin/r2pm: interpreter directive changed from "/bin/sh" to "/nix/store/dkh7l9a4sx7zqh8riqbj3z21sz25p8xy-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/vn2bzyhjgz1fbnk2afc5993msc7s2rvg-radare2-for-cutter-1.6...
cannot build derivation '/nix/store/9wlc2j1bm04ny15hxlnmh9z2k4ggd392-radare2-cutter-1.6.drv': 1 dependencies couldn't be built
error: build of '/nix/store/9wlc2j1bm04ny15hxlnmh9z2k4ggd392-radare2-cutter-1.6.drv' failed

@dtzWill dtzWill changed the title radare2: 2.7.0 -> 2.8.0 [WIP] radare2: 2.7.0 -> 2.8.0 Aug 21, 2018
@dtzWill dtzWill changed the title [WIP] radare2: 2.7.0 -> 2.8.0 [WIP] radare2: 2.7.0 -> 2.8.0, radare2-cutter: 1.6 -> 1.7, refactor Aug 21, 2018
@dtzWill
Copy link
Member Author

dtzWill commented Aug 21, 2018

Alright well this at least works and hopefully get things mostly to what you had in mind. The update script needs fixing to work with radare2-cutter as well as radare2 (same info, new location). Help appreciated but no rush/pressure :).

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: radare2, radare2-cutter

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Unexpected error: command failed with exit code 1 on x86_64-linux (full log)

Attempted: radare2, radare2-cutter

Partial log (click to expand)

shrinking /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/bin/radare2
shrinking /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/bin/rasm2
shrinking /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/bin/rahash2
gzipping man pages under /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/share/man/
/nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip is /nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip
stripping (with command /nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip and flags -S) in /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/lib  /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/bin
patching script interpreter paths in /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0
/nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0/bin/r2pm: interpreter directive changed from "/bin/sh" to "/nix/store/6v88ick1cxnn5g91m8qrrqww0lrlr27x-bash-4.4-p23/bin/sh"
checking for references to /build in /nix/store/ccjb5qqdia84zm8ylmf1mka1r96c8lr6-radare2-2.8.0...
error: build of '/nix/store/zq9mx27725jpkk0kzrsrawn7xvrri37y-radare2-cutter-1.7.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on aarch64-linux (full log)

Attempted: radare2, radare2-cutter

Partial log (click to expand)

[6930/16620] CXX obj/third_party/webrtc/modules/pacing/pacing/alr_detector.o
[6931/16620] CXX obj/third_party/webrtc/pc/peerconnection/sdputils.o
[6932/16620] CXX obj/third_party/webrtc/rtc_base/rtc_base_approved_generic/base64.o
[6933/16620] CXX obj/third_party/webrtc/rtc_base/rtc_base_approved_generic/bitbuffer.o
[6934/16620] CXX obj/third_party/webrtc/p2p/rtc_p2p/turnportfactory.o
[6935/16620] CXX obj/third_party/webrtc/pc/rtc_pc_base/bundlefilter.o
[6936/16620] CXX obj/third_party/webrtc/rtc_base/rtc_base_approved_generic/location.o
building of '/nix/store/if0fi61ifg04sqkcgsmvm3p74423pk8r-qtwebengine-5.11.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/az5x55prv2g8bh3l20caw7kkmvy0v1r9-radare2-cutter-1.7.drv': 2 dependencies couldn't be built
error: build of '/nix/store/az5x55prv2g8bh3l20caw7kkmvy0v1r9-radare2-cutter-1.7.drv' failed

sha256 = "1ix42kipd1aayb494ajbxawzc1cwikm9fxk343d1kchxx4a30a1m";
cs_tip = "782ea67e17a391ca0d3faafdc365b335a1a8930a";
cs_sha256 = "1maww4ir78a193pm3f8lr2kdkizi7rywn68ffa65ipyr7j4pl6i4";
};
Copy link
Member

@Mic92 Mic92 Aug 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test & merge

@dtzWill
Copy link
Member Author

dtzWill commented Aug 22, 2018

Looks great, thank you! \o/

@dtzWill dtzWill merged commit cf68a14 into NixOS:master Aug 22, 2018


def get_r2_cutter_rev() -> str:
url = "https://api.github.com/repos/radareorg/cutter/contents/"
Copy link
Member

@Mic92 Mic92 Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be the current version of cutter not the latest. I probably need to fix this in future.

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

3 participants