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

Update dependency: kevm-pyk/src/kevm_pyk/kproj/plugin #2355

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update \
libboost-test-dev \
libcrypto++-dev \
libprocps-dev \
libsecp256k1-dev \
libssl-dev \
libyaml-dev \
llvm-${LLVM_VERSION}-dev \
Expand Down
2 changes: 1 addition & 1 deletion deps/blockchain-k-plugin_release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c9698c764521e71d9b8049eb41e4cc2a46343c64
05c2003c23c4a8fa1ddd3fb497cd610f03dadb05
26 changes: 4 additions & 22 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
poetry2nix.follows = "pyk/poetry2nix";
blockchain-k-plugin = {
url =
"github:runtimeverification/blockchain-k-plugin/c9698c764521e71d9b8049eb41e4cc2a46343c64";
"github:runtimeverification/blockchain-k-plugin/05c2003c23c4a8fa1ddd3fb497cd610f03dadb05";
inputs.flake-utils.follows = "k-framework/flake-utils";
inputs.nixpkgs.follows = "k-framework/nixpkgs";
};
Expand Down Expand Up @@ -68,6 +68,7 @@
version = self.rev or "dirty";
buildInputs = buildInputs final ++ [ final.kevm-pyk ];
nativeBuildInputs = [ prev.makeWrapper ];
propagatedBuildInputs = [ final.secp256k1 ];

src = prev.stdenv.mkDerivation {
name = "kevm-${self.rev or "dirty"}-src";
Expand Down
2 changes: 1 addition & 1 deletion kevm-pyk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kevm-pyk"
version = "1.0.500"
version = "1.0.501"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from typing import Final


VERSION: Final = '1.0.500'
VERSION: Final = '1.0.501'
3 changes: 1 addition & 2 deletions kevm-pyk/src/kevm_pyk/kdist/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,12 @@ def build(self, output_dir: Path, deps: dict[str, Any], args: dict[str, Any], ve

copy_tree(str(config.PLUGIN_DIR), '.')
run_process(
['make', 'libcryptopp', 'libff', 'libsecp256k1', '-j3'],
['make', 'libcryptopp', 'libff', '-j8'],
pipe_stdout=not verbose,
)

copy_tree('./build/libcryptopp', str(output_dir / 'libcryptopp'))
copy_tree('./build/libff', str(output_dir / 'libff'))
copy_tree('./build/libsecp256k1', str(output_dir / 'libsecp256k1'))

def source(self) -> tuple[Path]:
return (config.PLUGIN_DIR,)
Expand Down
5 changes: 1 addition & 4 deletions kevm-pyk/src/kevm_pyk/kompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,17 +211,14 @@ def lib_ccopts(plugin_dir: Path, debug_build: bool = False) -> list[str]:
if debug_build:
ccopts += ['-g']

ccopts += ['-lssl', '-lcrypto']
ccopts += ['-lssl', '-lcrypto', '-lsecp256k1']

libff_dir = plugin_dir / 'libff'
ccopts += [f'{libff_dir}/lib/libff.a', f'-I{libff_dir}/include']

libcryptopp_dir = plugin_dir / 'libcryptopp'
ccopts += [f'{libcryptopp_dir}/lib/libcryptopp.a', f'-I{libcryptopp_dir}/include']

libsecp256k1_dir = plugin_dir / 'libsecp256k1'
ccopts += [f'{libsecp256k1_dir}/lib/libsecp256k1.a', f'-I{libsecp256k1_dir}/include']

plugin_include = plugin_dir / 'plugin-c'
ccopts += [
f'{plugin_include}/plugin_util.cpp',
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.500
1.0.501
Loading