From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YFRYNDbEv2SI2wAASxT56A (envelope-from ) for ; Tue, 25 Jul 2023 14:46:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MPI/NDbEv2T5OwEA9RJhRA (envelope-from ) for ; Tue, 25 Jul 2023 14:46:46 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AFB503B5B8 for ; Tue, 25 Jul 2023 14:46:46 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=uTJSz4KW; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690289206; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=fnZKfOlaYdM3fylIoKuRdJfEkAid/iai/TxUJwjTknQ=; b=uvHwpT+Nk+VxAOBroWCu1vLAqe2BSHc4zRqZsG2cqBqAPzVwedZhcWfp5gMQczOLw7AEnu b8ghn+7F1AX+QEf9RQoA66lAdAyNBv/VHVuRrlsi3lgSv5L5VBvcYRFewAhBmLsuqKN+db 9OF8fNOE4pKwLLqqwvXHtum5SkM5ypZjAfEMm9fY82xsvQwtrEsVQltFYop64ut3RomU1L xrN84q7An4jzJsJ+SfZt1AIJHQ404liD5PnM643RYdPiqn01lz60tmauROkikc56g0BgqB iCHh6xq2hEmQZ5/WwMle2CrryPVVox+4oiMBUCCl6Rwig2wlkxa9PlCyfhtxOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690289206; a=rsa-sha256; cv=none; b=lwJFJLSH8a790dfkjre/wYi1xvaYJyVHsExqvyeL302Vj5J5l7hFLJCA83z2rol5Ml1pu/ juLQ24VWJCuziQ5P4imIKjudpOhSI/cE2Xi45GDUgVEbe4KwVnqJPZIlfN9tHJRSWmAw4G pa/pga8oqNqIOgq3wc4xO8fOGUZdbXfj4U2TpBPPRttJQV3clfu51uPyCnr7vB0/OROyxN ACX5PU1kK4dUZqZT6Ae6Scewsnu4TEIELzX+WELQTYkVF7NqMagp8Po59VSuzslBU6nspK 7+dXJUF+hQOWqm9++LVXVhrEg9uXMZj0drq5mI9/qG+UK9cfWmThrmTQ4YJpcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=uTJSz4KW; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOHQo-0007Dx-Nf; Tue, 25 Jul 2023 08:46:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qO5oQ-0004xG-Mh for bug-guix@gnu.org; Mon, 24 Jul 2023 20:22:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qO5oQ-0006Oc-Az for bug-guix@gnu.org; Mon, 24 Jul 2023 20:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qO5oQ-0003lj-6k for bug-guix@gnu.org; Mon, 24 Jul 2023 20:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64803: python-shiboken-6 fails Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Jul 2023 00:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64803 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Formbi Cc: 64803@debbugs.gnu.org Received: via spool by 64803-submit@debbugs.gnu.org id=B64803.169024450314463 (code B ref 64803); Tue, 25 Jul 2023 00:22:02 +0000 Received: (at 64803) by debbugs.gnu.org; 25 Jul 2023 00:21:43 +0000 Received: from localhost ([127.0.0.1]:44367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO5o6-0003lC-Oh for submit@debbugs.gnu.org; Mon, 24 Jul 2023 20:21:43 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:44488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO5o3-0003l1-Cu for 64803@debbugs.gnu.org; Mon, 24 Jul 2023 20:21:41 -0400 Date: Tue, 25 Jul 2023 08:21:34 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1690244231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fnZKfOlaYdM3fylIoKuRdJfEkAid/iai/TxUJwjTknQ=; b=uTJSz4KWLw1bLPyYs25ZVG3/AwkOhxPszRlE/7vU9ver6jdb6RaGCJDpfFHEYcTardK175 1dOM3p1xrASq/TN/BF53ZfGiXdNIDTdG/OqG/o/usE6ll/iVVNlW/uz+THh8jOqu/QwSRs WkEgcauT0lZvbicJniJMTNOZ3cwok9glqbG3cXYRg7PX0twLQerKfWwH5d4JQ4FqzS/OHT 2/GxyWqkuaXwo+aEpjSPxIMYNtoqMyWW5QK4nQbr90q2OP2ZFb0R2QeTNa8KQcTbSha+Z3 Ocjgjb20N4/GdfQbyJwNmFE6InQvYS7g8S0PiPlgp9vOLU6jo4I1AVzeZhqcUw== Message-ID: <87a5vkzvqp.wl-hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 25 Jul 2023 08:46:25 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain From: Hilton Chain via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.66 X-Spam-Score: -6.66 X-Migadu-Queue-Id: AFB503B5B8 X-Migadu-Scanner: mx1.migadu.com X-TUID: cCnME/chEKCP Hello Formbi, On Sun, 23 Jul 2023 19:26:11 +0800, Formbi via Bug reports for GNU Guix wrote: > The line in question (and the neighboring ones for context) looks > like this: > > import base64 > import importlib > import importlib.machinery as imachi > import io > import sys > import traceback > import zipfile python-shiboken-6 inherits the definition of python-shiboken-2, which has the following phase: --8<---------------cut here---------------start------------->8--- (add-before 'configure 'workaround-importlib-error (lambda _ ;; The following hack works around the error ;; "module 'importlib' has no attribute 'machinery'" ;; when building python-pyside-2, which depends on ;; this package. (substitute* "libshiboken/embed/signature_bootstrap.py" (("import importlib" all) (string-append all "\n import importlib.machinery as imachi")) (("importlib.machinery.ModuleSpec") "imachi.ModuleSpec")))) --8<---------------cut here---------------end--------------->8--- So python-shiboken-6 inherits the workaround as well, and that causes the issue. > How should I go about fixing this? Delete the phase in python-shiboken-6 or rewrite it if necessarily. :) There should be no need to keep it, as I can build python-pyside-6 with the following change: --8<---------------cut here---------------start------------->8--- diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a79338f84e..e8654eee44 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -4005,6 +4005,7 @@ (define-public python-shiboken-6 (substitute-keyword-arguments (package-arguments python-shiboken-2) ((#:phases p) #~(modify-phases #$p + (delete 'workaround-importlib-error) (replace 'use-shiboken-dir-only (lambda _ (chdir "sources/shiboken6"))))) ((#:configure-flags flags) --8<---------------cut here---------------end--------------->8--- I have sent the change to . Thanks