From nobody Sat May 11 00:40:08 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vbn2w5pK2z5Kks6; Sat, 11 May 2024 00:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vbn2w55wcz4ywV; Sat, 11 May 2024 00:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715388008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EiGKIdJIbI/3AXkf5mFx43LLguDRJ3wqN1dQiB6L48M=; b=myC+iDcsW26V9kF7FsEE1HLL5bmSwwhPr86V/hmUXGR1i0bqYWMc0dooSQwYfgMCvEIBl0 lK2sn/8ao63wmn/xmFFEFwKwFoKTlFfY8vildgQJaQciWpVAV7sKMNAEcl0kvsfCTgsqHf dm7sKsr/UBNbGkxNbx7ycs3wrQkI7UOyOGF/wDm3nwsIH9tAXmfndHf4tSQ9dBDfOwN4Ib zNV7F3OqeKcGAthT/jlX3wHqxynzwkzOVIh61euniOiN9Sm5GtwKMvOZUsbAGoMOZ0MZ+4 i10BVwyYEK65Jv5tQubq/dr7AZqRqjsdaHgn8VKu7VI+DKjtGWIb8hKx89X5Zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715388008; a=rsa-sha256; cv=none; b=a1mn63YjoF29eYUsRWe7U4qYpXCijN9rKTIy877U3OwhCFXYUGJE1kKupfMp8dp5kellME jElYLVT78fVhfhWSHMPvlnCgOl/1vYKW0x85ShXP4Zk0aQ9NIhWcMd7ZL0OgER35dtFPoK XcKsph4xNn3lOwsBeq2Kg8mc7GIObcL8IKhlGh2g7d0ALKeWOxAz2yj/GZepDGPt7ayKZK I2eRnbLYgGPxgsF1UbEQuPHdLWK+CjCzRNStWpr+0uwr0CY1LkXMO347AsDB1s/dgrxLs8 5A65+3GcK3zAGGZDyL7plKTdVRzg7WaKGYDObBr4o37cWvq8wCk8uMCmrENQag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715388008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EiGKIdJIbI/3AXkf5mFx43LLguDRJ3wqN1dQiB6L48M=; b=OigxosXaKwcm6T4iIhRMIw47e4hDlB7lfbUxDD63QZfrVVYWKORL2Q6YmLe2NmZ1N63Stb 9BOpSliv9qYhGEXmVQrM1KIvGLmyE6oDYqYNalbWlBZpjMrjvaSYLd3HYTi6RhTzWohCl1 PuyZkiMgM1wV8L1OzZRQiqvFQgBPH8+BdXJUBrF/cW4NyahWwPvnYi3lXcwUpJv0vR6dUU tZl8ZuSvdvTa7h36WMFYqjpIllqoby9XEfEd7Zy5fgtv0DTCF0jJZICHws2DYU0cOfvVWX G2aXb3iHCtkU8lus2pcM6Crst9EPUAOzqwO6SCEjh/BlKmySrTFXMsfho4bZMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vbn2w4jBsz10Gn; Sat, 11 May 2024 00:40:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44B0e8FH023836; Sat, 11 May 2024 00:40:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44B0e8M8023831; Sat, 11 May 2024 00:40:08 GMT (envelope-from git) Date: Sat, 11 May 2024 00:40:08 GMT Message-Id: <202405110040.44B0e8M8023831@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 4e9f09f24982 - main - games/veloren-weekly: unbreak without security/ca_root_nss List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4e9f09f24982bde0785ab1cf8baafe0e419d161b Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=4e9f09f24982bde0785ab1cf8baafe0e419d161b commit 4e9f09f24982bde0785ab1cf8baafe0e419d161b Author: Jan Beich AuthorDate: 2024-05-10 22:45:31 +0000 Commit: Jan Beich CommitDate: 2024-05-11 00:39:35 +0000 games/veloren-weekly: unbreak without security/ca_root_nss PanicInfo: panicked at cargo-crates/hyper-rustls-0.24.2/src/config.rs:48:9: no CA certificates found Game version: b47aa6ae [2024-05-09] Backtrace: 0: veloren_voxygen::panic_handler::set_panic_hook::{{closure}} 1: std::panicking::rust_panic_with_hook 2: std::panicking::begin_panic_handler::{{closure}} 3: std::sys_common::backtrace::__rust_end_short_backtrace 4: rust_begin_unwind 5: core::panicking::panic_fmt 6: authc::AuthClient::new 7: veloren_client::Client::new::{{closure}} 8: veloren_voxygen::menu::main::client_init::ClientInit::new::{{closure}} 9: tokio::runtime::task::raw::poll 10: tokio::runtime::scheduler::multi_thread::worker::Context::run_task 11: tokio::runtime::scheduler::multi_thread::worker::run 12: tokio::runtime::task::raw::poll 13: std::sys_common::backtrace::__rust_begin_short_backtrace 14: core::ops::function::FnOnce::call_once{{vtable.shim}} 15: std::sys::pal::unix::thread::Thread::new::thread_start 16: --- games/veloren-weekly/Makefile | 2 +- .../veloren-weekly/files/patch-rustls-native-certs | 36 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile index 576eaffb3bd0..437539fc7ded 100644 --- a/games/veloren-weekly/Makefile +++ b/games/veloren-weekly/Makefile @@ -1,6 +1,6 @@ PORTNAME= veloren PORTVERSION= s20240509 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games wayland PKGNAMESUFFIX= -weekly diff --git a/games/veloren-weekly/files/patch-rustls-native-certs b/games/veloren-weekly/files/patch-rustls-native-certs new file mode 100644 index 000000000000..f17a6074ac06 --- /dev/null +++ b/games/veloren-weekly/files/patch-rustls-native-certs @@ -0,0 +1,36 @@ +https://github.com/rustls/rustls-native-certs/issues/28 +https://github.com/rustls/rustls-native-certs/commit/8162b232045e + +--- cargo-crates/rustls-native-certs-0.6.3/src/unix.rs.orig 1970-01-01 00:00:00 UTC ++++ cargo-crates/rustls-native-certs-0.6.3/src/unix.rs +@@ -1,13 +1,27 @@ use crate::Certificate; + use crate::load_pem_certs; + use crate::Certificate; + ++use std::fs; + use std::io::Error; + + pub fn load_native_certs() -> Result, Error> { + let likely_locations = openssl_probe::probe(); + +- match likely_locations.cert_file { +- Some(cert_file) => load_pem_certs(&cert_file), +- None => Ok(Vec::new()), ++ let mut certs = match likely_locations.cert_file { ++ Some(cert_file) => load_pem_certs(&cert_file)?, ++ None => Vec::new(), ++ }; ++ ++ if let Some(cert_dir) = likely_locations.cert_dir { ++ let dir_reader = fs::read_dir(cert_dir)?; ++ for entry in dir_reader { ++ let entry = entry?; ++ let path = entry.path(); ++ if fs::metadata(&path)?.is_file() { ++ certs.append(&mut load_pem_certs(&path)?); ++ } ++ } + } ++ ++ Ok(certs) + }