From 8aeaa4cd4991dccc1a27edbe0f9f57cfcc33db96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ey=C3=9Fer?= Date: Tue, 5 Dec 2023 21:28:00 +0100 Subject: [PATCH] arti: update to 1.2.3. --- srcpkgs/arti/patches/fix-32bit-tests.patch | 19 +++++++++++++++++++ srcpkgs/arti/template | 15 +++------------ 2 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 srcpkgs/arti/patches/fix-32bit-tests.patch diff --git a/srcpkgs/arti/patches/fix-32bit-tests.patch b/srcpkgs/arti/patches/fix-32bit-tests.patch new file mode 100644 index 00000000000000..e800898fdb3b26 --- /dev/null +++ b/srcpkgs/arti/patches/fix-32bit-tests.patch @@ -0,0 +1,19 @@ +only run system_time_conversions() test on 64bit systems. +it fails on 32bit systems with + +---- time_store::test::system_time_conversions stdout ---- +thread 'time_store::test::system_time_conversions' panicked at crates/tor-hsservice/src/time_store.rs:524:38: +2038-01-19T03:14:08Z: OutOfRange + +diff --git a/crates/tor-hsservice/src/time_store.rs b/crates/tor-hsservice/src/time_store.rs +index d63d6f015..fafe806d0 100644 +--- a/crates/tor-hsservice/src/time_store.rs ++++ b/crates/tor-hsservice/src/time_store.rs +@@ -515,6 +515,7 @@ mod test { + assert_eq!(e, FutureTimestamp::from_str("T+23kg")); + } + ++ #[cfg(target_pointer_width = "64")] + #[test] + #[allow(clippy::unusual_byte_groupings)] // we want them to line up, dammit! + fn system_time_conversions() { diff --git a/srcpkgs/arti/template b/srcpkgs/arti/template index f21951f2b2dcc1..49818784733abe 100644 --- a/srcpkgs/arti/template +++ b/srcpkgs/arti/template @@ -1,6 +1,6 @@ # Template file for 'arti' pkgname=arti -version=1.1.10 +version=1.2.3 revision=1 archs="x86_64* i686* aarch64* arm*" # ring build_style=cargo @@ -13,18 +13,9 @@ license="Apache-2.0, MIT" homepage="https://gitlab.torproject.org/tpo/core/arti" changelog="https://gitlab.torproject.org/tpo/core/arti/-/raw/main/CHANGELOG.md" distfiles="https://gitlab.torproject.org/tpo/core/arti/-/archive/arti-v${version}/arti-arti-v${version}.tar.gz" -checksum=bb7f18385022b616fb0fb04c61b890441524eaa884def1eef3c581b711814842 - -if [ "$XBPS_CHECK_PKGS" ]; then - case "$XBPS_TARGET_MACHINE" in - # Disable LTO for i686 because otherwise tests fail with: - # ---- src/address.rs - address::TorAddr (line 79) stdout ---- - # error: ran out of registers during register allocation - # LLVM ERROR: Cannot emit physreg copy instruction - i686*) export CARGO_PROFILE_RELEASE_LTO=false ;; - esac -fi +checksum=2cfbbc6aa203e0203f773158c4994ee0d55f7213c488281febeef9a15e25aec4 post_install() { vlicense LICENSE-MIT + vdoc crates/arti/src/arti-example-config.toml }