From nobody Tue Jun 20 10:29:19 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 4QljYD0JRzz4g8bx; Tue, 20 Jun 2023 10:29:20 +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 4QljYC6zghz3w2v; Tue, 20 Jun 2023 10:29:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687256960; 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=jFDX9eqCuBc714cZmzCzoosUQ3x7vLOdYjz0tXB/fnw=; b=fbm/LVkeq+WjmnefdtyVJUwoNwbc+3dqywbzFUjMqu0Ee2cDIA7v4214Hn1PtIXlIky/+8 nSj6EWTmRRzkQTe5quUK43edRoj/cCJceH7Ad0wg3dI/otBv52pjCV2GNsXXSmzQGCdV9F KXnNdTHzhhCoNc3SuxRqnsibFEEwCMxItgu+Zxu7QkigWwZj7KKZyoDO1Nk3a+/BBTA/5M Ef86h+76BqoNLqW0Qu5OJVx7fdl6Ri9taLPtf/r9IlOo9RzLOuq+xz0+VtoA+mxoU/K6yr /nZwB/auSFgDPdaY91CVgtl8DO0i4/3oynHROJq3vQ3ZBq2ZuD7mBr+jVeyHRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687256960; 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=jFDX9eqCuBc714cZmzCzoosUQ3x7vLOdYjz0tXB/fnw=; b=akwXGg+n5Za+6nvc5iAJQy8CyKHFSu1hEhkP/OAzXqEMQ4jqmMLofPpJ4cKSU7TEZzcVyj bdkU/TuEONLn6Olmo+v5uUOHsZdNR5wo438zBD2bNWOsMGqhw6dWdariOUXdsWD7ORNfdA kFQGc2+XaocH/iXhv8Bnw66sW8k0fRH/okPjXk0kW/dkfpyZOLUlXtGH+5FnHVrDBKLJvp EPLRtHaMI+V77149Z1Po81/+pbidoeHIfPzmtPBTIDcrxWP9S0OvgmFqCb3gEvNMo49xjv 9uw5mZn7rwymMz6YVtzVsQp29jyVA5TWqWcATpnmH/cOLJXkCqexCCyTeGPWQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687256960; a=rsa-sha256; cv=none; b=c7wxC9RNF3hZfH2OTEtlSHve1Ol2dImHdr8QEWKCcSfTA8wh+45V9rZgrh/6LAkbK3paCC OwIv50cMm/Sz8VChiSporiBe5go6Bfk3Q4C6WSZCFKSR0HTwqHLkN6tfA5feHbdm2QlB4Y yMpoj7l46vCzVopC/E59FnpDqtW7vvErOD8mCh1/lk7CMnAW4xk6YEz5Z4hGDqRhn4DKM2 p605rgt0jbSJJbcom2UspoeIO5yCjwolBVoPh1iIYtl3eml7UVgTQ35ILkFTDoIKbVkCCI DLpdhqaXR8ORZR1O6fjiAvTBSQ/9kqd9Ya8eBAfEF/D+jlXa7y3NB/FcfLwquA== 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 4QljYC61p2zvtV; Tue, 20 Jun 2023 10:29:19 +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 35KATJj4050393; Tue, 20 Jun 2023 10:29:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KATJ34050392; Tue, 20 Jun 2023 10:29:19 GMT (envelope-from git) Date: Tue, 20 Jun 2023 10:29:19 GMT Message-Id: <202306201029.35KATJ34050392@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikael Urankar Subject: git: d3462f66cf68 - main - lang/rust: Fix docs building. 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: mikael X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d3462f66cf68dcd26bfcb95d6b54a01e5ff466a8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=d3462f66cf68dcd26bfcb95d6b54a01e5ff466a8 commit d3462f66cf68dcd26bfcb95d6b54a01e5ff466a8 Author: Mikael Urankar AuthorDate: 2023-06-20 10:26:45 +0000 Commit: Mikael Urankar CommitDate: 2023-06-20 10:29:13 +0000 lang/rust: Fix docs building. Add the missing "pub struct sockcred2" in module "libc". Error: error[E0412]: cannot find type `sockcred2` in module `libc` --> library/std/src/os/unix/net/ancillary.rs:211:29 | 211 | pub struct SocketCred(libc::sockcred2); | ^^^^^^^^^ not found in `libc` Reported by: kib Differential Revision: https://reviews.freebsd.org/D40509 --- .../patch-library_std_src_os_unix_net_ancillary.rs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lang/rust/files/patch-library_std_src_os_unix_net_ancillary.rs b/lang/rust/files/patch-library_std_src_os_unix_net_ancillary.rs new file mode 100644 index 000000000000..d42b6b9405de --- /dev/null +++ b/lang/rust/files/patch-library_std_src_os_unix_net_ancillary.rs @@ -0,0 +1,27 @@ +From 513f28db0a540725bc41f080a0f52973af67c3db Mon Sep 17 00:00:00 2001 +From: MikaelUrankar +Date: Tue, 13 Jun 2023 13:14:06 +0200 +Subject: [PATCH] Fix building the documentation on FreeBSD. + +It fixes the following error: +error[E0412]: cannot find type `sockcred2` in module `libc` + --> library/std/src/os/unix/net/ancillary.rs:211:29 + | +211 | pub struct SocketCred(libc::sockcred2); + | ^^^^^^^^^ not found in `libc` +--- + library/std/src/os/unix/net/ancillary.rs | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/library/std/src/os/unix/net/ancillary.rs b/library/std/src/os/unix/net/ancillary.rs +index 7565fbc0d099c..814f1c7c2838e 100644 +--- library/std/src/os/unix/net/ancillary.rs ++++ library/std/src/os/unix/net/ancillary.rs +@@ -17,6 +17,7 @@ mod libc { + pub use libc::c_int; + pub struct ucred; + pub struct cmsghdr; ++ pub struct sockcred2; + pub type pid_t = i32; + pub type gid_t = u32; + pub type uid_t = u32;