From nobody Thu Aug 03 10:42:08 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 4RGllj3v6CzZXQW; Thu, 3 Aug 2023 10:42:09 +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 4RGllh6Q3Dz3NTv; Thu, 3 Aug 2023 10:42:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691059328; 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=1MjHVgX1JcwMC7E8465EWiqaQ54CDp5H/wUCnBYHuXQ=; b=nM3w4SelS4YiC4aNH/17pmLGm3uB2rHcG0taqpUT4qy5LaQf5MpI0vWJSiQFoI0IiToIZY pwkViXlYnPgHIhZK734v29KWjqARDWlUusrqQ/PEX6dIbTUMvx+kKF8Z2ud15akxTLD1KH BCg+1OgfKIn5AOU5zV6k9uyQfXJ3j40Lqd+GNB00IkR2gw0e6yHvCKIoH6oYXQpQuOSwMb gJmL3+405kYdzLVo+9x75vfz21SAWJKE6/wibuFeVHPd5ZH2iGNtygw3sngS4QBwGv5QhB 1JpBfrDGHo6ImM12+uthMqN16lUv+eVJ8yhuMmmQT8CJU0tsGldm12nvBEk5Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691059328; 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=1MjHVgX1JcwMC7E8465EWiqaQ54CDp5H/wUCnBYHuXQ=; b=BMsgh39lIEbbfQ1sv+DvN6vl1Gufu3727F0zX89zc6W/w2TWwVcSWg6vpuxFZ92KaAipFI SU1UlBbCvJUFxTUSQWsQUEEB/VBJ6Ldw8KhkLzcy0WBcOHifK1xlEUzNC3v98uGbT1bz5/ xLMnOTLFi0FxDDwoFZe69qR8fhw2IEtlxTr+tgaW8RGD2RA8/mCspHolIezZZN3XNN3Jgr Y4bkIW0TOAH9zdbSb3+UMKn51XmWyvfSu2OeK79dGA5pFLijJYriJpf6GFwJZ1aRcDiziL 4Eb51XODFTjSC1yJfCeeJ3rkop7ZVnWLkgmR7qoyNXn7HFNipUMVoEyOy/ulgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691059328; a=rsa-sha256; cv=none; b=tKqfjHjmNiSWTvpr1yimginNfQRXD05HCWbNyLOnKN4IkJ5dfe2MAbZEO+v1oZl/as0joy 8Lzglbfmvai7rRvZ/XBn+liw/hYNXy4DOyK+v4QI+cC/OF7IA0QUatNXLStpeHA2PJVv/2 1h+uD6dSVhR6ca8o0y2VBd1Y/Iun8Yt0efrFK26b3YCFR5zj2poalQvJtTrnbM/NgAs8EZ zMjH9+Es2VJOH3NlgxuT0d3amkC8gM7eBhdh7UmuVAS+MCOcobOd1s8ynBmlUySI6zhUDW FPhfpDTUaZ4F0fTyp/+gEoIG26rIwz59cFuGCKBczV44Biq4vPo+q9fgRuUm3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RGllh5Q1Rz3Qx; Thu, 3 Aug 2023 10:42: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 373Ag8Wq058507; Thu, 3 Aug 2023 10:42:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 373Ag8Bg058506; Thu, 3 Aug 2023 10:42:08 GMT (envelope-from git) Date: Thu, 3 Aug 2023 10:42:08 GMT Message-Id: <202308031042.373Ag8Bg058506@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: f9f98dc284d7 - main - misc/py-pyqir: fix build on ARM / POWER 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: f9f98dc284d75f25b00ebf9037b141f5528c348e Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=f9f98dc284d75f25b00ebf9037b141f5528c348e commit f9f98dc284d75f25b00ebf9037b141f5528c348e Author: Piotr Kubaj AuthorDate: 2023-08-03 10:39:55 +0000 Commit: Piotr Kubaj CommitDate: 2023-08-03 10:39:55 +0000 misc/py-pyqir: fix build on ARM / POWER char on ARM / POWER is unsigned. --- misc/py-pyqir/files/patch-qirlib_src_qis.rs | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/misc/py-pyqir/files/patch-qirlib_src_qis.rs b/misc/py-pyqir/files/patch-qirlib_src_qis.rs new file mode 100644 index 000000000000..32c481398423 --- /dev/null +++ b/misc/py-pyqir/files/patch-qirlib_src_qis.rs @@ -0,0 +1,32 @@ +--- qirlib/src/qis.rs.orig 2023-07-30 20:03:41 UTC ++++ qirlib/src/qis.rs +@@ -1,6 +1,8 @@ + // Copyright (c) Microsoft Corporation. + // Licensed under the MIT License. + ++use std::os::raw::c_char; ++ + use crate::{ + builder::{build_if, try_build_if}, + types, +@@ -194,7 +196,7 @@ unsafe fn mz(module: LLVMModuleRef) -> LLVMValueRef { + + let function = declare_qis(module, "mz", Functor::Body, ty); + let attr_name = "writeonly"; +- let kind_id = LLVMGetEnumAttributeKindForName(attr_name.as_ptr().cast::(), attr_name.len()); ++ let kind_id = LLVMGetEnumAttributeKindForName(attr_name.as_ptr().cast::(), attr_name.len()); + let attr = LLVMCreateEnumAttribute(context, kind_id, 0); + let result_param_index = 2; // indices are 1 based. + LLVMAddAttributeAtIndex(function, result_param_index, attr); +@@ -208,9 +210,9 @@ unsafe fn add_irreversible_attr(context: LLVMContextRe + let irreversable = "irreversible"; + let irreversable_attr = LLVMCreateStringAttribute( + context, +- irreversable.as_ptr().cast::(), ++ irreversable.as_ptr().cast::(), + irreversable.len() as u32, +- "".as_ptr().cast::(), ++ "".as_ptr().cast::(), + 0, + ); + LLVMAddAttributeAtIndex(function, LLVMAttributeFunctionIndex, irreversable_attr);