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

[Chore] v18.0-rc1 hotfixes #703

Merged
merged 3 commits into from
Aug 22, 2023
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
14 changes: 5 additions & 9 deletions docker/package/scripts/build-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,14 @@ binary_name="$2"
cd tezos
opam init local ../opam-repository --bare --disable-sandboxing
opam switch create . --repositories=local --no-install

eval "$(opam env)"
opams=()
while IFS= read -r -d $'\0'; do
# we exclude optional development packages
if [ "$REPLY" != "./opam/virtual/octez-dev-deps.opam" ]; then
opams+=("$REPLY")
fi
done < <(find ./vendors ./src ./tezt ./opam -name \*.opam -print0)
OPAMASSUMEDEPEXTS=true opam install conf-rust conf-rust-2021

export CFLAGS="-fPIC ${CFLAGS:-}"
opam install "${opams[@]}" --deps-only --criteria="-notuptodate,-changed,-removed"
eval "$(opam env)"
opam install opam/virtual/octez-deps.opam --deps-only --criteria="-notuptodate,-changed,-removed"

eval "$(opam env)"
dune build "$dune_filepath"
cp "./_build/default/$dune_filepath" "../$binary_name"
cd ..
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
path = inputs.tezos;
name = "tezos";
# we exclude optional development packages
filter = path: _: baseNameOf path != "octez-dev-deps.opam";
filter = path: _: !(builtins.elem (baseNameOf path) [ "octez-dev-deps.opam" "tezos-time-measurement.opam" ]);
};
sources = { inherit tezos; inherit (inputs) opam-repository; };

Expand Down
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"release": "2",
"release": "1",
"maintainer": "Serokell <[email protected]>",
"tezos_ref": "v18.0-rc1"
}
1 change: 0 additions & 1 deletion nix/build/ocaml-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ with opam-nix.lib.${self.system}; let
octezSourcesResolved =
self.runCommand "resolve-octez-sources" {} ''
cp --no-preserve=all -Lr ${sources.tezos} $out
cp ${./tezos-event-logging.opam} $out/opam/tezos-event-logging.opam
'';
octezScope = buildOpamProject' {
repos = with sources; [opam-repository];
Expand Down
8 changes: 0 additions & 8 deletions nix/build/tezos-event-logging.opam

This file was deleted.