Skip to content

Commit

Permalink
upcoming/noble/amd64/eth-node-lighthouse/6.0.1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eenagy committed Dec 16, 2024
1 parent 72dc23a commit da1024a
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
eth-node-lighthouse (6.0.1-1) noble; urgency=medium

* Support for 6.0.1-1

-- Eniko Nagy <[email protected]> Mon, 16 Dec 2024 13:02:01 +0100

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name = "eth-node-lighthouse"
architecture = "any"
summary = "An open-source Ethereum consensus client, written in Rust and maintained by Sigma Prime."
conflicts = []
recommends = []
provides = ["eth-node-consensus-client (= 1)"]
suggests = ["eth-node (= 1)"]
add_files = ["target/maxperf/lighthouse /usr/lib/eth-node-lighthouse/bin"]
add_links = ["/usr/lib/eth-node-lighthouse/bin/lighthouse /usr/bin/lighthouse"]

add_manpages = []
long_doc = """
Lighthouse is an Ethereum consensus client that connects
to other Ethereum consensus clients to form a resilient
and decentralized proof-of-stake blockchain.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name = "eth-node-lighthouse"
maintainer = "Eniko Nagy <[email protected]>"
section = "net"
variants = []
build_depends = [
"curl",
"git",
"cmake (>= 3.12)",
"pkgconf",
"llvm-dev",
"libclang-dev",
"libpq-dev",
"clang",
"libsnappy-dev",
"librust-cmake-dev",
"wget"
]
packages = ["eth-node-lighthouse"]
skip_debug_symbols = true

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[verify]
package_hash=[
{ hash="d6ab6191079f6e950099ec94f2ccf3f1c039cb1a", name= "eth-node-lighthouse_6.0.1-1.dsc"},
{ hash="79082f51ffa39f04af1a0f1291b588f7071c1065", name= "eth-node-lighthouse_6.0.1.orig.tar.gz"},
{ hash="1f3e1ba1a8dea4f63511ebb010f12221f6dbf490", name= "eth-node-lighthouse_6.0.1-1.debian.tar.xz"},
{ hash="fe7f88fdb31364faf53535ba9948adf2067372b8", name= "eth-node-lighthouse_6.0.1-1_amd64.deb"},
]
53 changes: 53 additions & 0 deletions upcoming/noble/amd64/eth-node-lighthouse/6.0.1-1/pkg-builder.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[package_fields]
spec_file = "eth-node-lighthouse.sss"
package_name = "eth-node-lighthouse"
version_number = "6.0.1"
revision_number = "1"
homepage="https://github.com/sigp/lighthouse"

[package_type]
# virtual | git | default
package_type="default"
tarball_url = "https://github.com/sigp/lighthouse/archive/refs/tags/v6.0.1.tar.gz"
## Provided by debian package maintainer not by team developing the software
tarball_hash = "8a8f43f099bed624318aaabbf3811e78a0171c7fb4e5e30f7e66ab70bbe40a1c"

[package_type.language_env]
language_env = "rust"
rust_version="1.80.0"
rust_binary_url="https://static.rust-lang.org/dist/rust-1.80.0-x86_64-unknown-linux-gnu.tar.xz"
rust_binary_gpg_asc="""
-----BEGIN PGP SIGNATURE-----
wsFcBAABCgAQBQJmojj/CRCFq5bm+hvl/gAAi3sP+QG3gZE1dkfvBekboErT06B6
x0WvX804JYXqUZ4RLkL/va5l2qv/9SyxXg/kkWXFYcH6f4YetNKULDsw4nzFxYp0
l40BO6u/rkVlZNlXZG6cwH4/85TWDq5B2q3jjH0edAalxyWg4X8axeMxJlPc1rfZ
sk2Vb8xeRX4N+3tK72G9yk/oENS3+ql8KKyULiVDDSKAo52irWEa7rdy7Wf+sccS
JcdTyoaELAX6ehnopjGWY1sBQShUNsfWmJIko/r/jHbF+yev2mgJLWudnt2DSS00
2uFHdw1dvusttetr1pCaO8/lNkrre3TrpZO/G+9eWsGfYjS6mrFLgZ20QY7bPsm+
6UV76EyHw9rr3IXS67xjWGwq5o2L14Mz1yWpd+52GyQQjmsJ38EBn68IGbuaL+Vx
tVRFKBeaiOsKTfaQFLYbsvMcTBGUN/rCJGYnNE2f/DyIB09f7K8A67zgMKlJcA95
W+SffkgIRdr4VinUKMKlxiDhC8E8Ui9ELhspI1ePGINMuuYMY9MgO0kv+kMjeN71
FcEV2PJ7tzK41yNfKreWG8O1Cd4iy2zb/TzfmFKQBJr9W7pq+5VBB1UYDT8ijwXl
nqoketEWbKjQ8BmczA8snkKlV4rXSdr6ASVRBDzNLcj+/brt02vuW2AoIkkNJN0p
jLlWAGKzzn+fUhIAPObF
=wO+a
-----END PGP SIGNATURE-----
"""

[build_env]
codename="noble numbat"
arch = "amd64"
pkg_builder_version="0.2.8"
debcrafter_version = "2711b53"
# needed for tests
docker=true
run_lintian=true
run_piuparts=true
run_autopkgtest=true
lintian_version="2.116.3"
piuparts_version="1.1.7"
autopkgtest_version="5.28"
sbuild_version="0.85.6"
# package directory
workdir="~/.pkg-builder/packages/noble"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: lighthouse
Upstream-Contact: https://github.com/sigp/lighthouse
Source: <https://github.com/sigp/lighthouse>
#
# Please double check copyright with the licensecheck(1) command.

Files: *
Copyright: Copyright 2018 Sigma Prime Pty Ltd
License: Apache-2.0

Files: consensus/types/src/execution_block_header.rs
Copyright: 2022 Reth Contributors
License: Expat

Files: beacon_node/execution_layer/src/keccak.rs
Copyright: 2017-2018 Parity Technologies
License: Apache-2.0


Files: debian/*
License: GPL-3+


License: Apache-2.0
The full text of the Apache License, Version 2.0 is distributed in
/usr/share/common-licenses/Apache-2.0 on Debian systems.

License: GPL-3+
The full text of the GPL version 3 is distributed in
/usr/share/common-licenses/GPL-3 on Debian systems.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
eth-node-lighthouse: initial-upload-closes-no-bugs [usr/share/doc/eth-node-lighthouse/changelog.Debian.gz:1]
eth-node-lighthouse: maintainer-script-ignores-errors [postrm]
eth-node-lighthouse: no-manual-page [usr/bin/lighthouse]
eth-node-lighthouse: description-synopsis-starts-with-article
eth-node-lighthouse: synopsis-too-long
41 changes: 41 additions & 0 deletions upcoming/noble/amd64/eth-node-lighthouse/6.0.1-1/src/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/make -f
export CARGO_HOME=$(HOME)/.cargo
export PATH:=$(PATH):$(CARGO_HOME)/bin
# same as CROSS_FEATURES, but packaging don't use cross
# cross relies on rustup, which pkg-builder doesn't use
# cross uses dockerized environment for building, which we don't need
# pkg-builder uses chroot instead of docker, chroot is much more lightweight
# chroot is the debian way
export FEATURES=modern,gnosis,jemalloc
export PROFILE=maxperf
export CARGO_INSTALL_EXTRA_FLAGS

%:
dh $@


override_dh_auto_test:
# Install additional test dependency
cd /tmp && curl -s -L https://github.com/foundry-rs/foundry/releases/download/nightly-ca67d15f4abd46394b324c50e21e66f306a1162d/foundry_nightly_linux_amd64.tar.gz -o foundry_nightly_linux_amd64.tar.gz
cd /tmp && tar xvf foundry_nightly_linux_amd64.tar.gz
cp /tmp/anvil $(HOME)/.cargo/bin
anvil --version # check if it correctly installed
cargo test --workspace --release --features "$(TEST_FEATURES)" \
--exclude ef_tests --exclude beacon_chain --exclude slasher --exclude network \
--exclude lighthouse_metrics \
--exclude web3signer_tests \
--exclude watch # Same as make test-release, except additionally disabling docker tests
#make run-ef-tests


override_dh_auto_install:
# install is not the same as debian install, ignore it
# don't want to compile the client twice

override_dh_auto_clean:
# on ubuntu clean fails, before dependency installation
# on bookworm clean succeeds, even if dependency is not installed
-make -j1 clean

override_dh_strip:
dh_strip --no-automatic-dbgsym
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eth-node-lighthouse source: debian-rules-ignores-make-clean-error [debian/rules:38]
eth-node-lighthouse source: missing-field-in-dep5-copyright Copyright [debian/copyright:21]
eth-node-lighthouse source: missing-license-paragraph-in-dep5-copyright expat [debian/copyright:14]
eth-node-lighthouse source: no-newline-at-end [debian/changelog]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These tests are run by autopkgtests

Tests: tests
Depends: @, shunit2, which
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env sh

exec 2>&1

set -e

test_binary_in_path(){
output="$(which lighthouse)"
assertEquals "/usr/bin/lighthouse" "$output"
}

test_invocation(){
output="$(lighthouse --version)"
echo "$output"
# checked against https://github.com/sigp/lighthouse/releases/download/v4.5.0/lighthouse-v4.5.0-x86_64-unknown-linux-gnu.tar.gz
assertEquals "$output" "Lighthouse v6.0.1
BLS library: blst-modern
BLS hardware acceleration: true
SHA256 hardware acceleration: true
Allocator: jemalloc
Profile: maxperf
Specs: mainnet (true), minimal (false), gnosis (true)"
}

. shunit2

0 comments on commit da1024a

Please sign in to comment.