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

python3Packages.slither-analyzer: 0.6.14 -> 0.7.0 #108610

Merged
merged 2 commits into from Feb 5, 2021

Conversation

arcz
Copy link
Member

@arcz arcz commented Jan 6, 2021

Motivation for this change

Bump of slither-analyzer version. This required bumping crytic-compile and patching it due to old version in setup.py. Added a way to opt-out from wrapping solc since often another/specific version of solc is needed. Also, the current solc fails to build on macOS which makes slither-analyzer fail as well.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

pkgs/development/python-modules/crytic-compile/default.nix Outdated Show resolved Hide resolved
Comment on lines +22 to 27
postFixup = lib.optionalString withSolc ''
wrapProgram $out/bin/slither \
--prefix PATH : "${lib.makeBinPath [ solc ]}"
'';
Copy link
Contributor

Choose a reason for hiding this comment

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

does this application shell out to the application?

If it doesn, then you need to patch the source for it to work correctly as a python module.

Copy link
Member Author

Choose a reason for hiding this comment

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

it shells out

@jonringer jonringer changed the title slither-analyzer: 0.6.14 -> 0.7.0 python3Packages.slither-analyzer: 0.6.14 -> 0.7.0 Jan 6, 2021
@jonringer
Copy link
Contributor

To comply with CONTRIBUTING.md please have the commit message name be of the format

<pkg-name>: <subject-line>

for more examples, please look at https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes

in your case, the commit message should be:

python3Packages.slither-analyzer: 0.6.14 -> 0.7.0

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-linux 1

6 packages built:
  • python37Packages.crytic-compile
  • python37Packages.slither-analyzer
  • python38Packages.crytic-compile
  • slither-analyzer (python38Packages.slither-analyzer)
  • python39Packages.crytic-compile
  • python39Packages.slither-analyzer

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Jan 7, 2021

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-darwin 1

4 packages failed to build and are new build failures:
  • python37Packages.slither-analyzer: log was empty
  • slither-analyzer: log was empty
  • (python38Packages.slither-analyzer): log was empty
  • python39Packages.slither-analyzer: log was empty
3 packages built:
  • python37Packages.crytic-compile
  • python38Packages.crytic-compile
  • python39Packages.crytic-compile
/tmp/nix-build-solc-0.7.4.drv-0/source/libsmtutil/CVC4Interface.cpp: In member function 'CVC4::Expr solidity::smtutil::CVC4Interface::toCVC4Expr(const solidity::smtutil::Expression&)':    /tmp/nix-build-solc-0.7.4.drv-0/source/libsmtutil/CVC4Interface.cpp:237:52: error: call of overloaded 'BitVector(int, size_t)' is ambiguous                                                   237 |      m_context.mkConst(CVC4::BitVector(1, size_t(0)))                                                                                                                                     |                                                    ^                                                                                                                                In file included from /nix/store/zhk68mhnl3h2yw9dxmx3z68d0y9mxnnb-cvc4-1.8/include/cvc4/expr/expr.h:61,                                                                                                      from /nix/store/zhk68mhnl3h2yw9dxmx3z68d0y9mxnnb-cvc4-1.8/include/cvc4/expr/datatype.h:37,                                                                                                  from /nix/store/zhk68mhnl3h2yw9dxmx3z68d0y9mxnnb-cvc4-1.8/include/cvc4/cvc4.h:23,                                                                                                           from /tmp/nix-build-solc-0.7.4.drv-0/source/libsmtutil/CVC4Interface.h:31,                                                                                                                  from /tmp/nix-build-solc-0.7.4.drv-0/source/libsmtutil/CVC4Interface.cpp:19:

image

@arcz
Copy link
Member Author

arcz commented Jan 8, 2021

@SuperSandro2000 I don’t think those are new build failures, it failed before this PR. One thing we could do to fix macOS build is to default withSolc to be false on darwin.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-linux 1

6 packages built:
  • python37Packages.crytic-compile
  • python37Packages.slither-analyzer
  • python38Packages.crytic-compile
  • slither-analyzer (python38Packages.slither-analyzer)
  • python39Packages.crytic-compile
  • python39Packages.slither-analyzer

@SuperSandro2000
Copy link
Member

@SuperSandro2000 I don’t think those are new build failures, it failed before this PR. One thing we could do to fix macOS build is to default withSolc to be false on darwin.

that would be fine for me. Please add a comment that solc fails to build or something.

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-darwin 1

4 packages failed to build and are new build failures:
3 packages built:
  • python37Packages.crytic-compile
  • python38Packages.crytic-compile
  • python39Packages.crytic-compile

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch)
If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-linux 1

