Skip to content

Commit

Permalink
Merge pull request #703 from serokell/krendelhoff/chore-v18.0-rc1-hotfix
Browse files Browse the repository at this point in the history
[Chore] v18.0-rc1 hotfixes
  • Loading branch information
pasqu4le authored Aug 22, 2023
2 parents 9b3b641 + 41fb240 commit 048ff39
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 20 deletions.
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.

0 comments on commit 048ff39

Please sign in to comment.