From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gMbnMDw3B2X+dgAA9RJhRA:P1 (envelope-from ) for ; Sun, 17 Sep 2023 19:28:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gMbnMDw3B2X+dgAA9RJhRA (envelope-from ) for ; Sun, 17 Sep 2023 19:28:28 +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 2F46F3236A for ; Sun, 17 Sep 2023 19:28:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FdXz4Mu0; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694971706; a=rsa-sha256; cv=none; b=qG4KCDaLUI8uPm4zDCGGicOw05MZ8WSW8Iuj+ABhmGEpoNiMdanNmGMFVU4qgTzzdfCKFA g5ZWPgNKkJsBuZ22tkTsian0LCaJGdqIuowbyBOumhwC1GjHW1nk6GrtTjwyL1hQqOsxtZ C++sIwvmjNlagEOPgr7Y/b5tYKo6JXzxg1jZD2wEPMdO7LLmvAV7CEcHIXnFmyk5gtgxbe 1kBMtbUn4PYvOni2WabJsbpXEu+wLSFUjV1cy65ajU9CM9CJa0LsssB+RFZpVqE6Ak4dLK OfZ0m1a4QLzqLmFIxoQ+VRdhfmkQFycC+OgoODekm+5kdCoaFbkgL4BBnKrDtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694971706; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=szRhqIY7GU9Kvyu33izFUWxTrCXBLF7VOUD3PPk+BeM=; b=FkPKIVIqyv0Q2W9Ji6eqwkPC6TSF+OB3EOMZA8CHwHQCwQ4g/OUHSsQeIDmfUIlZ6VRYRC ImZjTdYYNRkEOl0STuCmuLyjkRO97v5d+IIz3BxULikcowr5SvRk608lTFXTFeC2MVyUCi NfP8h1UVzG6GsTovdXxPtL5HZMoPD9xnXz4U8oU4ec9zQt5cuBZLNPYuk3aO3quJ2VTRiw Zlo04KDgYrChPa5lFM5qrGv0VZj8dZdiTnubAxXj/BXOXttfFr+yqbufqqtRuqQWgLOuE5 imJvaeuK+VhL/TSzgxlNxmINh9ojppgWkLPY1OUTIaublvjWSry/3zQsqB3pvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=FdXz4Mu0; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhvYv-0004fC-SE; Sun, 17 Sep 2023 13:28:03 -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 1qhvYq-0004eI-T3 for guix-patches@gnu.org; Sun, 17 Sep 2023 13:27:57 -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 1qhvYq-0007X6-FF for guix-patches@gnu.org; Sun, 17 Sep 2023 13:27:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhvYw-0006aH-QC; Sun, 17 Sep 2023 13:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v3 1/5] gnu: qtbase: Do not capture Python (again). Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, andreas@enge.fr, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sun, 17 Sep 2023 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65922@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Maxim Cournoyer , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 65922-submit@debbugs.gnu.org id=B65922.169497163925191 (code B ref 65922); Sun, 17 Sep 2023 17:28:02 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 17:27:19 +0000 Received: from localhost ([127.0.0.1]:51328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYF-0006Y9-0O for submit@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:19 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:56616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYB-0006Xm-Sx for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:17 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-656307a52e8so14693476d6.1 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 10:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694971622; x=1695576422; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=szRhqIY7GU9Kvyu33izFUWxTrCXBLF7VOUD3PPk+BeM=; b=FdXz4Mu0CIW5Z74oYWoy6Sckq3xctSCDcRiYx0WuLQFDpfkuVeNxzXE9F83N/H6epC KiFh1aBbXqZECgB/7r6v/4OBfS/trPQmATLT4qLs6MnyC0yYJoc7+V2g0IO+CfhNEIC3 IJP8Q1TiOF9IqJ50Mj3MSdXRGtHqtIsxFmveKs172b2bKmz9AP7gH/lsZWkijk3s20T8 rE7mFD24tyPA/fiLXLI+/a04mQqkhzlqDLcBUhlIIKSUwBParTtkeROFgZVvunY+Rbri HDWOkmFHaDRXniDjIUP6Alz5v9FG8gIn9qWIgbh6Z3jl/iL2TO/fBSpjiYiXIXQKIs9W MQAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971622; x=1695576422; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=szRhqIY7GU9Kvyu33izFUWxTrCXBLF7VOUD3PPk+BeM=; b=NUISYM1OpiI+xUMvUx0tga59Oa9T3T2P5Tq3KmgSyOSNSXN5Z6oPplGUNqzbrWa6Lx P5lzl4LQwPPATKxyWN/8TsVUiUkXxcXIxk4veABKtefdR+bPgXnBj5N/HTYYlZCl2ulw sHbQYyg387xtK0zAsTh6/IEDkTtr10iLe0c6SebxiDuwHPDpPnZMcdpjKPZMlCltWAXV OWtcg7+JVeD6QeomqiWmFFif5EbV5K7BcoMctSx30lGm2DEEyHgU+kCF/lctM/Y6mZvw m5nK8Ayt7QtjPlAASGYNDsjdgtwCbWgsXSLy7qwP7DqPT2YWXr3ExsVk2mLOcw14vXbB jD4g== X-Gm-Message-State: AOJu0YwobC27BYUdSju/4AcbtSfSpvy/16Q8KS8PY7dCa3C1VyEk1w8d 8lziBWQwBWsbWnx6yi/zPbEf+wK50Lg= X-Google-Smtp-Source: AGHT+IFZF0vfDF8HDRtuVyE8p0jrurjo6lH8PCaVPn3nH5zEFcdjkAdbEupDCpZA8FkpfNJOoQBkFg== X-Received: by 2002:a0c:f2d2:0:b0:656:2c01:2c20 with SMTP id c18-20020a0cf2d2000000b006562c012c20mr7391236qvm.26.1694971622358; Sun, 17 Sep 2023 10:27:02 -0700 (PDT) Received: from localhost.localdomain (dsl-10-149-131.b2b2c.ca. [72.10.149.131]) by smtp.gmail.com with ESMTPSA id fc14-20020ad44f2e000000b0064d0fb1a8c5sm2762468qvb.98.2023.09.17.10.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:27:01 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 13:26:13 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.10 X-Spam-Score: -3.10 X-Migadu-Queue-Id: 2F46F3236A X-Migadu-Scanner: mx2.migadu.com X-TUID: hpbzjZ0Bogw4 Fixes . * gnu/packages/qt.scm (qtbase-5) [arguments]: Add #:disallowed-references argument to guard against the problem reoccurring in the future. Add do-not-capture-python phase. (qtbase) [arguments]: Update do-not-capture-python phase. --- (no changes since v1) gnu/packages/qt.scm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index b7e394d663c..a158f8114fe 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -392,7 +392,7 @@ (define-public qtbase-5 fontconfig freetype glib - gtk+ ;for GTK theme support + gtk+ ;for GTK theme support harfbuzz icu4c libinput-minimal @@ -437,7 +437,8 @@ (define-public qtbase-5 vulkan-headers ruby-2.7)) (arguments - `(#:configure-flags + `(#:disallowed-references ,(list python) + #:configure-flags (let ((out (assoc-ref %outputs "out"))) (list "-verbose" "-prefix" out @@ -583,7 +584,16 @@ (define-public qtbase-5 (("^\\s*(QLibrary xcursorLib\\(QLatin1String\\(\")(Xcursor\"\\), 1\\);)" _ a b) (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)) (("^\\s*(xcursorLib.setFileName\\(QLatin1String\\(\")(Xcursor\"\\)\\);)" _ a b) - (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b)))))))) + (string-append a (assoc-ref inputs "libxcursor") "/lib/lib" b))))) + (add-after 'install 'do-not-capture-python + (lambda* (#:key outputs #:allow-other-keys) + ;; For some reason, patching the file after the + ;; patch-source-shebangs phase doesn't work for Qt 5. + (substitute* + (search-input-file + outputs "lib/qt5/mkspecs/features/uikit/devices.py") + (((which "python3")) + "/usr/bin/env python3"))))))) (native-search-paths (list (search-path-specification (variable "QMAKEPATH") @@ -724,10 +734,12 @@ (define-public qtbase (substitute* "src/corelib/CMakeLists.txt" (("/bin/ls") (search-input-file inputs "bin/ls"))))) + (delete 'do-not-capture-python) ;move after patch-source-shebangs (add-after 'patch-source-shebangs 'do-not-capture-python (lambda _ (substitute* '("mkspecs/features/uikit/devices.py" - "util/testrunner/qt-testrunner.py") + "util/testrunner/qt-testrunner.py" + "util/testrunner/sanitizer-testrunner.py") (((which "python3")) "/usr/bin/env python3")))) (replace 'configure -- 2.41.0