CLN v26.06.8 doesn't compile on nixOS
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 90/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- nixos, python
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu với nix/pkgs/default.nix và so sánh release branch với các bản sửa lỗi trên master; chỉ kiểm tra rule trong doc/Makefile và devtools/blockreplace.py khi cần. Chạy lệnh nix build đã được báo cáo trên NixOS và coi issue là hoàn tất khi v26.06.8 build thành công target doc/index.rst.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
nix build fails for v26.06.8 when building the doc/index.rst target. The fix is already on master but isn't in any release tag. Meanwhile, the NixOS section of the installation docs on master tells users to build a release tag (v26.06.1), and that tag doesn't include the fix either.
Steps to reproduce
On NixOS (I reproduced it in a nixos/nix:latest container, linux/amd64):
git clone https://github.com/ElementsProject/lightning.git
cd lightning
git checkout v26.06.8
git submodule update --init --recursive
nix build '.?submodules=1' --print-build-logs
Error
cln> /nix/store/ciarnmsx8lvsrmdbjddpmx0pqjrm8imb-bash-5.3p3/bin/bash: line 1: devtools/blockreplace.py: Permission denied
cln> make: *** [doc/Makefile:324: doc/index.rst] Error 126
cln> rm ccan-tal.o ccan-err.o ccan-time.o ccan-crypto-shachain.o ccan-opt-parse.o ccan-isaac.o ccan-closefrom.o external/build-x86_64-unknown-linux-gnu/jsmn-build/jsmn.o ccan-strset.o ccan-tal-link.o ccan-ilog.o ccan-rbuf.o ccan-opt-usage.o ccan-membuf.o ccan-utf8.o ccan-str.o ccan-list.o ccan-bitops.o ccan-mem.o ccan-crypto-hkdf.o ccan-crypto-siphash24.o ccan-io-fdpass.o ccan-noerr.o ccan-opt-helpers.o ccan-bitmap.o ccan-htable.o ccan-json_escape.o ccan-pipecmd.o ccan-io-poll.o ccan-timer.o ccan-crc32c.o ccan-str-base32.o ccan-tal-str.o ccan-crypto-ripemd160.o ccan-take.o ccan-tal-grab_file.o ccan-read_write_all.o ccan-rune-rune.o ccan-fdpass.o ccan-asort.o ccan-breakpoint.o ccan-json_out.o ccan-strmap.o ccan-cdump.o ccan-tal-path.o ccan-crypto-hmac.o ccan-str-hex.o external/build-x86_64-unknown-linux-gnu/libwally-core-build/src/secp256k1/libsecp256k1.la ccan-ptr_valid.o external/build-x86_64-unknown-linux-gnu/libwally-core-build/src/libwallycore.la ccan-isaac64.o ccan-intmap.o ccan-base64.o ccan-io-io.o ccan-rune-coding.o ccan-opt.o ccan-crypto-sha256.o
error: Cannot build '/nix/store/ri03gak9d26yw4qpj5c20823p8rx4mmn-cln.drv'.
Reason: builder failed with exit code 2.
Output paths:
/nix/store/pdsk63hz0k39iz3y42m66k4k7zpgw3si-cln
Cause
configurelooks for Python withuv run python3 --version(default_python()).uvisn't part of the Nix derivation, soPYTHONends up empty.- The
doc/index.rstrule runs$(PYTHON) devtools/blockreplace.py ..., so withPYTHONempty the shell runs the script directly. - In the release tree,
devtools/blockreplace.pyis mode100644(not executable), so the shell fails withPermission denied.
Fix on master, missing from releases
master already has both fixes:
531673a441nix: fixnix buildand simplify NixOS install docs: addspreConfigure = "export PYTHON=python3";tonix/pkgs/default.nix(andblockreplace.pytopatchShebangs)fb0c10cde6devtools/blockreplace.py: make executable
Running git tag --contains 531673a441 returns nothing, so the release hasn't the fix.
The smallest change that fixes the build on the release branch is this one line in nix/pkgs/default.nix after line 77:
preConfigure = "export PYTHON=python3";
Environment
- Core Lightning: v26.06.8
- Nix:
nixos/nix:2.35.2Docker image,nix-commandandflakesenabled
- Ngôn ngữ chính
- C
- Star
- 3.1k
- Fork
- 1k
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 40
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ElementsProject/lightning
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ElementsProject/lightning#9322 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ElementsProject/lightning#9206 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ElementsProject/lightning#9187 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
QA
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ElementsProject/lightning#9117 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`splice_update` hangs and never returns, even after disconnecting peerCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
ElementsProject/lightning#9599 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của ElementsProject/lightning
Issue tương tự
-
[P2] Workspace updates silently ignore forbidden assignments while staging the rowCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 4 ngày
-
sdl3-image update to 3.4.8Đang mởcategory:port-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/vcpkg#54338 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:http-gateway good first issue priority:low type:docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
crazy-goat/php-fpm-ng#828 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
SunDevilRocketry/Flight-Computer-Firmware#347 ·
Maintainer thường phản hồi trong vòng 3 ngày