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

bindiff: 8-unstable-2024-11-11, binexport: 12-unstable-2024-11-01 #355232

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pluiedev
Copy link
Contributor

Closes #257478

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.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by the maintainer of the package it changes 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels Nov 12, 2024
@pluiedev pluiedev mentioned this pull request Dec 15, 2024
13 tasks
pkgs/by-name/bi/binexport/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/id/ida-sdk_8/package.nix Show resolved Hide resolved
pkgs/by-name/bi/bindiff/package.nix Outdated Show resolved Hide resolved
Copy link
Member

@BonusPlay BonusPlay left a comment

Choose a reason for hiding this comment

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

After this PR is merged I'll try to package binexport-ghidra extension as well.

pkgs/by-name/bi/bindiff/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/bi/bindiff/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/bi/binexport/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/id/ida-sdk_8/package.nix Show resolved Hide resolved
'';
homepage = "https://github.com/google/binexport";
license = with lib.licenses; [ asl20 ];
platforms = with lib.platforms; lib.intersectLists x86 (unix ++ windows);
Copy link
Member

Choose a reason for hiding this comment

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

The issue with architectures only contrains ida-pro. I believe binexport and bindiff and binaryninja-api can be compiled on all platforms (linux, windows, macos).
Other than that, I'd be happy to approve this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. I wonder then should we just set the platforms for ida-sdk_8 to be x86(-64)-only, and have it automatically fail if evaluated on a non-x86 platform?

Copy link
Member

Choose a reason for hiding this comment

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

¯\_(ツ)_/¯

Copy link
Contributor

Choose a reason for hiding this comment

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

Not entirely sure if this PR is hung up on anything else, but fwiw I think setting ida-sdk_8 to x86(-64)-only and only failing for it seems reasonable to me. Looking forward to this and eventual ghidra extension support making it's way in!

@ofborg ofborg bot requested a review from BonusPlay December 24, 2024 04:26
mv $out/bindiff-prefix/bindiff*_ida*${sharedLibrary} $out/lib
''
+ ''
rmdir $out/bindiff-prefix
Copy link
Contributor

@wolfgangwalther wolfgangwalther Jan 16, 2025

Choose a reason for hiding this comment

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

This fails on darwin:

rmdir: failed to remove '/nix/store/vgac29rqh53yrxz6jagvnx3qs7y61yah-bindiff-8-unstable-2024-11-11/bindiff-prefix': Directory not empty

Edit:

The lines before that might be relevant:

-- Install configuration: "Release"
-- Installing: /nix/store/vgac29rqh53yrxz6jagvnx3qs7y61yah-bindiff-8-unstable-2024-11-11/bindiff-prefix/bindiff
-- Installing: /nix/store/vgac29rqh53yrxz6jagvnx3qs7y61yah-bindiff-8-unstable-2024-11-11/bindiff-prefix/bindiff_config_setup
-- Installing: /nix/store/vgac29rqh53yrxz6jagvnx3qs7y61yah-bindiff-8-unstable-2024-11-11/bindiff-prefix/bindiff_launcher_macos

@iluuu1994
Copy link

Nothing add, just: Thank you for working on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 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.

Package request: BinDiff
5 participants