From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 28 03:34:05 2023 Received: (at 61865) by debbugs.gnu.org; 28 Feb 2023 08:34:05 +0000 Received: from localhost ([127.0.0.1]:49638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWvQy-0005PJ-Mf for submit@debbugs.gnu.org; Tue, 28 Feb 2023 03:34:05 -0500 Received: from out203-205-221-231.mail.qq.com ([203.205.221.231]:49571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1pWvQn-0005ND-2I for 61865@debbugs.gnu.org; Tue, 28 Feb 2023 03:33:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1677573224; bh=jzRAIVHAkxmgr7AUil+WJRM/PWnbLU2Db+iharo6bzE=; h=From:To:Subject:Date:In-Reply-To:References; b=bmgidJB9HWxaGhOMbEpUxZlK6v9yJSooUffskbydpz8TiiISKoMUdV1DqwlzobxCF 26biSLUuEAvSyZs8EsUSsrb8vAWoqQFVpu7PKI6VZN6A+jwUM55N9AAe+LlfX+NSoe hZrWkSdt4fYpCzbwQhHvEEUgBwtMnjYMYQgKOwNA= Received: from localhost.localdomain ([111.0.51.52]) by newxmesmtplogicsvrszb1-0.qq.com (NewEsmtp) with SMTP id 868856C0; Tue, 28 Feb 2023 16:33:40 +0800 X-QQ-mid: xmsmtpt1677573223tcbp1a385 Message-ID: X-QQ-XMAILINFO: OKkKo7I1HxIe+PMPAgfWOO5daDVU7F/BQAutb2u1iAsMjxnqBkgCRpY+xCW9Pt 3yT+gsTuX13tlOL8uSljRXzzkizfXmv19IvgoMHQ3D8j7GRold/i2/uyrUunAOUYXBj6dqR6b84e luHju3PSScZCvH8bef79cnjOcZzP3k8A3WgbrrfqY9CrKxyf+dMiIXS7dxLam/QJrqgVR7OjgN1Y LorZMUVjd4mUWD1R5VKFWyCwwq4X+lh0EUSBQp6a3JPOk28P0J0Vxbtqa581gytdgbJk8NIE84GE OYApo7i5ZMiZTo0cptTAo6lmabgYI7MX05cNI+JKird4fPHADdMQC1/ooY72HCF8+xdvqwnulCPP xmuZx0GqbUsIx3M2VeSnWcgoWYLvFS0LXXk0qEM5kxUlBO6qwhfCoYuWsYKNAnThbutwErtOIHiV pfNLlKs8smWQroxmembrRINWpr2+uSxIOQKy6o0n7lQ3jTe0fdZtgzdARBauat0h08K7QplpCOBo aFy1EaZGKhvsmWSFptzutGBBqedwPi/rtCqjAlGu/XQhKnTyoDpqumscc35akve2nXM2VVZmLFhO QUQSx3QP6nE6M4+FvA4JvMlIi75TtqPDg6xN9L1ypk3Xfk4V7WOQsnEOtyqEQHm7kWfg7PPlK41U ZKDjEZLzrxvjTTQBxrMQQ/jgPjDHAqrHQ/8d2NuQ0Tl/YuhJicXYlXoaMh3Av/bsdioUHEK/a55q KxyRO71BvnvDbSdBrHe7OfkpVw3bFZG1Z2M8S6V9ZpGWdBXM+y5ezTwJDYD9AkKnxPhNkLDZBjem AAiNRvYAayYGXbwIk7WhGHadixrOWz2gWoeePqBy28HTf4dMl5Gu3cyPLS1wZ6hA+XRNk5OwUYP9 Hwb3OflMLe2Vlnd5GgvYads3XmMu6D9+kDcD6wAQh6K+AucR9GLNqRT4FaswGXRuHAHZZREQRu From: Z572 <873216071@qq.com> To: 61865@debbugs.gnu.org Subject: [PATCH 4/8] gnu: mtdev: fix riscv64 cross-compile. Date: Tue, 28 Feb 2023 16:33:36 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/xdisorg.scm(mtdev): fix riscv64 cross-compile [arguments]: when target is riscv64, add phase to update config.{guess,sub}. [native-inputs]: when target is riscv64, add config. --- gnu/p [...] Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.221.231 listed in list.dnswl.org] 0.0 T_PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (873216071[at]qq.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (873216071[at]qq.com) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) X-Debbugs-Envelope-To: 61865 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/packages/xdisorg.scm(mtdev): fix riscv64 cross-compile [arguments]: when target is riscv64, add phase to update config.{guess,sub}. [native-inputs]: when target is riscv64, add config. --- gnu/p [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [203.205.221.231 listed in list.dnswl.org] 0.0 T_PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (873216071[at]qq.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (873216071[at]qq.com) 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 3.2 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager * gnu/packages/xdisorg.scm(mtdev): fix riscv64 cross-compile [arguments]: when target is riscv64, add phase to update config.{guess,sub}. [native-inputs]: when target is riscv64, add config. --- gnu/packages/xdisorg.scm | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 2ebeb4e013..21bc368538 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -41,7 +41,7 @@ ;;; Copyright © 2020 Gabriel Arazas ;;; Copyright © 2020 James Smith ;;; Copyright © 2020 B. Wilson -;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2020, 2021, 2023 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021, 2022 Maxim Cournoyer ;;; Copyright © 2021, 2022 Nicolas Goaziou ;;; Copyright © 2021 Xinglu Chen @@ -763,7 +763,23 @@ (define-public mtdev (base32 "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm")))) (build-system gnu-build-system) - (arguments '(#:configure-flags '("--disable-static"))) + (arguments `(#:configure-flags '("--disable-static") + ,@(if (target-riscv64?) + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'update-config-scripts + (lambda* (#:key inputs native-inputs #:allow-other-keys) + ;; Replace outdated config.guess and config.sub. + (for-each (lambda (file) + (install-file + (search-input-file + (or native-inputs inputs) + (string-append "/bin/" file)) "./config-aux")) + '("config.guess" "config.sub")))))) + '()))) + (native-inputs (if (target-riscv64?) + (list config) + '())) (home-page "http://bitmath.org/code/mtdev/") (synopsis "Multitouch protocol translation library") (description "Mtdev is a stand-alone library which transforms all -- 2.39.1