From nobody Tue Mar 14 19:04:54 2023 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 4PbjdM00L0z3ycGL; Tue, 14 Mar 2023 19:04:55 +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 4PbjdL4lkZz3Nj9; Tue, 14 Mar 2023 19:04:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678820694; 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=9wnhdDln7FQXSGW2LjNGLUoAX2QZO+QvZGqkMSnEofI=; b=BtbIMVMX+tx/UD8uL8kWCL39U2LW8q8G/jBZ1/Lp4mPbgsDCQJalSLG3f9yBd8/eEcfGhd 6tIJaeMXm712H/PtsYYcHOkJW5Ue+oBdgrkKd9EvcanKbv+Vinzi7lVA17iCPW04HGRjXP PQozhdP8cuAvB9lB3F6jnX8Ivzpwmdp86a6GDWuWtLFB7fposAPPEUQPWecNQ6Svw4/1Jx +JM/vfi0ntpjyHD87EpJvc3gQF4x63nCNu4AI0LbB47Esj+lt8jdwVzI+jCj3ctOipcdoe R1M2DY5oF52va0HahjWHD2WJuDj1H4JidgVhsfQBFB3LfPOEQw2ijhowcfsoYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678820694; 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=9wnhdDln7FQXSGW2LjNGLUoAX2QZO+QvZGqkMSnEofI=; b=P2Ke7dRUMh4RS4ON3A1kdgpjd9gry/s9+Gh6e2GBBokHhtqD8BUx93ulaUr5j+plt9uYrZ FsZxBR0Ry7TzmsxpCSbqmLTuzDk0izoC663F5Dy4nBxX47PC3VYtWmDzr9r209ieOHXV+l 4GEAeixJq0tttWCkybibSlNWYa3PlFdUCAH4D9PJOuknGNnDwJjf2Z/yQtXAttdagbgaXt oh+B5vAmFGXXNGpPN7BOkQBh95ixtShKgcj+Cap97L2/APaO3uch0WGXs3qRomsS7TT229 q0mhWOqiKkt1tT456g432QM1y47r+mDSfV1Xz0wWwdoizIIKxtinvXl7PzmVqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678820694; a=rsa-sha256; cv=none; b=PjBpA1/hmFbCZr1TPH6NaYHs/rRvzr6mQkZ061TpchfKJ7DoMOExgzdMJtsnJpP6MUXVKH 5GGiDB1tkmTC2ckoHRi20XxMRTM2KN2OYrKqAgQikhouGC2GVf1krLT1n08hJ6e0oS02+n 09J3ziPLQCfWKFf7AEA4OEo0BQj8CEZ2iEeFuDyLYMWl4MsLpNNE1PAhi57v+ScQgPudnZ she50zxqiro0dPa+UmobE8b6WhyZG3hH4bj0PWwzKNvF3iHvf8uHxCU1aYpePs05qp1msp ugHX/eAqEeyC9HUZid6fvKyuEbLyIsUBlMISssTERvegQFUrdjghVuDDAekuzw== 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 4PbjdL3sP4zn2j; Tue, 14 Mar 2023 19:04:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32EJ4sfs021923; Tue, 14 Mar 2023 19:04:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32EJ4sb3021922; Tue, 14 Mar 2023 19:04:54 GMT (envelope-from git) Date: Tue, 14 Mar 2023 19:04:54 GMT Message-Id: <202303141904.32EJ4sb3021922@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: d08329910057 - main - x11/eww: fix build on powerpc 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d0832991005786e302898bc727cf74cb1c7cb9e7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=d0832991005786e302898bc727cf74cb1c7cb9e7 commit d0832991005786e302898bc727cf74cb1c7cb9e7 Author: Piotr Kubaj AuthorDate: 2023-03-14 19:04:09 +0000 Commit: Piotr Kubaj CommitDate: 2023-03-14 19:04:09 +0000 x11/eww: fix build on powerpc Merges https://gitlab.com/rust-kqueue/rust-kqueue/-/commit/41ea02d22be789373fd630731d34dd9419cd7d26 from upstream. --- .../patch-cargo-crates_kqueue-1.0.6_src_time.rs | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/x11/eww/files/patch-cargo-crates_kqueue-1.0.6_src_time.rs b/x11/eww/files/patch-cargo-crates_kqueue-1.0.6_src_time.rs new file mode 100644 index 000000000000..57d3f86795e6 --- /dev/null +++ b/x11/eww/files/patch-cargo-crates_kqueue-1.0.6_src_time.rs @@ -0,0 +1,42 @@ +--- cargo-crates/kqueue-1.0.6/src/time.rs.orig 1973-11-29 21:33:09 UTC ++++ cargo-crates/kqueue-1.0.6/src/time.rs +@@ -1,32 +1,14 @@ +-use libc::timespec; ++use libc::{c_long, time_t, timespec}; + use std::time::Duration; + +-#[cfg(not(all( +- any(target_os = "freebsd", target_os = "macos"), +- any(target_arch = "x86", target_arch = "powerpc") +-)))] +-pub(crate) fn duration_to_timespec(d: Duration) -> timespec { +- let tv_sec = d.as_secs() as i64; +- let tv_nsec = d.subsec_nanos() as i64; ++#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] ++type NSec = i64; ++#[cfg(not(all(target_arch = "x86_64", target_pointer_width = "32")))] ++type NSec = c_long; + +- if tv_sec.is_negative() { +- panic!("Duration seconds is negative"); +- } +- +- if tv_nsec.is_negative() { +- panic!("Duration nsecs is negative"); +- } +- +- timespec { tv_sec, tv_nsec } +-} +- +-#[cfg(all( +- any(target_os = "freebsd", target_os = "macos"), +- any(target_arch = "x86", target_arch = "powerpc") +-))] + pub(crate) fn duration_to_timespec(d: Duration) -> timespec { +- let tv_sec = d.as_secs() as i32; +- let tv_nsec = d.subsec_nanos() as i32; ++ let tv_sec = d.as_secs() as time_t; ++ let tv_nsec = d.subsec_nanos() as NSec; + + if tv_sec.is_negative() { + panic!("Duration seconds is negative");