From nobody Mon Feb 19 11:59:47 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 4Tdh0z40cKz5BbDl; Mon, 19 Feb 2024 11:59:47 +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 4Tdh0z1XbNz3wjc; Mon, 19 Feb 2024 11:59:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708343987; 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=KbHp1burnJRzqr8K6ZKDlj/jWsMMzwJUeW7hMlFtgeI=; b=TgnDJR+x2t+jNiPJ/yJ/C6tY5mAD6ELpZfOCSf+eAIWGrBA87Erqq1yickWZQZunkL4Td0 SkK1wjyQNnPY39lAG9UcPt7jhAFca+rKkn2mLUmqbWB92UOd0vA5nlgDfCamMnX6ZLZ3b+ tNJ0sd+s13VMVo46UuldKEazz3rD4bfqTquTO6XuljI2ovZB/p7NEx7fkEaqiNBd140KpX mroFv9/AgDtyygZJZWnaL1w9pRiXvJWefAOv/Qa0EENratJO2l8fuTbWuyPLH6lfiQbdOA TiikQ0poAEJYkD7sYtDryal9KhyNyf8VFZtrMlI/wZ6GosIesPJGMATpfYrTwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708343987; 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=KbHp1burnJRzqr8K6ZKDlj/jWsMMzwJUeW7hMlFtgeI=; b=GbPrxvuDnroz3cynjSxf+J00+MWpjsSJluL2UAI2BkgJVkhqSIA2rFLCklDXiqeGuZNAx/ ELxtaFdyGUMFcKPq/eS4mdPMhvviEiWsBCXYd7h8sdY3Oz41vZTc0dqPLDw7SBvp6slfif x+BM+n2eK8p2WwrUi6qIewRktKxd8VEnkb79QWw0SanA4bimlzV70Vur+o9rPLCsiQJNJL ZFWJQu43VpWx1UiN9G0hj141b6Ab5jq1Tw+4BOQJ+H92sys05lc0hDfqXBpx3f/U62q0Pf GhFqxkvVCAG0GqLlAscu6hOPnG4iEoDppRMgn2TxWTXLGxt81LSWjOq0KU7Pxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708343987; a=rsa-sha256; cv=none; b=ihwseaL5u59XX4+Bglkf20Gdshv1vbuUdtl5Xk+wbQ2+CbfKxtGXQYzoz00cORWtStgb8e YPnir1yTcHTjY0LNWGvYnPnxIrAxv1PiFCRDQlj9TNBEf5DNHpmyEtUWNGA6j/I2CKn6QP 5c72XrFNEYakHSh3rdsu1UdYstIfLvSnLN44MfGvFtxr8hTVKuqgkU2Nxh3D4cyLYRaxEM 3LrSBgzkW174vyIJ2pVJvywgPouaGcBOj9YHM48vdGcHQQp53txnj2liFgoVX3IMHJFtAc ybenHGL9y98MJXyQcSTYUbKsQiIMyxM9tD8XTiZdSPXeD8fnR4UYihTARD0zZg== 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 4Tdh0z0fSLzZ04; Mon, 19 Feb 2024 11:59:47 +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 41JBxlia005569; Mon, 19 Feb 2024 11:59:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JBxleq005566; Mon, 19 Feb 2024 11:59:47 GMT (envelope-from git) Date: Mon, 19 Feb 2024 11:59:47 GMT Message-Id: <202402191159.41JBxleq005566@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: 9d28fde03c28 - main - devel/pylyzer: Fix build with rust-1.76.0 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: 9d28fde03c284630be8ddce78b8ddac7bb452462 Auto-Submitted: auto-generated The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=9d28fde03c284630be8ddce78b8ddac7bb452462 commit 9d28fde03c284630be8ddce78b8ddac7bb452462 Author: Mikael Urankar AuthorDate: 2024-02-10 11:36:39 +0000 Commit: Mikael Urankar CommitDate: 2024-02-19 11:59:02 +0000 devel/pylyzer: Fix build with rust-1.76.0 Import upstream patch [1] to fix the following error: error[E0512]: cannot transmute between types of different sizes, or dependently-sized types --> /wrkdirs/usr/ports/devel/pylyzer/work/pylyzer-0.0.51/cargo-crates/rustpython-ast-0.3.0/src/impls.rs:60:1 [1] https://github.com/RustPython/Parser/commit/29c4728dbedc7e69cc2560b9b34058bbba9b1303 PR: 276920 Approved by: portmgr (build fix blanket) --- devel/pylyzer/Makefile | 2 +- ...-cargo-crates_rustpython-ast-0.3.0_src_impls.rs | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/devel/pylyzer/Makefile b/devel/pylyzer/Makefile index 2106c80bbade..96e373102bb1 100644 --- a/devel/pylyzer/Makefile +++ b/devel/pylyzer/Makefile @@ -1,7 +1,7 @@ PORTNAME= pylyzer DISTVERSIONPREFIX= v DISTVERSION= 0.0.51 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel python MAINTAINER= yuri@FreeBSD.org diff --git a/devel/pylyzer/files/patch-cargo-crates_rustpython-ast-0.3.0_src_impls.rs b/devel/pylyzer/files/patch-cargo-crates_rustpython-ast-0.3.0_src_impls.rs new file mode 100644 index 000000000000..8fdeef915564 --- /dev/null +++ b/devel/pylyzer/files/patch-cargo-crates_rustpython-ast-0.3.0_src_impls.rs @@ -0,0 +1,24 @@ +https://github.com/RustPython/Parser/commit/29c4728dbedc7e69cc2560b9b34058bbba9b1303 + +--- cargo-crates/rustpython-ast-0.3.0/src/impls.rs.orig 2024-02-10 11:55:13 ++++ cargo-crates/rustpython-ast-0.3.0/src/impls.rs +@@ -54,11 +54,12 @@ impl Expr { + } + } + +-#[cfg(target_arch = "x86_64")] +-static_assertions::assert_eq_size!(crate::Expr, [u8; 72]); +-#[cfg(target_arch = "x86_64")] +-static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]); +-#[cfg(target_arch = "x86_64")] +-static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]); +-#[cfg(target_arch = "x86_64")] ++// TODO: make this a #[test] to avoid eq comparison ++// #[cfg(target_arch = "x86_64")] ++// static_assertions::assert_eq_size!(crate::Expr, [u8; 72]); ++// #[cfg(target_arch = "x86_64")] ++// static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]); ++// #[cfg(target_arch = "x86_64")] ++// static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]); ++// #[cfg(target_arch = "x86_64")] + static_assertions::assert_eq_size!(crate::ExceptHandler, [u8; 64]);