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

[WIP] clightning: fixes the compilation for the new future cln #312458

Closed
wants to merge 1 commit into from

Conversation

vincenzopalazzo
Copy link
Contributor

Description of changes

The future core lightning version that will be released this month will introduce a breaking change to our package by this PR ElementsProject/lightning#6995

The full issue is reported here ElementsProject/lightning#7315 and below is reported the failure during the compilation

P.S: this required that cln release the first rc release before merging (because need a version bumping)

Setting FUZZING... 0
Setting RUST... 0
Setting PYTHON... python3
@nix { "action": "setPhase", "phase": "buildPhase" } Running phase: buildPhase
build flags: -j16 SHELL=/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash VERSION=v24.02
CC: gcc -DCLN_NEXT_VERSION="v24.05" -DBINTOPKGLIBEXECDIR="../libexec/c-lightning" -DCCAN_TAL_NEVER_RETURN_NULL=1 -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-maybe-uninitialized -Wshadow=local -std=gnu11 -g -fstack-protector-strong -Og -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/gheap/ -I external/build-x86_64-unknown-linux-gnu/libbacktrace-build -I external/libsodium/src/libsodium/include -I external/libsodium/src/libsodium/include/sodium -I external/build-x86_64-unknown-linux-gnu/libsodium-build/src/libsodium/include -I . -I/usr/local/include      -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1 -DCOMPAT_V062=1 -DCOMPAT_V070=1 -DCOMPAT_V072=1 -DCOMPAT_V073=1 -DCOMPAT_V080=1 -DCOMPAT_V081=1 -DCOMPAT_V082=1 -DCOMPAT_V090=1 -DCOMPAT_V0100=1 -DCOMPAT_V0121=1  -c -o
LD: gcc   -Og  config.vars  -Lexternal/build-x86_64-unknown-linux-gnu -lwallycore -lsecp256k1 -ljsmn -lbacktrace -lsodium -L/usr/local/include -lm -lsqlite3 -lz  -o
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
make: *** [doc/Makefile:175: doc/lightning-addgossip.7.md] Error 127
make: *** Waiting for unfinished jobs....
make: *** [doc/Makefile:175: doc/lightning-addpsbtoutput.7.md] Error 127
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
make: *** [doc/Makefile:175: doc/lightning-autoclean-once.7.md] Error 127
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
make: *** [doc/Makefile:175: doc/lightning-autoclean-status.7.md] Error 127
Version updated

Things done

Adding a new python file as input inside the patchShebangs and add a build dependence that is jq.

  • 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.05 Release Notes (or backporting 23.05 and 23.11 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.

Setting FUZZING... 0
Setting RUST... 0
Setting PYTHON... python3
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
build flags: -j16 SHELL=/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash VERSION=v24.02
CC: gcc -DCLN_NEXT_VERSION="v24.05" -DBINTOPKGLIBEXECDIR="../libexec/c-lightning" -DCCAN_TAL_NEVER_RETURN_NULL=1 -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-maybe-uninitialized -Wshadow=local -std=gnu11 -g -fstack-protector-strong -Og -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/gheap/ -I external/build-x86_64-unknown-linux-gnu/libbacktrace-build -I external/libsodium/src/libsodium/include -I external/libsodium/src/libsodium/include/sodium -I external/build-x86_64-unknown-linux-gnu/libsodium-build/src/libsodium/include -I . -I/usr/local/include      -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS  -DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1 -DCOMPAT_V062=1 -DCOMPAT_V070=1 -DCOMPAT_V072=1 -DCOMPAT_V073=1 -DCOMPAT_V080=1 -DCOMPAT_V081=1 -DCOMPAT_V082=1 -DCOMPAT_V090=1 -DCOMPAT_V0100=1 -DCOMPAT_V0121=1  -c -o
LD: gcc   -Og  config.vars  -Lexternal/build-x86_64-unknown-linux-gnu -lwallycore -lsecp256k1 -ljsmn -lbacktrace -lsodium -L/usr/local/include -lm -lsqlite3 -lz  -o
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
make: *** [doc/Makefile:175: doc/lightning-addgossip.7.md] Error 127
make: *** Waiting for unfinished jobs....
make: *** [doc/Makefile:175: doc/lightning-addpsbtoutput.7.md] Error 127
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
make: *** [doc/Makefile:175: doc/lightning-autoclean-once.7.md] Error 127
/nix/store/087167dfxal194pm54cmcbbxsfy3cjgn-bash-5.2p26/bin/bash: line 1: tools/fromschema.py: cannot execute: required file not found
make: *** [doc/Makefile:175: doc/lightning-autoclean-status.7.md] Error 127
Version updated

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@jonasnick
Copy link
Contributor

Why is this a draft? The new clightning has just been released.

CC @jb55 @prusnak

@vincenzopalazzo
Copy link
Contributor Author

vincenzopalazzo commented Jun 6, 2024

Why is this a draft? The new clightning has just been released.

Because cln is related one day ago and this PR was of 3 weeks ago before the first rc release, as mention in my PR description

@prusnak
Copy link
Member

prusnak commented Jun 6, 2024

Let's close this in favor of a PR which updates the package.

@vincenzopalazzo will you prepare it please?

@prusnak prusnak closed this Jun 6, 2024
@vincenzopalazzo vincenzopalazzo deleted the macros/fix-cln branch June 6, 2024 08:58
@vincenzopalazzo
Copy link
Contributor Author

@prusnak Done!

@prusnak
Copy link
Member

prusnak commented Jun 6, 2024

@prusnak Done!

Link?

@erikarvstedt
Copy link
Member

Link?

#317693

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.

5 participants