4 packages failed to build and are new build failures:
3 packages built:
  • python37Packages.crytic-compile
  • python38Packages.crytic-compile
  • python39Packages.crytic-compile

@arcz
Copy link
Member Author

arcz commented Feb 2, 2021

@SuperSandro2000 is there still something I have to do?

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-darwin 1

4 packages failed to build and are new build failures:
3 packages built:
  • python37Packages.crytic-compile
  • python38Packages.crytic-compile
  • python39Packages.crytic-compile

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

python37Packages.crytic-compile:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern 'version="0.1.9",' doesn't match anything in file 'setup.py'

Please check the offending substituteInPlace for typos or changes in source.
warning: unclear-gpl
agpl3 is a deprecated license, check if project uses agpl3Plus or agpl3Only and change meta.license accordingly.

Near pkgs/development/python-modules/crytic-compile/default.nix:28:5:

   |
28 |     license = licenses.agpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

python38Packages.crytic-compile:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern 'version="0.1.9",' doesn't match anything in file 'setup.py'

Please check the offending substituteInPlace for typos or changes in source.
warning: unclear-gpl
agpl3 is a deprecated license, check if project uses agpl3Plus or agpl3Only and change meta.license accordingly.

Near pkgs/development/python-modules/crytic-compile/default.nix:28:5:

   |
28 |     license = licenses.agpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

python39Packages.crytic-compile:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern 'version="0.1.9",' doesn't match anything in file 'setup.py'

Please check the offending substituteInPlace for typos or changes in source.
warning: unclear-gpl
agpl3 is a deprecated license, check if project uses agpl3Plus or agpl3Only and change meta.license accordingly.

Near pkgs/development/python-modules/crytic-compile/default.nix:28:5:

   |
28 |     license = licenses.agpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

@arcz arcz force-pushed the slither branch 2 times, most recently from b40322d to 6e1e924 Compare February 3, 2021 12:52
@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-linux 1

4 packages failed to build and are new build failures:
3 packages built:
  • python37Packages.crytic-compile
  • python38Packages.crytic-compile
  • python39Packages.crytic-compile

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

python37Packages.crytic-compile:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern 'version="0.1.9",' doesn't match anything in file 'setup.py'

Please check the offending substituteInPlace for typos or changes in source.
warning: unclear-gpl
agpl3 is a deprecated license, check if project uses agpl3Plus or agpl3Only and change meta.license accordingly.

Near pkgs/development/python-modules/crytic-compile/default.nix:28:5:

   |
28 |     license = licenses.agpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

python38Packages.crytic-compile:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern 'version="0.1.9",' doesn't match anything in file 'setup.py'

Please check the offending substituteInPlace for typos or changes in source.
warning: unclear-gpl
agpl3 is a deprecated license, check if project uses agpl3Plus or agpl3Only and change meta.license accordingly.

Near pkgs/development/python-modules/crytic-compile/default.nix:28:5:

   |
28 |     license = licenses.agpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

python39Packages.crytic-compile:

Please consider this feature to be alpha.

A substituteInPlace with an unmatched pattern got detected:

substituteStream(): WARNING: pattern 'version="0.1.9",' doesn't match anything in file 'setup.py'

Please check the offending substituteInPlace for typos or changes in source.
warning: unclear-gpl
agpl3 is a deprecated license, check if project uses agpl3Plus or agpl3Only and change meta.license accordingly.

Near pkgs/development/python-modules/crytic-compile/default.nix:28:5:

   |
28 |     license = licenses.agpl3;
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/unclear-gpl.md

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-linux 1

9 packages built:
  • python37Packages.crytic-compile
  • python37Packages.manticore
  • python37Packages.slither-analyzer
  • python38Packages.crytic-compile
  • python38Packages.manticore
  • slither-analyzer (python38Packages.slither-analyzer)
  • python39Packages.crytic-compile
  • python39Packages.manticore
  • python39Packages.slither-analyzer

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 108610 run on x86_64-darwin 1

3 packages failed to build and are new build failures:
6 packages built:
  • python37Packages.crytic-compile
  • python37Packages.slither-analyzer
  • python38Packages.crytic-compile
  • slither-analyzer (python38Packages.slither-analyzer)
  • python39Packages.crytic-compile
  • python39Packages.slither-analyzer

@arcz
Copy link
Member Author

arcz commented Feb 5, 2021

@SuperSandro2000 this manticore fail is unrelated to slither, I've fixed it here #112069

@SuperSandro2000 SuperSandro2000 merged commit e5b4782 into NixOS:master Feb 5, 2021
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