From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH 0/4] Avoid capturing python in qtbase, reinstate tests Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 16:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65922 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65922@debbugs.gnu.org Cc: Maxim Cournoyer , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by submit@debbugs.gnu.org id=B.16946242059177 (code B ref -1); Wed, 13 Sep 2023 16:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2023 16:56:45 +0000 Received: from localhost ([127.0.0.1]:35830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTAS-0002Nx-Sa for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:56:45 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTAN-0002Nf-W7 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:56:44 -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 1qgTAD-0000nP-Br for guix-patches@gnu.org; Wed, 13 Sep 2023 12:56:29 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgTA8-0004Rx-DL for guix-patches@gnu.org; Wed, 13 Sep 2023 12:56:28 -0400 Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-41206fd9717so45380971cf.3 for ; Wed, 13 Sep 2023 09:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624182; x=1695228982; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VPfSszXfbIXAs56mKY6qscXVxGUU7/joqfPq82f3b8E=; b=jDhzO7dm2qfV1iyeyKRvBHeWS9fGdPdGAi0IqSDwiTVxrTurxxDJk4sbDcCt9TGSVE c6XaXNGH9gx6MraB1v9ZBYL/HaP4LOEixHrQOA8NRsxLWAgoTXtbpg3BhILOkrklmkiL vBX7qx8/03UXE/a1Y42N/8NJ/ECSx+XkhGkYMCIZWsNVlu7TIVt3kJiNf6PtFk33EaPC eJ+LQMRX8v0z6veKGsCLDDojcR6L0uJDsQotcjt4+/JDKVkD94v1VTP0Ka5rXV8P+xwe 6JFk5qXY+Iiuj2ruFfRBpzZ/XEBG67eDpw1IkfIXVqDHRpZaUnxDXUmBreJrcQD/SqGM BXYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624182; x=1695228982; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VPfSszXfbIXAs56mKY6qscXVxGUU7/joqfPq82f3b8E=; b=IFD9Tebqb6KXTsEMXojyszSbB88Q1brMY4Z8GKX7Jc/8lE/x0BY5eHNd80H0EHHyK0 bhHJxM0WO/Tt9reapiKC67OIzToz2HCEqa9I2htGN/Nrwo/7q28Jx5xunZ8Ue3B2ZvBA bd+qY3EZZ0d0G0XPlthuEQa87VMt9q91B6halPRQxOba064LiyL9X8DyFjeDrmPrYRXp YBlSwCvlzz+RfUqzC+0tslQCG/0JfjcT/2odApdyCf9u5y2uM7YGNTqIMX0pp9aCs4pT FpmZJrgPyVCqoy37Cm9Iuf/CxvSirQLkuKZurbG2gZwNuEWEj29m1h2iom+EOYyD5KMi l/ww== X-Gm-Message-State: AOJu0YxCDT9YYUIhYBfzffy1f2ehBNtWfcvd/mNe07r57in6FopkCqG5 pTnKN7hvxrwu45FkJhRghGhlxwBHqHo= X-Google-Smtp-Source: AGHT+IHpf6OBVSFxNrv5KrgmP+NsNw9EEQW3K2H4cbNZC0zJgeAec6naHmK5RYWVo65WO0DlnsyTLQ== X-Received: by 2002:a05:622a:1c2:b0:413:5f30:9995 with SMTP id t2-20020a05622a01c200b004135f309995mr3771327qtw.36.1694624182439; Wed, 13 Sep 2023 09:56:22 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id jy1-20020a05622a818100b0040f8ac751a5sm4093270qtb.96.2023.09.13.09.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:56:21 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 12:56:13 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x836.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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: -0.0 (/) Thes series removes Python from the closure of qtbase, both for versions 5.15 and 6.5. It also reinstate a few tests that was made possible thanks to discussions with upstream following reported the issues. Changes in v2: - Also apply fix to qtbase-5 package. Maxim Cournoyer (4): gnu: qtbase: Do not capture Python (again). gnu: qtbase: Add $TZDIR to native search paths. gnu: qtbase: Reinstate date related tests. gnu: qtdeclarative: Add a debug output. gnu/packages/patches/qtbase-use-TZDIR.patch | 162 ++++++++++++++++---- gnu/packages/qt.scm | 54 ++++--- 2 files changed, 167 insertions(+), 49 deletions(-) base-commit: 4cb2e08b8eb1acc824b72ec17b483d7d85b5af68 -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH 1/4] gnu: qtbase: Do not capture Python (again). Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 16:59: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 , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: 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.16946243319426 (code B ref 65922); Wed, 13 Sep 2023 16:59:02 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 16:58:51 +0000 Received: from localhost ([127.0.0.1]:35841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCT-0002Rg-Bs for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:51 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:54493) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCK-0002RE-FU for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:47 -0400 Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-655cee6f752so365766d6.0 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 09:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624309; x=1695229109; 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=qAf92JelB4PDVyacHvCNSAbgjfRCxpxhdNloRvYDPwo=; b=N+40NI1OmRv4U6ih9i3OWrjz36E4U8KKh8Enh4n+BwJoWAB1lx6G7hacNCF28jbYIU 4/O4BXn5nYMVBy/FgsmuTt/m7FEIyvpL9Lp1gEKpmo/En4wMiy7bBSILQdIZ0g0D3jbK tokJrjLQzpNsvNYe8kpL0JJca62LtzLU5eD9xwEff7Zv58jTxCMmkauWkNFAuf0ny76p ZX/pWoGXEFi57ZUX+15leXTQjV407njW7wxwhg8pctEgNDoznsgA9mlU+556MAWfatBe EJPUNryGwuRM+80HFNcLvdvWHemwR7iixsWx+FV1VF5bdKononmVzYOzsdqioMaxXrB2 itzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624309; x=1695229109; 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=qAf92JelB4PDVyacHvCNSAbgjfRCxpxhdNloRvYDPwo=; b=nl6eYmiZ6ZOwTQqFkROZEp5eZan69qLIuch7W/zGSSx9yl9Nmf7Wh246I5MKXy8OLJ 92BNPJE+HWNTVTW2hSo7wBXE4ea8kMdXd+SjWm3wL2DrC0NB6HrzHBxokAc6OnNBRbqx QjodGCbmX76FjGULwx/yIoL5jDIxeb1oFTMskCCNUWKgNoGNge2Ap+0IWJXiN43SjE60 qttb/Sgg48eY1NHEEwPbFLLQ/OGRrq/N3vENjv+BOjQYV8st2TK0SD8Y8fmdAdava0uN Uk5OABl3Iz+U9/RxtkvoyRhxsZAChjyTYakvZj/EuKZ5egM/fbwfXYHNGnWcW5K6YTXc KrPA== X-Gm-Message-State: AOJu0YxE8oUSD76in6AHPpe9MDblyX3fhlRK/s5QhIsCdNwUvTmp/eid ghumbUK+OxeXpvq0VYU/IqDH8c4sYys= X-Google-Smtp-Source: AGHT+IFrhjcZ2FCp+NmbcAWXTuB7DCgdWamTCYHmFElYmJJlRfmQfaxWwfsQtxU8APZ5uMcy5pAGYw== X-Received: by 2002:a05:6214:459d:b0:651:679b:d35f with SMTP id op29-20020a056214459d00b00651679bd35fmr3305072qvb.43.1694624309262; Wed, 13 Sep 2023 09:58:29 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d13-20020a0cf0cd000000b0063fbfbde4adsm4526644qvl.129.2023.09.13.09.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:58:28 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 12:58:21 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) 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. --- Changes in v2: - Also apply fix to qtbase-5 package. 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 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH 2/4] gnu: qtbase: Add $TZDIR to native search paths. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 16:59: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 , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: 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.16946243339436 (code B ref 65922); Wed, 13 Sep 2023 16:59:02 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 16:58:53 +0000 Received: from localhost ([127.0.0.1]:35843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCX-0002S7-Ct for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:53 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:57810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCQ-0002RL-0n for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:50 -0400 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-64f387094ddso230006d6.3 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 09:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624315; x=1695229115; 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=Zii8QilSo2TxBVScScqudQYjGgYh0kOQFlpR02HO3oA=; b=Uoa6LRaTLRxRJSkLvUzh3lKLoal8uGlu1eRuH0OfFL+Sds2B2x16oA8tC1LrU4K403 xpzj5uXyKqfelDc+lD3Oda9yR++wwx16c8oE/8oIw/6K/9tDz6tqT+M8UfwJiL9UpHhs UogQ5dJmIGajXobVifo9S++X4/3r0EsR02NOvA6EYh+Od1zVRLhuC58vCfjBYfBPi3nD l+h8BlvlOxytEQXw4CnEWNCjZ2I9kudrRdpAIy13u5Gn1e2KpXjceFnvdnm1RGhD0I3k H2iZBTfHp6KAWFzeqTNbRF8jGx+rQm568jgt0ZaUehBswMj6xBrUk0IY7SWgdGmhxFhM iOdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624315; x=1695229115; 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=Zii8QilSo2TxBVScScqudQYjGgYh0kOQFlpR02HO3oA=; b=B6JHIldKLjnlWMOLkX1Ec5+XB8v6LIHhEpgIY449hQhDCPtjHxTuHm0z/hem3FuAo8 TQbsx9X9giC7rW29QtRyw+DTKUxpDUJRMFZ1ih2KAmOCW7X/JQMYqu/h4kxsNzkx4EMs tYFmffeRxUL/HBSOYWzLy+eG64Gpox1QSH821JqaE51mPhoCukXFzK3kpqXoHv855Khy 7WArqcQVT6ax2e+ewtS5qxV02+F4iilGMG32yMoC9uimxy6Xdd0CaFar2TzQndvGyzu0 q8/zKmYHOP6kpFYOsJ0M+3A72YoxTlUen6dxSqGijnzIMTaM+dI5Zf22SCi1t46/K2k8 e1aA== X-Gm-Message-State: AOJu0YyG1NZ4+xKgZQQgnw01SumNOtkooinrLPFUIdpxTKLRmE9MvB3s x72mv+8KtG2ZoWShof1yXA07KZLpDqw= X-Google-Smtp-Source: AGHT+IHkJcdXECMJZ6ibyaYSyB/yumINO8yb9UJGLFp9jEFsYuR3PMEWaxqNKajlPeggBh3S2BPlrw== X-Received: by 2002:ad4:50c6:0:b0:655:fbe6:5b42 with SMTP id e6-20020ad450c6000000b00655fbe65b42mr2628739qvq.13.1694624314920; Wed, 13 Sep 2023 09:58:34 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d13-20020a0cf0cd000000b0063fbfbde4adsm4526644qvl.129.2023.09.13.09.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:58:34 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 12:58:22 -0400 Message-ID: <4cb2ed7b09b84662ba38669766052e38e0b00abb.1694624089.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [native-search-paths]: Add $TZDIR. --- (no changes since v1) gnu/packages/qt.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a158f8114fe..8324beef6fc 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -60,6 +60,7 @@ (define-module (gnu packages qt) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix deprecation) + #:use-module (guix search-paths) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages bash) @@ -933,6 +934,7 @@ (define-public qtbase (search-path-specification (variable "QT_PLUGIN_PATH") (files '("lib/qt6/plugins"))) + $TZDIR (search-path-specification (variable "XDG_DATA_DIRS") (files '("share"))) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH 4/4] gnu: qtdeclarative: Add a debug output. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 16:59:03 +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 , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: 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.16946243349444 (code B ref 65922); Wed, 13 Sep 2023 16:59:03 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 16:58:54 +0000 Received: from localhost ([127.0.0.1]:35845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCX-0002S9-Ll for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:53 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:52467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCS-0002RQ-H3 for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:50 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-64c1d487e72so373806d6.0 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 09:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624317; x=1695229117; 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=L3mD24B3u75lNeiHQaV/qfzCG7DCgAQlXpGUWwHv5/c=; b=k/H1rgKrlzp5f7VSWQnOxn1vUn1/C4vo4H+TeRcPg9q37GUT9DdbxmvVTBE9/qmuuB yoWGbbXjZTcapzyX/xQFdypn6ETJE81xNab3U42iy7uVZ3GZ5pjYM8f4QrXVZjoI9dXD sZNhaejwmcEpsiY/o6SW1upnsMxgzhc5qhUNDx+eIj6kMZpv4qfEcqoq2h9s/KhRCfsa XF5zC6v/P3fwbkwF2/1a6JxDKg2ZS3A9OxE0Ln3tAUG562V+VnhhmR/9wk1uYOknfZ+L W65tvG7AeHwEP/2zIq4xXRkLf8C0Igor360XBYqX/XQ0akQYKZGpCw6XzC4wM/Ftg4RU zYWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624317; x=1695229117; 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=L3mD24B3u75lNeiHQaV/qfzCG7DCgAQlXpGUWwHv5/c=; b=DXCaUiglFRIB6CiQ+PlDSJOKQaexvGn0KEC+aOIKSzzZ2WXa77J0ZtAjlpCfmV9tlA hVxcVKmkUDbVJ322COl379IrWEuA1xsz8lb45LZRle24U2QRemnKFNVmNnRWtfhZ7iww MSANHs6AjBqEu9nT2nln3Wsv3qVmGd9LBrpX6b/FH04tp6j38PdJ72Axax+cwzIXee50 QfkuuDptIl6uEoLGNYjR7pxY3byMIHPeSXU43siTFaMMOi6AJCgT1sDkMWYLhVY/WEy0 RzeOa2YF8tuxUUo7ILDxnlsEJapMCkYecpuQV8EjMSi5xQIfDu04mTMB1lQGQQuYm6kG uroA== X-Gm-Message-State: AOJu0Ywt9g6ODGCRbA8gtenNp5euylxkWp8rz3Yo45wwrLbG/Y6Sn7Nw FIaJmDJX/hAu7dkt+bLbsmtRFDnzpGM= X-Google-Smtp-Source: AGHT+IEFUWtR+ZbAHQ52/YT2BYEsEaTA8TXC5TRFAwsHKBbkBbCo7Hv26WXbFs0jMS2s3EJGL6//uQ== X-Received: by 2002:a0c:b4ca:0:b0:656:1858:a178 with SMTP id h10-20020a0cb4ca000000b006561858a178mr41190qvf.9.1694624317332; Wed, 13 Sep 2023 09:58:37 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d13-20020a0cf0cd000000b0063fbfbde4adsm4526644qvl.129.2023.09.13.09.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:58:37 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 12:58:24 -0400 Message-ID: <0e039b26a95b285feb598d3effe67cc4e5c38a51.1694624089.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtdeclarative) [outputs]: New field. --- (no changes since v1) gnu/packages/qt.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index d6255248c2a..ed9d813756a 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1350,6 +1350,7 @@ (define-public qtdeclarative (base32 "06c7xfqn2a5s2m8j1bcvx3pyjqg1rgqkjvp49737gb4z9vjiz8gk")) (patches (search-patches "qtdeclarative-disable-qmlcache.patch")))) + (outputs '("out" "debug")) (build-system cmake-build-system) (arguments (list -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH 3/4] gnu: qtbase: Reinstate date related tests. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 16:59:03 +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 , Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: 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.16946243349450 (code B ref 65922); Wed, 13 Sep 2023 16:59:03 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 16:58:54 +0000 Received: from localhost ([127.0.0.1]:35847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCX-0002SH-W2 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:54 -0400 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:52624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTCR-0002RN-63 for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 12:58:50 -0400 Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-655de2a5121so298726d6.1 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 09:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624316; x=1695229116; 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=t4iv9XSOREb5XDgrciR/Isy3gPeaNil721EVP6WSK2M=; b=cUzQ+5+4Dj1S6LV2ZNSlkDYkGEgs7cPjHvXotl9rsvMrZpUTeEMSUAWtVYGAfLjcja SZKsDPqFzppJW7PkoKvpRHWPr2LyHRSn4gXiqiI0ke9qTKfEAOElVjHJf8XtwEoCQhSR /ri1nGgI5S/C3g/stMb4rqWJO/0bShfxODl2X9vC27fNrMcWX/Vq4OWOZ8z5QM2HnWUY NvHkjuI30zm+eIjGNdvb48Eq/oZ3OwukPLhItabvyAjesr6x8ihCvKzX/WWdGmYZ3WkT s+r79sAib3hjT0TnsxQIN7ouVGqFHP8uw9Cso6j/es5WB70jRPTYBPjnTfNpUp7CLYQ6 FtGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624316; x=1695229116; 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=t4iv9XSOREb5XDgrciR/Isy3gPeaNil721EVP6WSK2M=; b=BWpqyEXiOyoflvmstr/cK6trr3zkiB8kKT+eMmQfMPYu1kp+gRvReDySuTAFl38N/L 2A2MDRCuBY3sVShlaESjTc6vI+0oqjYB5YOTWYi2t5W72TOpxtsWt6meeeaKVh6MLLq/ dzHK4mCNW0Em/wCy90dC/y7czSfXmWOlBSXS2993ORR08UpyClAfIaTnHwadrBiWrogM 8SI5YIWHqZeZrOUU9ZKWI8FgWXSwMGymst5ftA1IpGGkjG4JEjzUU4fKuYdaKiT+Irtx ozsjg6D0LV4B3XC9SpelBhXtCw8ZOj6vMAtzBaJGlCrww4OE//PeCQft7IV15iQ1ppoi Ywsg== X-Gm-Message-State: AOJu0YxpD9iXLEjFsulAeSgNXy2L4bummk83jqtRvkb3qtGoEIAG4wPZ 4EZPRKX2k5b0O+L/RWqQzQUXfnNRYLg= X-Google-Smtp-Source: AGHT+IEjHB07GtXEZiY44WcAAk9JrTpZ0w9qxEhgPgKaMYJSbXpp9y4fn4QJKSzQh6YmFdlX3+0IRw== X-Received: by 2002:a05:6214:4607:b0:64f:82d2:26fe with SMTP id oq7-20020a056214460700b0064f82d226femr3594369qvb.39.1694624316063; Wed, 13 Sep 2023 09:58:36 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d13-20020a0cf0cd000000b0063fbfbde4adsm4526644qvl.129.2023.09.13.09.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:58:35 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 12:58:23 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [native-inputs]: Add tzdata-for-tests. [arguments]: Set the TZDIR and TZ environment variables, and reinstate the tst_qdate, tst_qtimezone and tst_qdatetime tests in the check phase. * gnu/packages/patches/qtbase-use-TZDIR.patch: Refresh patch with upstream version. --- (no changes since v1) gnu/packages/patches/qtbase-use-TZDIR.patch | 162 ++++++++++++++++---- gnu/packages/qt.scm | 31 ++-- 2 files changed, 148 insertions(+), 45 deletions(-) diff --git a/gnu/packages/patches/qtbase-use-TZDIR.patch b/gnu/packages/patches/qtbase-use-TZDIR.patch index b6c377b133c..98bf7493e9f 100644 --- a/gnu/packages/patches/qtbase-use-TZDIR.patch +++ b/gnu/packages/patches/qtbase-use-TZDIR.patch @@ -1,39 +1,141 @@ -Use $TZDIR to search for time-zone data. Thus avoid depending on package -"tzdata", which often introduces changes with near-immediate effects, so it's -important to be able to update it fast. +From 1075606f8b2f9e153c82f8e50cbd69cea9c72e87 Mon Sep 17 00:00:00 2001 +From: Edward Welbourne +Date: Mon, 11 Sep 2023 11:41:39 +0200 +Subject: [PATCH] Support the TZDIR environment variable -Based on a patch fron NixOS. -=================================================================== ---- qtbase-opensource-src-5.14.2.orig/src/corelib/time/qtimezoneprivate_tz.cpp -+++ qtbase-opensource-src-5.15.2/src/corelib/time/qtimezoneprivate_tz.cpp -@@ -70,7 +70,11 @@ - // Parse zone.tab table, assume lists all installed zones, if not will need to read directories +On Linux / glibc, this overrides the default system location for the +zone info. So check for files there first. Break out a function to +manage the trying of (now three) zoneinfo directories when opening a +file by name relative to there. + +Pick-to: 6.6 6.5 +Task-number: QTBUG-116017 +Change-Id: I1f97107aabd9015c0a5543639870f1d70654ca67 +--- +* Rebased on top of v6.5.2. + + src/corelib/time/qtimezoneprivate_tz.cpp | 73 ++++++++++++++++-------- + 1 file changed, 49 insertions(+), 24 deletions(-) + +diff --git a/src/corelib/time/qtimezoneprivate_tz.cpp b/src/corelib/time/qtimezoneprivate_tz.cpp +index 067191d816..a8b2fc894e 100644 +--- a/src/corelib/time/qtimezoneprivate_tz.cpp ++++ b/src/corelib/time/qtimezoneprivate_tz.cpp +@@ -51,17 +51,41 @@ typedef QHash QTzTimeZoneHash; + + static bool isTzFile(const QString &name); + ++// Open a named file under the zone info directory: ++static bool openZoneInfo(QString name, QFile *file) ++{ ++ // At least on Linux / glibc (see man 3 tzset), $TZDIR overrides the system ++ // default location for zone info: ++ const QString tzdir = qEnvironmentVariable("TZDIR"); ++ if (!tzdir.isEmpty()) { ++ file->setFileName(QDir(tzdir).filePath(name)); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ // Try modern system path first: ++ constexpr auto zoneShare = "/usr/share/zoneinfo/"_L1; ++ if (tzdir != zoneShare && tzdir != zoneShare.chopped(1)) { ++ file->setFileName(zoneShare + name); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ // Fall back to legacy system path: ++ constexpr auto zoneLib = "/usr/lib/zoneinfo/"_L1; ++ if (tzdir != zoneLib && tzdir != zoneLib.chopped(1)) { ++ file->setFileName(zoneShare + name); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ return false; ++} ++ + // Parse zone.tab table for territory information, read directories to ensure we + // find all installed zones (many are omitted from zone.tab; even more from + // zone1970.tab). static QTzTimeZoneHash loadTzTimeZones() { - QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); -+ // Try TZDIR first, in case we're running on GuixSD. -+ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab"); -+ // Fallback to traditional paths in case we are not on GuixSD. -+ if (!QFile::exists(path)) -+ path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); - if (!QFile::exists(path)) - path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); +- if (!QFile::exists(path)) +- path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); +- +- QFile tzif(path); +- if (!tzif.open(QIODevice::ReadOnly)) ++ QFile tzif; ++ if (!openZoneInfo("zone.tab"_L1, &tzif)) + return QTzTimeZoneHash(); -@@ -645,6 +649,9 @@ + QTzTimeZoneHash zonesHash; +@@ -91,6 +115,7 @@ static QTzTimeZoneHash loadTzTimeZones() + } + } + ++ const QString path = tzif.fileName(); + const qsizetype cut = path.lastIndexOf(u'/'); + Q_ASSERT(cut > 0); + const QDir zoneDir = QDir(path.first(cut)); +@@ -761,20 +786,13 @@ QTzTimeZoneCacheEntry QTzTimeZoneCache::findEntry(const QByteArray &ianaId) + tzif.setFileName(QStringLiteral("/etc/localtime")); if (!tzif.open(QIODevice::ReadOnly)) - return; - } else { -+ // Try TZDIR first, in case we're running on GuixSD. -+ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId)); -+ if (!tzif.open(QIODevice::ReadOnly)) { - // Open named tz, try modern path first, if fails try legacy path - tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId)); - if (!tzif.open(QIODevice::ReadOnly)) { -@@ -652,6 +659,7 @@ - if (!tzif.open(QIODevice::ReadOnly)) - return; + return ret; +- } else { +- // Open named tz, try modern path first, if fails try legacy path +- tzif.setFileName("/usr/share/zoneinfo/"_L1 + QString::fromLocal8Bit(ianaId)); +- if (!tzif.open(QIODevice::ReadOnly)) { +- tzif.setFileName("/usr/lib/zoneinfo/"_L1 + QString::fromLocal8Bit(ianaId)); +- if (!tzif.open(QIODevice::ReadOnly)) { +- // ianaId may be a POSIX rule, taken from $TZ or /etc/TZ +- auto check = validatePosixRule(ianaId); +- if (check.isValid) { +- ret.m_hasDst = check.hasDst; +- ret.m_posixRule = ianaId; +- } +- return ret; +- } ++ } else if (!openZoneInfo(QString::fromLocal8Bit(ianaId), &tzif)) { ++ // ianaId may be a POSIX rule, taken from $TZ or /etc/TZ ++ auto check = validatePosixRule(ianaId); ++ if (check.isValid) { ++ ret.m_hasDst = check.hasDst; ++ ret.m_posixRule = ianaId; ++ return ret; } -+ } } - QDataStream ds(&tzif); +@@ -1317,7 +1335,8 @@ private: + { + // On most distros /etc/localtime is a symlink to a real file so extract + // name from the path +- const auto zoneinfo = "/zoneinfo/"_L1; ++ const QString tzdir = qEnvironmentVariable("TZDIR"); ++ constexpr auto zoneinfo = "/zoneinfo/"_L1; + QString path = QStringLiteral("/etc/localtime"); + long iteration = getSymloopMax(); + // Symlink may point to another symlink etc. before being under zoneinfo/ +@@ -1325,9 +1344,15 @@ private: + // symlink, like America/Montreal pointing to America/Toronto + do { + path = QFile::symLinkTarget(path); +- int index = path.indexOf(zoneinfo); +- if (index >= 0) // Found zoneinfo file; extract zone name from path: +- return QStringView{ path }.mid(index + zoneinfo.size()).toUtf8(); ++ // If it's a zoneinfo file, extract the zone name from its path: ++ int index = tzdir.isEmpty() ? -1 : path.indexOf(tzdir); ++ if (index >= 0) { ++ const auto tail = QStringView{ path }.sliced(index + tzdir.size()).toUtf8(); ++ return tail.startsWith(u'/') ? tail.sliced(1) : tail; ++ } ++ index = path.indexOf(zoneinfo); ++ if (index >= 0) ++ return QStringView{ path }.sliced(index + zoneinfo.size()).toUtf8(); + } while (!path.isEmpty() && --iteration > 0); + + return QByteArray(); + +base-commit: af457a9f0f7eb1a2a7d11f495da508faab91a442 +-- +2.41.0 + diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 8324beef6fc..d6255248c2a 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -747,7 +747,8 @@ (define-public qtbase (assoc-ref %standard-phases 'configure)) (delete 'check) ;move after patch-prl-files (add-after 'patch-prl-files 'check - (lambda* (#:key tests? parallel-tests? #:allow-other-keys) + (lambda* (#:key tests? parallel-tests? + native-inputs inputs #:allow-other-keys) (when tests? ;; The tests expect to find the modules provided by this ;; package; extend the environment variables needed to do so. @@ -770,6 +771,18 @@ (define-public qtbase ;; /tree/src/testlib/qtestblacklist.cpp). (setenv "QTEST_ENVIRONMENT" "linux ci 32bit") (setenv "HOME" "/tmp") ;some tests require a writable HOME + + ;; Note: the search path specified for TZDIR is only + ;; effective for users of the package, not while it's being + ;; built. + (setenv "TZDIR" (search-input-directory + (or native-inputs inputs) "share/zoneinfo")) + + ;; This is to avoid QTimeZone::systemTimeZone() returning + ;; invalid QDate objects due to missing /etc/timezone or + ;; /etc/localtime. + (setenv "TZ" "Etc/UTC") + (invoke "xvfb-run" "ctest" "--output-on-failure" "-j" (if parallel-tests? @@ -783,11 +796,6 @@ (define-public qtbase ;; The 'tst_moc' test fails with "'fi.exists()' returned FALSE". "tst_moc" - ;; The 'tst_qdate' test fails because the current time - ;; is reported as an invalid date (see: - ;; https://bugreports.qt.io/browse/QTBUG-116017). - "tst_qdate" - ;; The qgraphicsview and qopenglwidget tests fail with a ;; segfault for unknown reasons (see: ;; https://bugreports.qt.io/browse/QTBUG-116018). @@ -826,14 +834,6 @@ (define-public qtbase ;; The 'test_import_plugins' fails with "Could NOT find ;; Qt6MockPlugins1". "test_import_plugins" - ;; The 'tst_QTimeZone::systemZone' validates the - ;; currently set timezone and fails. - "tst_qtimezone" - ;; The 'tst_qdatetime' fails with: - ;; FAIL! : tst_QDateTime::offsetFromUtc() Compared values are not the same - ;; Actual (dt5.offsetFromUtc()): 0 - ;; Expected (46800) : 46800 - "tst_qdatetime" ;; The tst_QObjectRace::destroyRace is flaky (see: ;; https://bugreports.qt.io/browse/QTBUG-103489). "tst_qobjectrace" @@ -910,7 +910,8 @@ (define-public qtbase (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))))))))) (native-inputs (modify-inputs (package-native-inputs qtbase-5) - (prepend wayland-protocols + (prepend tzdata-for-tests + wayland-protocols xvfb-run))) (inputs (modify-inputs (package-inputs qtbase-5) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 0/4] Avoid capturing python in qtbase, reinstate tests References: In-Reply-To: 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: Wed, 13 Sep 2023 17:35: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.169462646323087 (code B ref 65922); Wed, 13 Sep 2023 17:35:02 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 17:34:23 +0000 Received: from localhost ([127.0.0.1]:35907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTkt-00060J-Cp for submit@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:23 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:52490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTkr-000603-M8 for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:22 -0400 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-770ef0f51ccso6024185a.1 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 10:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694626450; x=1695231250; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=M3+AA/uxa5bcrmwkxMhALxPH3hhBLlDcX3Q6BpcbBGA=; b=LodpYDaWkbz+9i4+XzCd94ILqX1Y5HqFcie342StvJcf37kGC8IbvNA+GIFFp65srj iCVxRlANVdmdQukDzGaIuXIjfP5QPdJwNOukwPeunBvkdJXADhj1sIMnmDt8DFZqOXne 6A9qLG0Oj9wmPV1wOUy3/Cm5hFtUqO87JGZa2B9s3rLiY/PmpWWSL6IY+Ufj6qrutC8b +3Os9Q8a5xPteLNmbPDyKH73v+2zp8lngj8dvF7leMC4/j9aO6wchpgR/XVO0b/pcFmw NY/RJFzJuyAZMi2qhWM8VueoD1t2HEO074Qim6QGhHXfgVmanZV1hwNuIRMgiT3xZPYI SBuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694626450; x=1695231250; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M3+AA/uxa5bcrmwkxMhALxPH3hhBLlDcX3Q6BpcbBGA=; b=MP0nIiCps/k4mLWQC5yhLcLwJjSG/cqj9ZxIs+W61VVk5lBg+x08wxMBVhY1rcrpiV AP85ZF6A9oVrXmbt4ZCI0ldTmRw7LrCMXj8Hm+70oADDj6R8lP+3Eqx2JKZVagdGbpUP XTz3OPTIaOTLCCJW4oqzy5NjqaZ3GEq9N16TWm7gsSIKV1mR8lJfcycb67VOxdz/FoZJ vehb3R98i6ukKdImtWisouKsVx5TmLSbfmFkPMNYjHO8O5pMtm4PmE8klQnC5zWuf08G xvl12cnOXNpo/pUd/66D+I7L2MFv4LTZNYxhqDXo2fwELfjAfblHHUYwXaI8c5+Sg44C rrnQ== X-Gm-Message-State: AOJu0Yyvx5+fJIUxE3HYcpD66OdsVjm9q/f5jvg1dK2Qs3yDB+CmsLt3 h1IKjqZJSbHnz8VXe9+pDCAUqoyt3Js= X-Google-Smtp-Source: AGHT+IEjDu0slnL0Jz2wLbauf6gQyuaDJZfLGwnpzeR7AHk9gq5uJSE+riLE5iVpOc3EEkTKQNuH6w== X-Received: by 2002:a05:620a:459e:b0:76f:f64:58bf with SMTP id bp30-20020a05620a459e00b0076f0f6458bfmr3143647qkb.18.1694626449351; Wed, 13 Sep 2023 10:34:09 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a136500b0076f206cf16fsm4035194qkl.89.2023.09.13.10.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:34:08 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 13:33:12 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) Thes series removes Python from the closure of qtbase, both for versions 5.15 and 6.5. It also reinstate a few tests that was made possible thanks to discussions with upstream following reported the issues. Changes in v2: - Use old TZDIR patch for qtbase@5 (the new one doesn't apply) Maxim Cournoyer (4): gnu: qtbase: Do not capture Python (again). gnu: qtbase: Add $TZDIR to native search paths. gnu: qtbase: Reinstate date related tests. gnu: qtdeclarative: Add a debug output. gnu/local.mk | 1 + gnu/packages/patches/qtbase-5-use-TZDIR.patch | 39 +++++ gnu/packages/patches/qtbase-use-TZDIR.patch | 162 ++++++++++++++---- gnu/packages/qt.scm | 56 +++--- 4 files changed, 208 insertions(+), 50 deletions(-) create mode 100644 gnu/packages/patches/qtbase-5-use-TZDIR.patch base-commit: 4cb2e08b8eb1acc824b72ec17b483d7d85b5af68 -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 1/4] 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: Wed, 13 Sep 2023 17:35: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.169462646723106 (code B ref 65922); Wed, 13 Sep 2023 17:35:02 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 17:34:27 +0000 Received: from localhost ([127.0.0.1]:35910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTkw-00060a-Pk for submit@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:27 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:53441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTku-000607-7C for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:24 -0400 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-76ef935abaeso5507385a.2 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 10:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694626453; x=1695231253; 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=osKxVdGV59kuouEExawLPHFHgQugcsmW7hiqXRXxijyIbuw5JtGkXT/wiPZ0qoP5+8 zpxzCn5bBrE0Q3YIRgOdd10UYRak2vw0/k7GrxBagwNdcJSOkHoHrq6cMDE9IygBNOSt Fw4nUFnW17nBRcVrLKlcePbcS/bImVIkQXT5oQfIAX3AaAcLebGooxucDFvVtnyPOlUe z9FxFCXQB75d37gFKMIsLaiM76TKhRkrs1OMwuqzhvsUWGx1IDQK3+f1TfQXzCkr2J3R hHBDuegpMM8wvtYQa6IGxMfuCl5CN1pfFBgog4pBtAsVlDuwe+1kVF8CDPksjMO4d1La Xa6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694626453; x=1695231253; 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=cIBW5hcG8KXJqbBixXucEIswT9YFAs9Rok2fjFO7J7dOOXwQuufDFk3FHeX7C8Ufmb Uv7JYp5JTW8AuKyMR53u3ye9rLC8YtF0YnPnViwMM8rH+0hqXmOpcDvXOqbWmvR5FB1c mVg/MOZ1DHDYtSgKQn/RU/BSV4pUk6aB/ryo7mDHxvi7eSiSNjDucO9iZHm5y7pefpb5 /vtzCv6ZlCirs41vRQaeRLB5G7T75Jt1caRHlp50k44xP/Qen0R0XcgWIJAB40R/cQrb fy0edvbynQXcaajnFgSbpPidXJp08JM8ZEu5H+xzMYKb6WCInwqQP1sgAylm9sqZb7A6 4oDw== X-Gm-Message-State: AOJu0YwVHe1cB3xqOdGzZ3eYLpJxJypckzEteLgFiYBzChBOF7MQrbpe BVUXpPhoQBbtRhdeSirTutlvuNvNBO8= X-Google-Smtp-Source: AGHT+IEuhi6bJFKmbuP58RLvw7aVFF5LgAvucpSZ0vScxINnchyjJANOK51GmOz3faKKrvrLLI+K6g== X-Received: by 2002:a05:620a:a03:b0:767:954:a752 with SMTP id i3-20020a05620a0a0300b007670954a752mr2904718qka.73.1694626453113; Wed, 13 Sep 2023 10:34:13 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a136500b0076f206cf16fsm4035194qkl.89.2023.09.13.10.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:34:12 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 13:33: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-Spam-Score: 0.0 (/) 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: -1.0 (-) 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 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 2/4] gnu: qtbase: Add $TZDIR to native search paths. 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: Wed, 13 Sep 2023 17:35:03 +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.169462647023120 (code B ref 65922); Wed, 13 Sep 2023 17:35:03 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 17:34:30 +0000 Received: from localhost ([127.0.0.1]:35913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTl0-00060q-Br for submit@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:30 -0400 Received: from mail-yw1-x112f.google.com ([2607:f8b0:4864:20::112f]:56415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTkw-00060A-P8 for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:27 -0400 Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-590685a3be5so952797b3.0 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 10:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694626455; x=1695231255; 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=Zii8QilSo2TxBVScScqudQYjGgYh0kOQFlpR02HO3oA=; b=QxkjIvDMOE/37TXTSYko4O69Alr5BrLEsWYMed1uYlVH3wLjCSnCGwlksGe+0XUFLa cMaZ2zlhNCVse1p0zCmbKbS4w43KjaaUJO+pHW7c+90CdGLulAxZ96Tx4MdbXuVeH15b P6VzXVRwgQKzlLVNyk+pJpkIR4F7gOSH9DvC4gTrttq4ozvfU+OqeShq3yAArkYuxWZc huOb+7mREGLNa3hJhGAnELTAd6COxaVEXCkxF/nPDcr/anNRlqX2aNxSW6PtPpzD0SOi T+y4KHOkL74xkA+0SZwcYPWflV8ARBFdia5X2uNOfGg6YTUh+mdfKIVpf7ZphZ3lZNk4 Evqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694626455; x=1695231255; 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=Zii8QilSo2TxBVScScqudQYjGgYh0kOQFlpR02HO3oA=; b=GgvOfu+O901VAdXlf7NmI7lIQFtWRFsCbJo6RIvMfECSDzLvwhvXK2OJvcD4B2XY2+ P+5mdv0PT+0BbYWy9uMbWbpdkbc26uzOzIGSJNETkbgWXQHTrjCdnlxFdVDKN3AjKaOQ vQxQQ6nRXP/ZM+D+zrb3gONhbjDZpur1PvdGA6rGxm4flkd7fJOFxU5MNCUpPYbA+R7j /v/NWzRfZghpv7GexgS4SdE1GZD3upZhBpukCgJ4I3P83E0CPT02R+b6bvGYQfMUP5BM DFNP25bk/j7ccGdsammypwJOYA9y72HyFQao7bHx7QotAiDL7/2/6n/HfWzxFDdNTuOQ aNlA== X-Gm-Message-State: AOJu0YyAAArjZFnx/ezLofjnyp7SB/7GbEVwHDHw7Sst1D3cwXj9Nt0y f/N0fIm8+7ndseYb6i7J8h1RjqRpSUE= X-Google-Smtp-Source: AGHT+IG7WNz6oBmvUdVdJ5vSBZqDx6UWkPaePaB+iXXuw+zAhOb0x/jKI7ryF9zl25x2BYAJlgatPQ== X-Received: by 2002:a0d:e2ca:0:b0:595:5609:cb78 with SMTP id l193-20020a0de2ca000000b005955609cb78mr3074998ywe.33.1694626455613; Wed, 13 Sep 2023 10:34:15 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a136500b0076f206cf16fsm4035194qkl.89.2023.09.13.10.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:34:15 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 13:33:14 -0400 Message-ID: <0e56555b7b6826b81d721836d5312b01f6e3525c.1694626350.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [native-search-paths]: Add $TZDIR. --- (no changes since v1) gnu/packages/qt.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a158f8114fe..8324beef6fc 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -60,6 +60,7 @@ (define-module (gnu packages qt) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix deprecation) + #:use-module (guix search-paths) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages bash) @@ -933,6 +934,7 @@ (define-public qtbase (search-path-specification (variable "QT_PLUGIN_PATH") (files '("lib/qt6/plugins"))) + $TZDIR (search-path-specification (variable "XDG_DATA_DIRS") (files '("share"))) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 3/4] gnu: qtbase: Reinstate date related tests. 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: Wed, 13 Sep 2023 17:35:03 +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.169462647423142 (code B ref 65922); Wed, 13 Sep 2023 17:35:03 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 17:34:34 +0000 Received: from localhost ([127.0.0.1]:35917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTl3-00061A-Og for submit@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:34 -0400 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:57710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTl0-00060Q-F9 for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:31 -0400 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-76dc77fd01fso5391785a.3 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 10:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694626458; x=1695231258; 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=AfE33+JjGsXpSwwV28+GpefQzh8ySkabOfHnQM/jTAk=; b=mIR/4Ksq8IciaKeh/HzO99E1crkeiXvwNKcFOE+UMmqtNEkGOwv93lENN1Z2k+Om47 dlZjctZT6zGpCjWsNsmi/LNBvYHwQLGRRXGu8xIzZ9+f6Knp2oCFDGOBUxP5R5HQROTm /EebCNIn/NqqeG338AHvLGtuCl4ncAtdsa+pX0rB7WK/3W5wSZ3KRvl5aVb3SZ/mxHsB 39zAuEqEIFH2moE/19fauHxU/X+8eWwDWdGhVX7zQ4F/13WHO1+EL2EAX8hNwDDZhhXl nQ5PSihLOnVejmwHZhYCdRnhn+pC5oEdLysLb0R5UhwJ5YxrAglMLaMbXxVz5zWuY3kV u+gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694626458; x=1695231258; 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=AfE33+JjGsXpSwwV28+GpefQzh8ySkabOfHnQM/jTAk=; b=OIFWEDoasr3qmf9JjNx1lIuAsniLETk2VeTwBDNQeQEiijU4tB/JsIqmvyaKQfJxXL 3pOYzudhlk5SdQVnTUTZUuhxTw29w23EiTsT1KTX7m+1ZurpoKuWH6ElgR74PrUa9B1J eH6/YGDho3LMkGqE8tYabMrKKgDSVRCpd9rigrW92PXNcBK262sgoWaIC0ZYWFV1tVvS 7qzAilTd4Cdu+AkjMy05A4JsO2stNgOUIvLoG9PxQLSjxlhmsX7BWVDdniVoB249NeMK B99gvxSAXobaIw7yg8P0LapuZRL/zhwbZDa97GEOgGDPhlNUD7ZWMsQbkfqRehEORPEG K1rA== X-Gm-Message-State: AOJu0Yy5QWosBZBmeIYSGSpguanj9egSMDMsibTDujW3BiapSLkyvpoE RDI9YkwJSkVI7Qk4d+VEucZWB7fn72Q= X-Google-Smtp-Source: AGHT+IHyMt4jdOtKJh9H4bER0OtCp+2rpHC/yPUZyV/LmLbp5xM8m7dtnDoCIpqKyN+2EWv1TsIX4w== X-Received: by 2002:a05:620a:25d0:b0:770:ef43:7638 with SMTP id y16-20020a05620a25d000b00770ef437638mr3995518qko.33.1694626458171; Wed, 13 Sep 2023 10:34:18 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a136500b0076f206cf16fsm4035194qkl.89.2023.09.13.10.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:34:17 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 13:33:15 -0400 Message-ID: <931555dfc97a20c94e7ca50d61373a4d10548a17.1694626350.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [native-inputs]: Add tzdata-for-tests. [arguments]: Set the TZDIR and TZ environment variables, and reinstate the tst_qdate, tst_qtimezone and tst_qdatetime tests in the check phase. (qtbase-5) [source]: Replace qtbase-use-TZDIR.patch with qtbase-5-use-TZDIR.patch. * gnu/packages/patches/qtbase-use-TZDIR.patch: Refresh patch with upstream version, and preserve the old one for qtbase@5 as... * gnu/packages/patches/qtbase-5-use-TZDIR.patch: ... this. * gnu/local.mk (dist_patch_DATA): Register new patch. --- Changes in v2: - Use old TZDIR patch for qtbase@5 (the new one doesn't apply) gnu/local.mk | 1 + gnu/packages/patches/qtbase-5-use-TZDIR.patch | 39 +++++ gnu/packages/patches/qtbase-use-TZDIR.patch | 162 ++++++++++++++---- gnu/packages/qt.scm | 33 ++-- 4 files changed, 189 insertions(+), 46 deletions(-) create mode 100644 gnu/packages/patches/qtbase-5-use-TZDIR.patch diff --git a/gnu/local.mk b/gnu/local.mk index 4f8637418ad..2d8ddf5716c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1878,6 +1878,7 @@ dist_patch_DATA = \ %D%/packages/patches/qtbase-absolute-runpath.patch \ %D%/packages/patches/qtbase-moc-ignore-gcc-macro.patch \ %D%/packages/patches/qtbase-qmake-use-libname.patch \ + %D%/packages/patches/qtbase-5-use-TZDIR.patch \ %D%/packages/patches/qtbase-use-TZDIR.patch \ %D%/packages/patches/qtscript-disable-tests.patch \ %D%/packages/patches/quagga-reproducible-build.patch \ diff --git a/gnu/packages/patches/qtbase-5-use-TZDIR.patch b/gnu/packages/patches/qtbase-5-use-TZDIR.patch new file mode 100644 index 00000000000..b6c377b133c --- /dev/null +++ b/gnu/packages/patches/qtbase-5-use-TZDIR.patch @@ -0,0 +1,39 @@ +Use $TZDIR to search for time-zone data. Thus avoid depending on package +"tzdata", which often introduces changes with near-immediate effects, so it's +important to be able to update it fast. + +Based on a patch fron NixOS. +=================================================================== +--- qtbase-opensource-src-5.14.2.orig/src/corelib/time/qtimezoneprivate_tz.cpp ++++ qtbase-opensource-src-5.15.2/src/corelib/time/qtimezoneprivate_tz.cpp +@@ -70,7 +70,11 @@ + // Parse zone.tab table, assume lists all installed zones, if not will need to read directories + static QTzTimeZoneHash loadTzTimeZones() + { +- QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); ++ // Try TZDIR first, in case we're running on GuixSD. ++ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab"); ++ // Fallback to traditional paths in case we are not on GuixSD. ++ if (!QFile::exists(path)) ++ path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); + if (!QFile::exists(path)) + path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); + +@@ -645,6 +649,9 @@ + if (!tzif.open(QIODevice::ReadOnly)) + return; + } else { ++ // Try TZDIR first, in case we're running on GuixSD. ++ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId)); ++ if (!tzif.open(QIODevice::ReadOnly)) { + // Open named tz, try modern path first, if fails try legacy path + tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId)); + if (!tzif.open(QIODevice::ReadOnly)) { +@@ -652,6 +659,7 @@ + if (!tzif.open(QIODevice::ReadOnly)) + return; + } ++ } + } + + QDataStream ds(&tzif); diff --git a/gnu/packages/patches/qtbase-use-TZDIR.patch b/gnu/packages/patches/qtbase-use-TZDIR.patch index b6c377b133c..98bf7493e9f 100644 --- a/gnu/packages/patches/qtbase-use-TZDIR.patch +++ b/gnu/packages/patches/qtbase-use-TZDIR.patch @@ -1,39 +1,141 @@ -Use $TZDIR to search for time-zone data. Thus avoid depending on package -"tzdata", which often introduces changes with near-immediate effects, so it's -important to be able to update it fast. +From 1075606f8b2f9e153c82f8e50cbd69cea9c72e87 Mon Sep 17 00:00:00 2001 +From: Edward Welbourne +Date: Mon, 11 Sep 2023 11:41:39 +0200 +Subject: [PATCH] Support the TZDIR environment variable -Based on a patch fron NixOS. -=================================================================== ---- qtbase-opensource-src-5.14.2.orig/src/corelib/time/qtimezoneprivate_tz.cpp -+++ qtbase-opensource-src-5.15.2/src/corelib/time/qtimezoneprivate_tz.cpp -@@ -70,7 +70,11 @@ - // Parse zone.tab table, assume lists all installed zones, if not will need to read directories +On Linux / glibc, this overrides the default system location for the +zone info. So check for files there first. Break out a function to +manage the trying of (now three) zoneinfo directories when opening a +file by name relative to there. + +Pick-to: 6.6 6.5 +Task-number: QTBUG-116017 +Change-Id: I1f97107aabd9015c0a5543639870f1d70654ca67 +--- +* Rebased on top of v6.5.2. + + src/corelib/time/qtimezoneprivate_tz.cpp | 73 ++++++++++++++++-------- + 1 file changed, 49 insertions(+), 24 deletions(-) + +diff --git a/src/corelib/time/qtimezoneprivate_tz.cpp b/src/corelib/time/qtimezoneprivate_tz.cpp +index 067191d816..a8b2fc894e 100644 +--- a/src/corelib/time/qtimezoneprivate_tz.cpp ++++ b/src/corelib/time/qtimezoneprivate_tz.cpp +@@ -51,17 +51,41 @@ typedef QHash QTzTimeZoneHash; + + static bool isTzFile(const QString &name); + ++// Open a named file under the zone info directory: ++static bool openZoneInfo(QString name, QFile *file) ++{ ++ // At least on Linux / glibc (see man 3 tzset), $TZDIR overrides the system ++ // default location for zone info: ++ const QString tzdir = qEnvironmentVariable("TZDIR"); ++ if (!tzdir.isEmpty()) { ++ file->setFileName(QDir(tzdir).filePath(name)); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ // Try modern system path first: ++ constexpr auto zoneShare = "/usr/share/zoneinfo/"_L1; ++ if (tzdir != zoneShare && tzdir != zoneShare.chopped(1)) { ++ file->setFileName(zoneShare + name); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ // Fall back to legacy system path: ++ constexpr auto zoneLib = "/usr/lib/zoneinfo/"_L1; ++ if (tzdir != zoneLib && tzdir != zoneLib.chopped(1)) { ++ file->setFileName(zoneShare + name); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ return false; ++} ++ + // Parse zone.tab table for territory information, read directories to ensure we + // find all installed zones (many are omitted from zone.tab; even more from + // zone1970.tab). static QTzTimeZoneHash loadTzTimeZones() { - QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); -+ // Try TZDIR first, in case we're running on GuixSD. -+ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab"); -+ // Fallback to traditional paths in case we are not on GuixSD. -+ if (!QFile::exists(path)) -+ path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); - if (!QFile::exists(path)) - path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); +- if (!QFile::exists(path)) +- path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); +- +- QFile tzif(path); +- if (!tzif.open(QIODevice::ReadOnly)) ++ QFile tzif; ++ if (!openZoneInfo("zone.tab"_L1, &tzif)) + return QTzTimeZoneHash(); -@@ -645,6 +649,9 @@ + QTzTimeZoneHash zonesHash; +@@ -91,6 +115,7 @@ static QTzTimeZoneHash loadTzTimeZones() + } + } + ++ const QString path = tzif.fileName(); + const qsizetype cut = path.lastIndexOf(u'/'); + Q_ASSERT(cut > 0); + const QDir zoneDir = QDir(path.first(cut)); +@@ -761,20 +786,13 @@ QTzTimeZoneCacheEntry QTzTimeZoneCache::findEntry(const QByteArray &ianaId) + tzif.setFileName(QStringLiteral("/etc/localtime")); if (!tzif.open(QIODevice::ReadOnly)) - return; - } else { -+ // Try TZDIR first, in case we're running on GuixSD. -+ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId)); -+ if (!tzif.open(QIODevice::ReadOnly)) { - // Open named tz, try modern path first, if fails try legacy path - tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId)); - if (!tzif.open(QIODevice::ReadOnly)) { -@@ -652,6 +659,7 @@ - if (!tzif.open(QIODevice::ReadOnly)) - return; + return ret; +- } else { +- // Open named tz, try modern path first, if fails try legacy path +- tzif.setFileName("/usr/share/zoneinfo/"_L1 + QString::fromLocal8Bit(ianaId)); +- if (!tzif.open(QIODevice::ReadOnly)) { +- tzif.setFileName("/usr/lib/zoneinfo/"_L1 + QString::fromLocal8Bit(ianaId)); +- if (!tzif.open(QIODevice::ReadOnly)) { +- // ianaId may be a POSIX rule, taken from $TZ or /etc/TZ +- auto check = validatePosixRule(ianaId); +- if (check.isValid) { +- ret.m_hasDst = check.hasDst; +- ret.m_posixRule = ianaId; +- } +- return ret; +- } ++ } else if (!openZoneInfo(QString::fromLocal8Bit(ianaId), &tzif)) { ++ // ianaId may be a POSIX rule, taken from $TZ or /etc/TZ ++ auto check = validatePosixRule(ianaId); ++ if (check.isValid) { ++ ret.m_hasDst = check.hasDst; ++ ret.m_posixRule = ianaId; ++ return ret; } -+ } } - QDataStream ds(&tzif); +@@ -1317,7 +1335,8 @@ private: + { + // On most distros /etc/localtime is a symlink to a real file so extract + // name from the path +- const auto zoneinfo = "/zoneinfo/"_L1; ++ const QString tzdir = qEnvironmentVariable("TZDIR"); ++ constexpr auto zoneinfo = "/zoneinfo/"_L1; + QString path = QStringLiteral("/etc/localtime"); + long iteration = getSymloopMax(); + // Symlink may point to another symlink etc. before being under zoneinfo/ +@@ -1325,9 +1344,15 @@ private: + // symlink, like America/Montreal pointing to America/Toronto + do { + path = QFile::symLinkTarget(path); +- int index = path.indexOf(zoneinfo); +- if (index >= 0) // Found zoneinfo file; extract zone name from path: +- return QStringView{ path }.mid(index + zoneinfo.size()).toUtf8(); ++ // If it's a zoneinfo file, extract the zone name from its path: ++ int index = tzdir.isEmpty() ? -1 : path.indexOf(tzdir); ++ if (index >= 0) { ++ const auto tail = QStringView{ path }.sliced(index + tzdir.size()).toUtf8(); ++ return tail.startsWith(u'/') ? tail.sliced(1) : tail; ++ } ++ index = path.indexOf(zoneinfo); ++ if (index >= 0) ++ return QStringView{ path }.sliced(index + zoneinfo.size()).toUtf8(); + } while (!path.isEmpty() && --iteration > 0); + + return QByteArray(); + +base-commit: af457a9f0f7eb1a2a7d11f495da508faab91a442 +-- +2.41.0 + diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 8324beef6fc..c06f27c03e2 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -365,7 +365,7 @@ (define-public qtbase-5 (base32 "1fcg3kx5akvj0kqxd99h5lv3kv4pw2cj0makmpvhpw90inqnrl60")) ;; Use TZDIR to avoid depending on package "tzdata". - (patches (search-patches "qtbase-use-TZDIR.patch" + (patches (search-patches "qtbase-5-use-TZDIR.patch" "qtbase-moc-ignore-gcc-macro.patch" "qtbase-absolute-runpath.patch")) (modules '((guix build utils))) @@ -747,7 +747,8 @@ (define-public qtbase (assoc-ref %standard-phases 'configure)) (delete 'check) ;move after patch-prl-files (add-after 'patch-prl-files 'check - (lambda* (#:key tests? parallel-tests? #:allow-other-keys) + (lambda* (#:key tests? parallel-tests? + native-inputs inputs #:allow-other-keys) (when tests? ;; The tests expect to find the modules provided by this ;; package; extend the environment variables needed to do so. @@ -770,6 +771,18 @@ (define-public qtbase ;; /tree/src/testlib/qtestblacklist.cpp). (setenv "QTEST_ENVIRONMENT" "linux ci 32bit") (setenv "HOME" "/tmp") ;some tests require a writable HOME + + ;; Note: the search path specified for TZDIR is only + ;; effective for users of the package, not while it's being + ;; built. + (setenv "TZDIR" (search-input-directory + (or native-inputs inputs) "share/zoneinfo")) + + ;; This is to avoid QTimeZone::systemTimeZone() returning + ;; invalid QDate objects due to missing /etc/timezone or + ;; /etc/localtime. + (setenv "TZ" "Etc/UTC") + (invoke "xvfb-run" "ctest" "--output-on-failure" "-j" (if parallel-tests? @@ -783,11 +796,6 @@ (define-public qtbase ;; The 'tst_moc' test fails with "'fi.exists()' returned FALSE". "tst_moc" - ;; The 'tst_qdate' test fails because the current time - ;; is reported as an invalid date (see: - ;; https://bugreports.qt.io/browse/QTBUG-116017). - "tst_qdate" - ;; The qgraphicsview and qopenglwidget tests fail with a ;; segfault for unknown reasons (see: ;; https://bugreports.qt.io/browse/QTBUG-116018). @@ -826,14 +834,6 @@ (define-public qtbase ;; The 'test_import_plugins' fails with "Could NOT find ;; Qt6MockPlugins1". "test_import_plugins" - ;; The 'tst_QTimeZone::systemZone' validates the - ;; currently set timezone and fails. - "tst_qtimezone" - ;; The 'tst_qdatetime' fails with: - ;; FAIL! : tst_QDateTime::offsetFromUtc() Compared values are not the same - ;; Actual (dt5.offsetFromUtc()): 0 - ;; Expected (46800) : 46800 - "tst_qdatetime" ;; The tst_QObjectRace::destroyRace is flaky (see: ;; https://bugreports.qt.io/browse/QTBUG-103489). "tst_qobjectrace" @@ -910,7 +910,8 @@ (define-public qtbase (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))))))))) (native-inputs (modify-inputs (package-native-inputs qtbase-5) - (prepend wayland-protocols + (prepend tzdata-for-tests + wayland-protocols xvfb-run))) (inputs (modify-inputs (package-inputs qtbase-5) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 4/4] gnu: qtdeclarative: Add a debug output. 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: Wed, 13 Sep 2023 17:35:04 +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.169462647523148 (code B ref 65922); Wed, 13 Sep 2023 17:35:04 +0000 Received: (at 65922) by debbugs.gnu.org; 13 Sep 2023 17:34:35 +0000 Received: from localhost ([127.0.0.1]:35919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTl4-00061D-NE for submit@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:35 -0400 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:61833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTl2-00060b-DD for 65922@debbugs.gnu.org; Wed, 13 Sep 2023 13:34:32 -0400 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7708bfce474so5045585a.3 for <65922@debbugs.gnu.org>; Wed, 13 Sep 2023 10:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694626461; x=1695231261; 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=DllrI3sSNRBtXfdtRNJ0mCXEUX+oCRx9zJCR1dLcpuI=; b=YceJexmqRvGa8DmsDu26Q/noSmqH4aE+aQtZTMTw4eTDF7cEn0RaLDPN9Nnud7uoYv 7/po1Yp9yfeMDD3fF9GgkcDdajVNyIpeIAPVC+XDQWtecjQVzVxxfjFMTZ2d7WQR1Fmj Jws7C0ceiQb11p02Iduh2y27kwKD8eUyMN0yIdHX4rcaQXCEtxVYIJ8J0kXYQpfCz17m KW5kZcJ5DA1YrfQU/F/QQSqS0QJsUmVnY7NS46rYniSmK07GC4xPAqUSVshA/2HovYMH W8RxJwVWABRVKJtDVSU+dvXOC+BpudRBCms5neDdoJa4tMlO2i4Rehf0JPBRTHNctDlG U6Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694626461; x=1695231261; 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=DllrI3sSNRBtXfdtRNJ0mCXEUX+oCRx9zJCR1dLcpuI=; b=B3t84BUBXCsDWMwBEeKLiW1ynVRCRLVV7kJnuhw0DLf3AvhkGi58mEZdfloFo26a1z +gO0c+1k1jJsn4SOUXYwZHXGzZ7Awn0hC8DrkUfSlrBDXgkSSaHwzIBW9wQdLpqlkIWH vcPdjLWP3QoBhx+5aplDKPYIYhu7oCoDCWYAAu62U2J8AYCihrWzhy6gl39oo3L+UNQQ eWptV+dGUzrPAKmyopslgGCIkREUhmQFXYB0FepCdDtFZIWp46xB8gQlHXYYEyYp6emv /XhRETM5CTjpU05Kdj7qsaPBC0yGm5WnSX79QLWcl/aBpPEP7O11rXUA0/+42GRL83ZS T2eA== X-Gm-Message-State: AOJu0YwONmyyLAzXTnRJQQd6BqxGYvIr10P67exijSXQqoKY3kUEhaqO oHPx+xZR7xArYeXMfgZi8LcMJyjfyt4= X-Google-Smtp-Source: AGHT+IGrdZ/gSFGK0pBKJHMsEbaWL1qZ7DEy0Tb1YtbZydaYE8MiQCStnWrxfy/5FZI1GxZrhdjfVw== X-Received: by 2002:a05:620a:408c:b0:772:6397:2aa2 with SMTP id f12-20020a05620a408c00b0077263972aa2mr1277422qko.34.1694626461315; Wed, 13 Sep 2023 10:34:21 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id d5-20020a05620a136500b0076f206cf16fsm4035194qkl.89.2023.09.13.10.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 10:34:20 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 13 Sep 2023 13:33:16 -0400 Message-ID: <5cf937f9872ae58ffdc4249dc0cacf26857b7527.1694626350.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtdeclarative) [outputs]: New field. --- (no changes since v1) gnu/packages/qt.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index c06f27c03e2..ab99f590b25 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1350,6 +1350,7 @@ (define-public qtdeclarative (base32 "06c7xfqn2a5s2m8j1bcvx3pyjqg1rgqkjvp49737gb4z9vjiz8gk")) (patches (search-patches "qtdeclarative-disable-qmlcache.patch")))) + (outputs '("out" "debug")) (build-system cmake-build-system) (arguments (list -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 1/4] gnu: qtbase: Do not capture Python (again). Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Sep 2023 09:08: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: Maxim Cournoyer Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 65922@debbugs.gnu.org Received: via spool by 65922-submit@debbugs.gnu.org id=B65922.16946824638153 (code B ref 65922); Thu, 14 Sep 2023 09:08:02 +0000 Received: (at 65922) by debbugs.gnu.org; 14 Sep 2023 09:07:43 +0000 Received: from localhost ([127.0.0.1]:37627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgiK7-00027R-DO for submit@debbugs.gnu.org; Thu, 14 Sep 2023 05:07:43 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:60672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgiK3-000278-Ax for 65922@debbugs.gnu.org; Thu, 14 Sep 2023 05:07:41 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 4945E142C; Thu, 14 Sep 2023 11:07:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tJRxHKfKDG1i; Thu, 14 Sep 2023 11:07:26 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 6C61392C; Thu, 14 Sep 2023 11:07:26 +0200 (CEST) Date: Thu, 14 Sep 2023 11:07:24 +0200 From: Andreas Enge Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.0 (/) 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: -1.0 (-) Hello, I just happened to have the time for one patch :) Am Wed, Sep 13, 2023 at 01:33:13PM -0400 schrieb Maxim Cournoyer: > * 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. This one looks good, except for indentation there, I think: > + (substitute* > + (search-input-file > + outputs "lib/qt5/mkspecs/features/uikit/devices.py") > + (((which "python3")) > + "/usr/bin/env python3"))))))) Andreas From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 1/4] gnu: qtbase: Do not capture Python (again). Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Sep 2023 02:52:01 +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: Andreas Enge Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 65922@debbugs.gnu.org Received: via spool by 65922-submit@debbugs.gnu.org id=B65922.169491910132309 (code B ref 65922); Sun, 17 Sep 2023 02:52:01 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 02:51:41 +0000 Received: from localhost ([127.0.0.1]:48786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhhsr-0008P2-8s for submit@debbugs.gnu.org; Sat, 16 Sep 2023 22:51:41 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:62833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhhsm-0008Oi-W6 for 65922@debbugs.gnu.org; Sat, 16 Sep 2023 22:51:40 -0400 Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-6564fe1967dso1902986d6.1 for <65922@debbugs.gnu.org>; Sat, 16 Sep 2023 19:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694919084; x=1695523884; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=GVOsqCjPvPIsxswoPEVEvPnj55DYypER8SZaTzynqvI=; b=MIOFhqTV7atPQNe2yfqx+dbJOUJSZAa8xnMNMZEVqxkhu9jQsFU3vFXCals+SQ2SNB Lgy3jTkqDbOoOBcXijY47wcQ/cniixYd5vwQ2Dv+t5cB2sf032NYIrZ4RUNWaKwbS2gc Nt5dzyQhfv2d3C1RbEtE7vs7lEcyRziOigRlMCA9D7O0H9SIaTe+np+0iezkCGqmaqCR BSb1lQqAM0iZ7fthMJTcsqP+CPNn3w+qWe0lPxXEj4N3Rphp57SmQ6/uClZudP2bawX6 ejcY6swi+kcTOZkcmKfKRtt+kLwlJ96/cSeGGugs8+WuS44AkSdvj6ohp/1qJ864TOuS vj2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694919084; x=1695523884; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GVOsqCjPvPIsxswoPEVEvPnj55DYypER8SZaTzynqvI=; b=w8U6sJlSLTCQTV/df/JLboLR3q69bHAXBAe3hcWEZziDZZ7yjpRRe/KuvOH8jhFQSR +lEn4WE1rzRJtsNyvfzONif15HUz7bmv1MZvzTMMhiChpn+R1cZ1dztNG1LdymAcooOD rq3CDMKUrdFwM1JCmzx1mL0dDzNyJD/1Nz0+snLw7QqGUAvWx7cSU5Amg9v7jhBm7lSr Cn+f/1wyH2TZf+VIPO4Xwj+kQ5DpPqx0tAWO9iRlBM1AXNxH3HpAqnGtkvOIO3OvKBtM SarEhaKE47aQ4Maxt+CoapP9qde0TygJUV/wjeFb2nu5TrTjM7ArOGRBjlBeC6jTbU7r OnRg== X-Gm-Message-State: AOJu0YwUBn5CPf+7MSzvSfEb0MHm4646NWQE8MbAl1kIW239yC+Onu3f GD/7wjevg62YQgmh6bRBhuKqSKb90n8= X-Google-Smtp-Source: AGHT+IGEtJjW893duDGfa5Gy41y01e2WWPN/Rk/KmO3FlpjbLWBgchK+9S+pWxNO/noxguHkpJ+bcw== X-Received: by 2002:a05:6214:21ac:b0:63f:6ec7:9f7 with SMTP id t12-20020a05621421ac00b0063f6ec709f7mr11614175qvc.23.1694919083820; Sat, 16 Sep 2023 19:51:23 -0700 (PDT) Received: from hurd (dsl-10-149-131.b2b2c.ca. [72.10.149.131]) by smtp.gmail.com with ESMTPSA id d22-20020a05620a141600b00754b7ee6922sm2242636qkj.9.2023.09.16.19.51.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 19:51:23 -0700 (PDT) From: Maxim Cournoyer References: Date: Sat, 16 Sep 2023 22:51:22 -0400 In-Reply-To: (Andreas Enge's message of "Thu, 14 Sep 2023 11:07:24 +0200") Message-ID: <87o7i18qc5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi Andreas, Andreas Enge writes: > Hello, > > I just happened to have the time for one patch :) > > Am Wed, Sep 13, 2023 at 01:33:13PM -0400 schrieb Maxim Cournoyer: >> * 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. > > This one looks good, except for indentation there, I think: >> + (substitute* >> + (search-input-file >> + outputs "lib/qt5/mkspecs/features/uikit/devices.py") >> + (((which "python3")) >> + "/usr/bin/env python3"))))))) It's actually valid -- I just doubled check :-) Thanks for taking a peek. -- Thanks, Maxim From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 1/4] gnu: qtbase: Do not capture Python (again). Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Sep 2023 10:13: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: Maxim Cournoyer Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 65922@debbugs.gnu.org Received: via spool by 65922-submit@debbugs.gnu.org id=B65922.169494554413624 (code B ref 65922); Sun, 17 Sep 2023 10:13:02 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 10:12:24 +0000 Received: from localhost ([127.0.0.1]:49111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qholM-0003Xf-4u for submit@debbugs.gnu.org; Sun, 17 Sep 2023 06:12:24 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:52478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qholI-0003XO-9Z for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 06:12:22 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 822C9806; Sun, 17 Sep 2023 12:12:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R8IArp03kvhc; Sun, 17 Sep 2023 12:12:05 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id B7EE73A8; Sun, 17 Sep 2023 12:12:05 +0200 (CEST) Date: Sun, 17 Sep 2023 12:12:04 +0200 From: Andreas Enge Message-ID: References: <87o7i18qc5.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o7i18qc5.fsf@gmail.com> X-Spam-Score: -0.0 (/) 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: -1.0 (-) Am Sat, Sep 16, 2023 at 10:51:22PM -0400 schrieb Maxim Cournoyer: > > This one looks good, except for indentation there, I think: > >> + (substitute* > >> + (search-input-file > >> + outputs "lib/qt5/mkspecs/features/uikit/devices.py") > >> + (((which "python3")) > >> + "/usr/bin/env python3"))))))) > It's actually valid -- I just doubled check :-) Hm, I thought that arguments to functions should be aligned, so that "(search-..." and "(((which" should start in the same column? And that we would indent by either 1 or 2 (according to arcane rules I never memorised)? Andreas From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v2 1/4] gnu: qtbase: Do not capture Python (again). Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Sep 2023 12:57:01 +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: Andreas Enge Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 65922@debbugs.gnu.org Received: via spool by 65922-submit@debbugs.gnu.org id=B65922.169495537329934 (code B ref 65922); Sun, 17 Sep 2023 12:57:01 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 12:56:13 +0000 Received: from localhost ([127.0.0.1]:49349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhrJs-0007mj-KC for submit@debbugs.gnu.org; Sun, 17 Sep 2023 08:56:12 -0400 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:49297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhrJp-0007mV-UN for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 08:56:11 -0400 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-412137ae07aso22567291cf.2 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 05:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694955356; x=1695560156; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=P6cEbzoyRn4xVgG95UmTOsuR4hXQVK5eTkzB8U5bayU=; b=EimH8qEYUr/577ohT28HuPIjhS/SxQ0Cz6MBoncUgDw84zW9lb3f4OL94PlTXS41rb qoyXrouQKbb1hbMBLQg++1euPva/v7SNmgtnvvRly3xZktj2vpLnqe8Offp/RUjHDdNL 5UVi8LNbg4+/gvoYdUqFUlUFuFJHTWYfcc+26wUnm0VHP4B0cB0kzlc2H6skglnDGE1n z80Sm9x3M5YHaAJG5KFHQWgDEJMyNHaE8n4QCW/GbEITNlWAS/pycFvMPlbMffoz0fnj uTfty43g+QN6yHEZmTcrLwj5IniDjb89LSwnFeY8y231c8cfQNVWsCeEkA1JCZQv6Zb1 AnAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694955356; x=1695560156; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=P6cEbzoyRn4xVgG95UmTOsuR4hXQVK5eTkzB8U5bayU=; b=nWNUbisSyw8e0DzwHuXwu0QBhyHLe+QVSHeBN3naAAK1Nh5kKKXOoDcCBVV3t0KBCp Ma5CboNkHUNosk0pikkpH1JGYxHOcoQL5cGRebsBf/TFnocEVbdKdkF/mwa4KBrgCxj0 SazCdRSgNkAdSh0/0huebogz8kC1yK824qTF8Lu8SAtKcT78Ac/550qOCpOXASb8oHJb MPXVQKkHFkFik7BqmR04gMGoxuNFowfdjqaFvM+o/DGF3ZRQje6CUx3lh5b1an0s0RV+ mvS5shJN0o/B3U5vHJgh1AyQVTp/go1kQMul9kzSqf9Ekyv0OnQUKbYbLwqe5ZcxBQOj yrVw== X-Gm-Message-State: AOJu0Yz0C2WwLfOZtkhpT9HSUn8oPxdPRfEFEo46dvMgJNZm9qV5ZC0+ 98N6FwAYdVZRvRjFgQjEVPrpMYzggis= X-Google-Smtp-Source: AGHT+IGYgW/HB5SS/cw7oldQX1UI4rnq69CsN/2y6nJJCO9ckrU0sb+bgcxhEWQKbf+XQwcYbgbGUQ== X-Received: by 2002:a05:6214:92d:b0:656:2ccf:5aa1 with SMTP id dk13-20020a056214092d00b006562ccf5aa1mr4917898qvb.45.1694955356466; Sun, 17 Sep 2023 05:55:56 -0700 (PDT) Received: from hurd (dsl-10-149-131.b2b2c.ca. [72.10.149.131]) by smtp.gmail.com with ESMTPSA id s21-20020a0cb315000000b0064f46422ddasm2674607qve.145.2023.09.17.05.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 05:55:55 -0700 (PDT) From: Maxim Cournoyer References: <87o7i18qc5.fsf@gmail.com> Date: Sun, 17 Sep 2023 08:55:54 -0400 In-Reply-To: (Andreas Enge's message of "Sun, 17 Sep 2023 12:12:04 +0200") Message-ID: <87h6nt7ycl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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: -1.0 (-) Hi Andreas, Andreas Enge writes: > Am Sat, Sep 16, 2023 at 10:51:22PM -0400 schrieb Maxim Cournoyer: >> > This one looks good, except for indentation there, I think: >> >> + (substitute* >> >> + (search-input-file >> >> + outputs "lib/qt5/mkspecs/features/uikit/devices.py") >> >> + (((which "python3")) >> >> + "/usr/bin/env python3"))))))) >> It's actually valid -- I just doubled check :-) > > Hm, I thought that arguments to functions should be aligned, so that > "(search-..." and "(((which" should start in the same column? > And that we would indent by either 1 or 2 (according to arcane rules I > never memorised)? According to our indentation rules in .dir-locals.el: --8<---------------cut here---------------start------------->8--- (put 'substitute* 'scheme-indent-function 1) --8<---------------cut here---------------end--------------->8--- Which, following the Emacs documentation for scheme-indent-function then lisp-indent-function (C-h f scheme-indent-function RET), says (where N is the 1 argument): --8<---------------cut here---------------start------------->8--- * an integer N, meaning indent the first N arguments specially (like ordinary function arguments), and then indent any further arguments like a body; --8<---------------cut here---------------end--------------->8--- The indentation produced is because of that special rule. -- Thanks, Maxim From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v3 0/5] Avoid capturing python in qtbase, reinstate tests References: In-Reply-To: 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.169497163125162 (code B ref 65922); Sun, 17 Sep 2023 17:28:02 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 17:27:11 +0000 Received: from localhost ([127.0.0.1]:51324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvY5-0006Xk-UL for submit@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:10 -0400 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:58433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvY1-0006XA-EU for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:09 -0400 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-76ef6d98d7eso230800085a.0 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 10:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694971612; x=1695576412; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6rr3WaPevj+2o0xC3MRDwyzf7ABpdvsoFneNLNjpr/Y=; b=U1XqgEtH8/tCpIHCloihFviLtZzloh4+3Q3XwTIDVH5anvwZ/KutOqjNJum/ksDo03 4sQSU2WFtdEDYO0BkrvxFLPL5uoWtNF3BIAyUuIh2eC7u/7xcY6Oc3MoeBoc7Mj6GC0o N9HvyVKy7HPyInpBFhuAMfMthvu8PE/tj6q4JYKP2mYHytBI0DhZE0ZKZrjE9Ynhu6Mp PwdyUIzDeg3+GcqHGDYp1ZgnbfQPxeG7z/AtSWhEa9tnRM+dxOa5OlGwOoQXTEH9QZjH +eWc3VeUF4AoL6RoneGgXpbuzIcBDJgEbDYvEiPD+kwuVEiCRCUM63kXQlBe50eu3qJs 3vBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971612; x=1695576412; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6rr3WaPevj+2o0xC3MRDwyzf7ABpdvsoFneNLNjpr/Y=; b=jb3zWCqnbgj9Wxt6rvuCdDNVjt5pwPUWnrD6VTj7fIYt8uzkdgWXMFesIEYd45LJLG mOSaVtTTohhYVkdJ0AP+UmJL42lljRH2PVgkBG6IQ87k6XQ6FKX5Dt/Nud8BqGy76cuJ NqlOxrzTTPCCX3EtZ89m+uZt/QaQ0U9eBeIRE4/RFLqQ/kAb4wUGOUQrAWpVyuC+0Bmz JKeXMovtJ3jbqr4N2SeT13m3s/m5YNzGY4H/bP4fddnxxqaCalwBsuxi9bI8MWC9GMvM 6pap1NQ+bgRy1hAJf3GB3iOxzAv4O2C/k0Yh5HyOVLGnYkGEI55dx35F4lL1k6sT5L0q /Xfw== X-Gm-Message-State: AOJu0Yw9uo9WkVUj9pB0zLAH4Az3M4v3ezDGyfnb7s0fWUqrihyAD5zC eJmrwtWXZ6bd5XKEGF0osSrRmr7uYPg= X-Google-Smtp-Source: AGHT+IHm1qFam4SO5ZTT1RrbucDtcYJVpz30efk1vwCCOOq0tSWqsy+/Xpwn501r5vVpGoFWjnKtJg== X-Received: by 2002:a0c:e414:0:b0:647:21d2:21d2 with SMTP id o20-20020a0ce414000000b0064721d221d2mr6590795qvl.14.1694971611695; Sun, 17 Sep 2023 10:26:51 -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.26.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:26:51 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 13:26:12 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) Thes series removes Python from the closure of qtbase, both for versions 5.15 and 6.5. It also reinstate a few tests that was made possible thanks to discussions with upstream following reported the issues. Changes in v3: - New commit Changes in v2: - Use old TZDIR patch for qtbase@5 (the new one doesn't apply) Maxim Cournoyer (5): gnu: qtbase: Do not capture Python (again). gnu: qtbase: Add $TZDIR to native search paths. gnu: qtbase: Reinstate date related tests. gnu: qtbase: Disable problematic tests on powerpc64le. gnu: qtdeclarative: Add a debug output. gnu/local.mk | 1 + gnu/packages/patches/qtbase-5-use-TZDIR.patch | 39 +++ gnu/packages/patches/qtbase-use-TZDIR.patch | 162 +++++++++--- gnu/packages/qt.scm | 236 ++++++++++-------- 4 files changed, 309 insertions(+), 129 deletions(-) create mode 100644 gnu/packages/patches/qtbase-5-use-TZDIR.patch base-commit: 4cb2e08b8eb1acc824b72ec17b483d7d85b5af68 -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 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-Spam-Score: 0.0 (/) 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: -1.0 (-) 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 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v3 2/5] gnu: qtbase: Add $TZDIR to native search paths. 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:03 +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.169497164525217 (code B ref 65922); Sun, 17 Sep 2023 17:28:03 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 17:27:25 +0000 Received: from localhost ([127.0.0.1]:51332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYK-0006YY-Fe for submit@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:25 -0400 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:58789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYE-0006Xv-FU for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:18 -0400 Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-65628b1181cso15137486d6.1 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 10:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694971625; x=1695576425; 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=Zii8QilSo2TxBVScScqudQYjGgYh0kOQFlpR02HO3oA=; b=HQcdOB9cdsNXkWWVXof7JV2lOnXafam0SGGJNrP8ZQer4qn3NvtaxjctXz+ogJQ2bE EcI0YU3fwXnZJBYzEfyDarocuWWiDOGyqTJRSpORH6bCQHRXI9TYBuDTcJoE42XK4K46 UkOQbQHDsZTSuZ79iyzfmk78es945DLhWJ939XbuukeFed/35V0Jj04jjZUTsjgtmxQZ x4DzDgxLMx3gyasPlVNwFi9P3hQxZJSJmuLLfbu3ahY4WivW96/YRzHys+Usv5hDmcX7 ih6YuNqn8mlrvc5kgDzKhKOTGTWsi3I8bM2ouMrzDJ78y2F0CV5gO4wlHbvdGUo0OmrZ ZdoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971625; x=1695576425; 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=Zii8QilSo2TxBVScScqudQYjGgYh0kOQFlpR02HO3oA=; b=NENvltUd11IomXM9EdxsuLpOZFoVbGHEoBjvF82CifurJZ3RwZoMLGjnj3+Vdwju9Q jJqRmi9p2y9xxHSZkbIyd34TPwbmHIHvormXd7L2gqM+MNV21+GrKPzCABjnEjXbGgKM gRiJ8MXVoG+Y6VMGY8DFVl9xwPGRz6Crxo4KVWbvXpGrV5A3RCxto6tqYebkMh2VEBox btO/3XTA7M23I4nNZ6MuOiTTgK/69aejclqvSWWtADx+icTRsjiij4qA1ZNe5J2ZkLa6 GkslsL8jzwot48DQl/2bT0HFdERENInhZvEcbtJqPMtoSnzcWyNNnxtemlucuqtd4moi ktgw== X-Gm-Message-State: AOJu0YxF74xnWauXlEhvn2AERBfXVMbP6YP6hd7Q/Bl0TvxlBIXPnO/Z DOm2PdgW4Y7R2ICMiEn/x4w6rDIJUtQ= X-Google-Smtp-Source: AGHT+IFTKX2kHOprt3LAHY6fp2LIiNlDJH9LVxCrudVI6vivFVGXJ1gFhEsIc6z+iGn47Uf3lAxCkQ== X-Received: by 2002:a0c:aa07:0:b0:641:8ba9:68ab with SMTP id d7-20020a0caa07000000b006418ba968abmr5764355qvb.42.1694971625022; Sun, 17 Sep 2023 10:27:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:27:04 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 13:26:14 -0400 Message-ID: <0e56555b7b6826b81d721836d5312b01f6e3525c.1694971566.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [native-search-paths]: Add $TZDIR. --- (no changes since v1) gnu/packages/qt.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a158f8114fe..8324beef6fc 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -60,6 +60,7 @@ (define-module (gnu packages qt) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix deprecation) + #:use-module (guix search-paths) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages bash) @@ -933,6 +934,7 @@ (define-public qtbase (search-path-specification (variable "QT_PLUGIN_PATH") (files '("lib/qt6/plugins"))) + $TZDIR (search-path-specification (variable "XDG_DATA_DIRS") (files '("share"))) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v3 3/5] gnu: qtbase: Reinstate date related tests. 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:03 +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.169497164625224 (code B ref 65922); Sun, 17 Sep 2023 17:28:03 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 17:27:26 +0000 Received: from localhost ([127.0.0.1]:51334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYL-0006Yg-J6 for submit@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:26 -0400 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]:60847) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYH-0006Xz-Ny for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:23 -0400 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-656340e666eso14205626d6.1 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 10:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694971628; x=1695576428; 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=rvq7G+x8NqE+Hp6Tih/k3eyqrW2mtrfMTrYXKJc1D8M=; b=dDm6SDfe4mzAE314vJXeIrijciqThDl8e4UF5jqA+laEPsLNM5hC+D9wlVxf4Ub8gg z5v0BbRNQO3DL7cJtRr+uqATDcEfFvIoAQZTZSxBwpC6lUCMGXCxFpV787sV4nVHWpD1 S1LSbJNQZDSERsD2hp2ga8O9eKpzYFtCq2D+eNgam8RFM6WmT6MwTgvsMc5KvcKk5/Zu 87J9WhMnLj9JVjuGLwU7EC13QXzyBc1+FCbfbGxS+iXWx2Nt0aM2ULI5MrJb9F3Ipv/j 5eY/04MPrmJ7IRPERo9U85CHqFP7GgL+s0o2zgvtIowx9RLbqgEtxt5M6Cu4+AUmfucv lNaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971628; x=1695576428; 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=rvq7G+x8NqE+Hp6Tih/k3eyqrW2mtrfMTrYXKJc1D8M=; b=mOH+iXK1n1alm3dHRnEjsl628205XDkgikt0bOTVPVfoDp84bSGKpAirkU1CC+QM9r 4+pbfxjSfYmD9CPNfGZ5EKsYHy/lEE1seaUXexD8uVCsuG3+h1U8m+xdjR/V+tMF32jS cweVsljoPgcd5Ny8+j5kI/8mdp0snkpopNR8PX78j8DBwEnaSeEd/D1MoIk1mUPV2EzQ fnmY/VGES7F18E0wTkwjgUtx4UcNORFtd+XLZOrvLZ76gDvWoz2mFs26DkgiBWNZ6mYU TPJg2TN3XwbROiMXDpa1iDw8rGWN+a1ERlMnduQmPXMRqYWggQ/G2xiT8cpjAOCIUJ6A WnGQ== X-Gm-Message-State: AOJu0Yz8J21yeaH10dFEfHPhcziXP1wuhgIhDz41KA8kYS3/g8Vwq47H yvjKNhcSziur3NqjckrJNj9LxYSAh1w= X-Google-Smtp-Source: AGHT+IF+4tiIC2ItP7FmIyDrQaBygmZvqTqt8c5jD3Bp2pIehBSsh1G87sAR6ecKe5qN6cs3Iy/aPA== X-Received: by 2002:a0c:e153:0:b0:63d:2567:f255 with SMTP id c19-20020a0ce153000000b0063d2567f255mr6964647qvl.24.1694971627974; Sun, 17 Sep 2023 10:27:07 -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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:27:07 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 13:26:15 -0400 Message-ID: <931555dfc97a20c94e7ca50d61373a4d10548a17.1694971566.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [native-inputs]: Add tzdata-for-tests. [arguments]: Set the TZDIR and TZ environment variables, and reinstate the tst_qdate, tst_qtimezone and tst_qdatetime tests in the check phase. (qtbase-5) [source]: Replace qtbase-use-TZDIR.patch with qtbase-5-use-TZDIR.patch. * gnu/packages/patches/qtbase-use-TZDIR.patch: Refresh patch with upstream version, and preserve the old one for qtbase@5 as... * gnu/packages/patches/qtbase-5-use-TZDIR.patch: ... this. * gnu/local.mk (dist_patch_DATA): Register new patch. --- (no changes since v2) Changes in v2: - Use old TZDIR patch for qtbase@5 (the new one doesn't apply) gnu/local.mk | 1 + gnu/packages/patches/qtbase-5-use-TZDIR.patch | 39 +++++ gnu/packages/patches/qtbase-use-TZDIR.patch | 162 ++++++++++++++---- gnu/packages/qt.scm | 33 ++-- 4 files changed, 189 insertions(+), 46 deletions(-) create mode 100644 gnu/packages/patches/qtbase-5-use-TZDIR.patch diff --git a/gnu/local.mk b/gnu/local.mk index 4f8637418ad..2d8ddf5716c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1878,6 +1878,7 @@ dist_patch_DATA = \ %D%/packages/patches/qtbase-absolute-runpath.patch \ %D%/packages/patches/qtbase-moc-ignore-gcc-macro.patch \ %D%/packages/patches/qtbase-qmake-use-libname.patch \ + %D%/packages/patches/qtbase-5-use-TZDIR.patch \ %D%/packages/patches/qtbase-use-TZDIR.patch \ %D%/packages/patches/qtscript-disable-tests.patch \ %D%/packages/patches/quagga-reproducible-build.patch \ diff --git a/gnu/packages/patches/qtbase-5-use-TZDIR.patch b/gnu/packages/patches/qtbase-5-use-TZDIR.patch new file mode 100644 index 00000000000..b6c377b133c --- /dev/null +++ b/gnu/packages/patches/qtbase-5-use-TZDIR.patch @@ -0,0 +1,39 @@ +Use $TZDIR to search for time-zone data. Thus avoid depending on package +"tzdata", which often introduces changes with near-immediate effects, so it's +important to be able to update it fast. + +Based on a patch fron NixOS. +=================================================================== +--- qtbase-opensource-src-5.14.2.orig/src/corelib/time/qtimezoneprivate_tz.cpp ++++ qtbase-opensource-src-5.15.2/src/corelib/time/qtimezoneprivate_tz.cpp +@@ -70,7 +70,11 @@ + // Parse zone.tab table, assume lists all installed zones, if not will need to read directories + static QTzTimeZoneHash loadTzTimeZones() + { +- QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); ++ // Try TZDIR first, in case we're running on GuixSD. ++ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab"); ++ // Fallback to traditional paths in case we are not on GuixSD. ++ if (!QFile::exists(path)) ++ path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); + if (!QFile::exists(path)) + path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); + +@@ -645,6 +649,9 @@ + if (!tzif.open(QIODevice::ReadOnly)) + return; + } else { ++ // Try TZDIR first, in case we're running on GuixSD. ++ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId)); ++ if (!tzif.open(QIODevice::ReadOnly)) { + // Open named tz, try modern path first, if fails try legacy path + tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId)); + if (!tzif.open(QIODevice::ReadOnly)) { +@@ -652,6 +659,7 @@ + if (!tzif.open(QIODevice::ReadOnly)) + return; + } ++ } + } + + QDataStream ds(&tzif); diff --git a/gnu/packages/patches/qtbase-use-TZDIR.patch b/gnu/packages/patches/qtbase-use-TZDIR.patch index b6c377b133c..98bf7493e9f 100644 --- a/gnu/packages/patches/qtbase-use-TZDIR.patch +++ b/gnu/packages/patches/qtbase-use-TZDIR.patch @@ -1,39 +1,141 @@ -Use $TZDIR to search for time-zone data. Thus avoid depending on package -"tzdata", which often introduces changes with near-immediate effects, so it's -important to be able to update it fast. +From 1075606f8b2f9e153c82f8e50cbd69cea9c72e87 Mon Sep 17 00:00:00 2001 +From: Edward Welbourne +Date: Mon, 11 Sep 2023 11:41:39 +0200 +Subject: [PATCH] Support the TZDIR environment variable -Based on a patch fron NixOS. -=================================================================== ---- qtbase-opensource-src-5.14.2.orig/src/corelib/time/qtimezoneprivate_tz.cpp -+++ qtbase-opensource-src-5.15.2/src/corelib/time/qtimezoneprivate_tz.cpp -@@ -70,7 +70,11 @@ - // Parse zone.tab table, assume lists all installed zones, if not will need to read directories +On Linux / glibc, this overrides the default system location for the +zone info. So check for files there first. Break out a function to +manage the trying of (now three) zoneinfo directories when opening a +file by name relative to there. + +Pick-to: 6.6 6.5 +Task-number: QTBUG-116017 +Change-Id: I1f97107aabd9015c0a5543639870f1d70654ca67 +--- +* Rebased on top of v6.5.2. + + src/corelib/time/qtimezoneprivate_tz.cpp | 73 ++++++++++++++++-------- + 1 file changed, 49 insertions(+), 24 deletions(-) + +diff --git a/src/corelib/time/qtimezoneprivate_tz.cpp b/src/corelib/time/qtimezoneprivate_tz.cpp +index 067191d816..a8b2fc894e 100644 +--- a/src/corelib/time/qtimezoneprivate_tz.cpp ++++ b/src/corelib/time/qtimezoneprivate_tz.cpp +@@ -51,17 +51,41 @@ typedef QHash QTzTimeZoneHash; + + static bool isTzFile(const QString &name); + ++// Open a named file under the zone info directory: ++static bool openZoneInfo(QString name, QFile *file) ++{ ++ // At least on Linux / glibc (see man 3 tzset), $TZDIR overrides the system ++ // default location for zone info: ++ const QString tzdir = qEnvironmentVariable("TZDIR"); ++ if (!tzdir.isEmpty()) { ++ file->setFileName(QDir(tzdir).filePath(name)); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ // Try modern system path first: ++ constexpr auto zoneShare = "/usr/share/zoneinfo/"_L1; ++ if (tzdir != zoneShare && tzdir != zoneShare.chopped(1)) { ++ file->setFileName(zoneShare + name); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ // Fall back to legacy system path: ++ constexpr auto zoneLib = "/usr/lib/zoneinfo/"_L1; ++ if (tzdir != zoneLib && tzdir != zoneLib.chopped(1)) { ++ file->setFileName(zoneShare + name); ++ if (file->open(QIODevice::ReadOnly)) ++ return true; ++ } ++ return false; ++} ++ + // Parse zone.tab table for territory information, read directories to ensure we + // find all installed zones (many are omitted from zone.tab; even more from + // zone1970.tab). static QTzTimeZoneHash loadTzTimeZones() { - QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); -+ // Try TZDIR first, in case we're running on GuixSD. -+ QString path = QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/zone.tab"); -+ // Fallback to traditional paths in case we are not on GuixSD. -+ if (!QFile::exists(path)) -+ path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); - if (!QFile::exists(path)) - path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); +- if (!QFile::exists(path)) +- path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); +- +- QFile tzif(path); +- if (!tzif.open(QIODevice::ReadOnly)) ++ QFile tzif; ++ if (!openZoneInfo("zone.tab"_L1, &tzif)) + return QTzTimeZoneHash(); -@@ -645,6 +649,9 @@ + QTzTimeZoneHash zonesHash; +@@ -91,6 +115,7 @@ static QTzTimeZoneHash loadTzTimeZones() + } + } + ++ const QString path = tzif.fileName(); + const qsizetype cut = path.lastIndexOf(u'/'); + Q_ASSERT(cut > 0); + const QDir zoneDir = QDir(path.first(cut)); +@@ -761,20 +786,13 @@ QTzTimeZoneCacheEntry QTzTimeZoneCache::findEntry(const QByteArray &ianaId) + tzif.setFileName(QStringLiteral("/etc/localtime")); if (!tzif.open(QIODevice::ReadOnly)) - return; - } else { -+ // Try TZDIR first, in case we're running on GuixSD. -+ tzif.setFileName(QFile::decodeName(qgetenv("TZDIR")) + QStringLiteral("/") + QString::fromLocal8Bit(ianaId)); -+ if (!tzif.open(QIODevice::ReadOnly)) { - // Open named tz, try modern path first, if fails try legacy path - tzif.setFileName(QLatin1String("/usr/share/zoneinfo/") + QString::fromLocal8Bit(ianaId)); - if (!tzif.open(QIODevice::ReadOnly)) { -@@ -652,6 +659,7 @@ - if (!tzif.open(QIODevice::ReadOnly)) - return; + return ret; +- } else { +- // Open named tz, try modern path first, if fails try legacy path +- tzif.setFileName("/usr/share/zoneinfo/"_L1 + QString::fromLocal8Bit(ianaId)); +- if (!tzif.open(QIODevice::ReadOnly)) { +- tzif.setFileName("/usr/lib/zoneinfo/"_L1 + QString::fromLocal8Bit(ianaId)); +- if (!tzif.open(QIODevice::ReadOnly)) { +- // ianaId may be a POSIX rule, taken from $TZ or /etc/TZ +- auto check = validatePosixRule(ianaId); +- if (check.isValid) { +- ret.m_hasDst = check.hasDst; +- ret.m_posixRule = ianaId; +- } +- return ret; +- } ++ } else if (!openZoneInfo(QString::fromLocal8Bit(ianaId), &tzif)) { ++ // ianaId may be a POSIX rule, taken from $TZ or /etc/TZ ++ auto check = validatePosixRule(ianaId); ++ if (check.isValid) { ++ ret.m_hasDst = check.hasDst; ++ ret.m_posixRule = ianaId; ++ return ret; } -+ } } - QDataStream ds(&tzif); +@@ -1317,7 +1335,8 @@ private: + { + // On most distros /etc/localtime is a symlink to a real file so extract + // name from the path +- const auto zoneinfo = "/zoneinfo/"_L1; ++ const QString tzdir = qEnvironmentVariable("TZDIR"); ++ constexpr auto zoneinfo = "/zoneinfo/"_L1; + QString path = QStringLiteral("/etc/localtime"); + long iteration = getSymloopMax(); + // Symlink may point to another symlink etc. before being under zoneinfo/ +@@ -1325,9 +1344,15 @@ private: + // symlink, like America/Montreal pointing to America/Toronto + do { + path = QFile::symLinkTarget(path); +- int index = path.indexOf(zoneinfo); +- if (index >= 0) // Found zoneinfo file; extract zone name from path: +- return QStringView{ path }.mid(index + zoneinfo.size()).toUtf8(); ++ // If it's a zoneinfo file, extract the zone name from its path: ++ int index = tzdir.isEmpty() ? -1 : path.indexOf(tzdir); ++ if (index >= 0) { ++ const auto tail = QStringView{ path }.sliced(index + tzdir.size()).toUtf8(); ++ return tail.startsWith(u'/') ? tail.sliced(1) : tail; ++ } ++ index = path.indexOf(zoneinfo); ++ if (index >= 0) ++ return QStringView{ path }.sliced(index + zoneinfo.size()).toUtf8(); + } while (!path.isEmpty() && --iteration > 0); + + return QByteArray(); + +base-commit: af457a9f0f7eb1a2a7d11f495da508faab91a442 +-- +2.41.0 + diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 8324beef6fc..c06f27c03e2 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -365,7 +365,7 @@ (define-public qtbase-5 (base32 "1fcg3kx5akvj0kqxd99h5lv3kv4pw2cj0makmpvhpw90inqnrl60")) ;; Use TZDIR to avoid depending on package "tzdata". - (patches (search-patches "qtbase-use-TZDIR.patch" + (patches (search-patches "qtbase-5-use-TZDIR.patch" "qtbase-moc-ignore-gcc-macro.patch" "qtbase-absolute-runpath.patch")) (modules '((guix build utils))) @@ -747,7 +747,8 @@ (define-public qtbase (assoc-ref %standard-phases 'configure)) (delete 'check) ;move after patch-prl-files (add-after 'patch-prl-files 'check - (lambda* (#:key tests? parallel-tests? #:allow-other-keys) + (lambda* (#:key tests? parallel-tests? + native-inputs inputs #:allow-other-keys) (when tests? ;; The tests expect to find the modules provided by this ;; package; extend the environment variables needed to do so. @@ -770,6 +771,18 @@ (define-public qtbase ;; /tree/src/testlib/qtestblacklist.cpp). (setenv "QTEST_ENVIRONMENT" "linux ci 32bit") (setenv "HOME" "/tmp") ;some tests require a writable HOME + + ;; Note: the search path specified for TZDIR is only + ;; effective for users of the package, not while it's being + ;; built. + (setenv "TZDIR" (search-input-directory + (or native-inputs inputs) "share/zoneinfo")) + + ;; This is to avoid QTimeZone::systemTimeZone() returning + ;; invalid QDate objects due to missing /etc/timezone or + ;; /etc/localtime. + (setenv "TZ" "Etc/UTC") + (invoke "xvfb-run" "ctest" "--output-on-failure" "-j" (if parallel-tests? @@ -783,11 +796,6 @@ (define-public qtbase ;; The 'tst_moc' test fails with "'fi.exists()' returned FALSE". "tst_moc" - ;; The 'tst_qdate' test fails because the current time - ;; is reported as an invalid date (see: - ;; https://bugreports.qt.io/browse/QTBUG-116017). - "tst_qdate" - ;; The qgraphicsview and qopenglwidget tests fail with a ;; segfault for unknown reasons (see: ;; https://bugreports.qt.io/browse/QTBUG-116018). @@ -826,14 +834,6 @@ (define-public qtbase ;; The 'test_import_plugins' fails with "Could NOT find ;; Qt6MockPlugins1". "test_import_plugins" - ;; The 'tst_QTimeZone::systemZone' validates the - ;; currently set timezone and fails. - "tst_qtimezone" - ;; The 'tst_qdatetime' fails with: - ;; FAIL! : tst_QDateTime::offsetFromUtc() Compared values are not the same - ;; Actual (dt5.offsetFromUtc()): 0 - ;; Expected (46800) : 46800 - "tst_qdatetime" ;; The tst_QObjectRace::destroyRace is flaky (see: ;; https://bugreports.qt.io/browse/QTBUG-103489). "tst_qobjectrace" @@ -910,7 +910,8 @@ (define-public qtbase (("\\$\\$\\[QT_HOST_DATA/src\\]") archdata))))))))) (native-inputs (modify-inputs (package-native-inputs qtbase-5) - (prepend wayland-protocols + (prepend tzdata-for-tests + wayland-protocols xvfb-run))) (inputs (modify-inputs (package-inputs qtbase-5) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v3 4/5] gnu: qtbase: Disable problematic tests on powerpc64le. 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:03 +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.169497165225244 (code B ref 65922); Sun, 17 Sep 2023 17:28:03 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 17:27:32 +0000 Received: from localhost ([127.0.0.1]:51337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYR-0006Z3-Kk for submit@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:32 -0400 Received: from mail-qv1-xf2a.google.com ([2607:f8b0:4864:20::f2a]:62638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYK-0006YD-6S for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:24 -0400 Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-6535b9caa1eso21503976d6.0 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 10:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694971631; x=1695576431; 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=M4geRP2u6sexDWl4FP69gv//9N0p/qAQfXFucyIPg9s=; b=R2XGei/np+8At7C6IV/OGmNhcHgf2Z7pOPDQt7yLxC3AhUUk4jhKUKWF6Gl53W3X1z O6dRA3ZA9mUeAm3/wLo+SU6mBoMLnbNz62Cq6d0rnhBXG6nACoJBMgWr28fv4vkY6sxo Z7k4sb/VaCqS+XcJjcBUaRp35iCwyONhuQjhANShQdZXnOae3LL38HVjYLr/w+SwCtZs kMQQzykPjmvXd7mMX1RQtgTcy3TroGuDOGuzaZXSYNgb4kZcVKSXLy/cRLYaOHW/wQht nH7rzEFL0EiXSposUoartoxfxFlsO390Ih1m2Raezc1C+VFJH9r5RrDajgRr8kayX1o8 05gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971631; x=1695576431; 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=M4geRP2u6sexDWl4FP69gv//9N0p/qAQfXFucyIPg9s=; b=JenSwinex2X2xjedaUi+R1DqfjwEGwsyJBZuGj1sXZkrwNYWnzh5TK2yubDKJTAWmf 1pCkJVb5wh6O5CQUtY5sqUvKZX1z0t8FYVbMJNKzYvgpj5+SGcE2/sNMmPoEibSSYqhs /rU/RCF/Col0orGJ6f1ME33mje/QwHcl6UZvb5UHRqM/JYclhyeqUPKc1hJqYzs1j12e wkBhJ6FujKQIMOHmuO5PYsGL6urJNdKbCVxutXFNw2ICpV2+twG3Pg0LKRj5bqJpY/dX VSLt+6rETi1hHvpz0VagoUnnPhbF9IUb2/ifzgsPUonwHCPUHKU/8fJJODfzYKGea2Gy BMKA== X-Gm-Message-State: AOJu0YzJXoKUR8iBVfJ0jlaMoJahCruy9c0Sj1mjJBj+5LjcGOKvdLv6 JPKzAcs8DaztespIBk16obdb+2Zy3d0= X-Google-Smtp-Source: AGHT+IH6z8tJy90Rfw5ctVUGPg1TJ3fdygpLvA2ipRC+Rgbz9pjpOmUN0xAtW0YVVRRkU5CVMoxuyA== X-Received: by 2002:a05:6214:19e9:b0:63d:3b2:482f with SMTP id q9-20020a05621419e900b0063d03b2482fmr13933911qvc.5.1694971630709; Sun, 17 Sep 2023 10:27:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:27:10 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 13:26:16 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtbase) [arguments] [powerpc64le]: Disable the tst_qpainter, tst_qprocess and tst_qsqlthread tests in the check phase. --- Changes in v3: - New commit gnu/packages/qt.scm | 180 +++++++++++++++++++++++++------------------- 1 file changed, 101 insertions(+), 79 deletions(-) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index c06f27c03e2..8cc1fa7398d 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -792,85 +792,107 @@ (define-public qtbase (string-append "(" (string-join - (list - ;; The 'tst_moc' test fails with "'fi.exists()' returned FALSE". - "tst_moc" - - ;; The qgraphicsview and qopenglwidget tests fail with a - ;; segfault for unknown reasons (see: - ;; https://bugreports.qt.io/browse/QTBUG-116018). - "tst_qgraphicsview" - "tst_qopenglwidget" - - ;; The 'test_rcc' test fails on a comparison: - ;; <<<<<< actual - ;; 0x0,0x0,0x0,0x0,0x0,0x0,0x3,0xe8, - ;; ====== - ;; 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, - ;; >>>>>> expected - "tst_rcc" - ;; The 'tst_qtemporarydir' and 'tst_qtemporaryfile' - ;; tests depend on '/home' not being writable. - "tst_qtemporarydir" - "tst_qtemporaryfile" - ;; The 'tst_qdir' compares two directories which are - ;; unexpectedly different when inside the build - ;; container. - "tst_qdir" - ;; This checks the last modified time of '/', and fails - ;; because Epoch 0 is considered to be invalid. - "tst_qresourceengine" - ;; The 'tst_qfilesystemwatcher' installs a watcher on - ;; '/home', which doesn't exist in the build container. - "tst_qfilesystemwatcher" - ;; Not all of the tested formats are supported by our - ;; build of openssl; 871 passed, 122 failed. - "tst_qsslkey" - ;; The 'mockplugins' test fail following error: "Unknown - ;; platform linux-g++", and the other plugin tests - ;; depend on it. - "mockplugins" - "test_plugin_flavor.*" - ;; The 'test_import_plugins' fails with "Could NOT find - ;; Qt6MockPlugins1". - "test_import_plugins" - ;; The tst_QObjectRace::destroyRace is flaky (see: - ;; https://bugreports.qt.io/browse/QTBUG-103489). - "tst_qobjectrace" - ;; The 'tst_QSettings::fromFile' assumes the data - ;; location to be relative to the root directory and - ;; fails. - "tst_qsettings" - ;; The 'tst_qaddpreroutine', - ;; 'test_generating_cpp_exports' and - ;; 'test_static_resources' tests fail with: "Unknown - ;; platform linux-g++. - "tst_qaddpreroutine" - "test_generating_cpp_exports" - "test_static_resources" - ;; The 'tst_qfile' fails since there is no /home in the - ;; build container. - "tst_qfile" - ;; The 'tst_QGlyphRun::mixedScripts' test fails with: - ;; Actual (glyphRuns.size()): 1 - ;; Expected (2) : 2 - "tst_qglyphrun" - ;; The 'tst_qx11info' test fails with "Internal error: - ;; QPA plugin doesn't implement generatePeekerId", - ;; likely requires a real display. - "tst_qx11info" - ;; The 'tst_qgraphicswidget' test fails because "This - ;; plugin does not support propagateSizeHints". - "tst_qgraphicswidget" - ;; The 'tst_qdnslookup' test requires networking. - "tst_qdnslookup" - ;; The 'tst_qcompleter' and 'tst_QFiledialog::completer' - ;; attempt to complete paths they assume exist, such as - ;; "/home", "/etc" or "/root" and fail. - "tst_qcompleter" - "tst_qfiledialog" - ;; This test is susceptible to the 600 ms timeout used: - "tst_qpauseanimation") "|") ")"))))) + (append + (list + ;; The 'tst_moc' test fails with "'fi.exists()' returned FALSE". + "tst_moc" + + ;; The qgraphicsview and qopenglwidget tests fail with a + ;; segfault for unknown reasons (see: + ;; https://bugreports.qt.io/browse/QTBUG-116018). + "tst_qgraphicsview" + "tst_qopenglwidget" + + ;; The 'test_rcc' test fails on a comparison: + ;; <<<<<< actual + ;; 0x0,0x0,0x0,0x0,0x0,0x0,0x3,0xe8, + ;; ====== + ;; 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, + ;; >>>>>> expected + "tst_rcc" + ;; The 'tst_qtemporarydir' and 'tst_qtemporaryfile' + ;; tests depend on '/home' not being writable. + "tst_qtemporarydir" + "tst_qtemporaryfile" + ;; The 'tst_qdir' compares two directories which are + ;; unexpectedly different when inside the build + ;; container. + "tst_qdir" + ;; This checks the last modified time of '/', and fails + ;; because Epoch 0 is considered to be invalid. + "tst_qresourceengine" + ;; The 'tst_qfilesystemwatcher' installs a watcher on + ;; '/home', which doesn't exist in the build container. + "tst_qfilesystemwatcher" + ;; Not all of the tested formats are supported by our + ;; build of openssl; 871 passed, 122 failed. + "tst_qsslkey" + ;; The 'mockplugins' test fail following error: "Unknown + ;; platform linux-g++", and the other plugin tests + ;; depend on it. + "mockplugins" + "test_plugin_flavor.*" + ;; The 'test_import_plugins' fails with "Could NOT find + ;; Qt6MockPlugins1". + "test_import_plugins" + ;; The tst_QObjectRace::destroyRace is flaky (see: + ;; https://bugreports.qt.io/browse/QTBUG-103489). + "tst_qobjectrace" + ;; The 'tst_QSettings::fromFile' assumes the data + ;; location to be relative to the root directory and + ;; fails. + "tst_qsettings" + ;; The 'tst_qaddpreroutine', + ;; 'test_generating_cpp_exports' and + ;; 'test_static_resources' tests fail with: "Unknown + ;; platform linux-g++. + "tst_qaddpreroutine" + "test_generating_cpp_exports" + "test_static_resources" + ;; The 'tst_qfile' fails since there is no /home in the + ;; build container. + "tst_qfile" + ;; The 'tst_QGlyphRun::mixedScripts' test fails with: + ;; Actual (glyphRuns.size()): 1 + ;; Expected (2) : 2 + "tst_qglyphrun" + ;; The 'tst_qx11info' test fails with "Internal error: + ;; QPA plugin doesn't implement generatePeekerId", + ;; likely requires a real display. + "tst_qx11info" + + ;; The 'tst_qgraphicswidget' test fails because "This + ;; plugin does not support propagateSizeHints". + "tst_qgraphicswidget" + ;; The 'tst_qdnslookup' test requires networking. + "tst_qdnslookup" + ;; The 'tst_qcompleter' and 'tst_QFiledialog::completer' + ;; attempt to complete paths they assume exist, such as + ;; "/home", "/etc" or "/root" and fail. + "tst_qcompleter" + "tst_qfiledialog" + ;; This test is susceptible to the 600 ms timeout used: + "tst_qpauseanimation") + #$@(if (target-ppc64le?) + #~((list + ;; The 'tst_QPainter::fpe_radialGradients' + ;; test fails with a 'Floating point + ;; exception' error on powerpc64le (see: + ;; https://bugreports.qt.io/browse/QTBUG-117113). + "tst_qpainter" + + ;; The 'startStopStartStopBuffers' test fails + ;; on the powerpc64le architecture (see: + ;; https://bugreports.qt.io/browse/QTBUG-80953). + "tst_qprocess" + + ;; The 'tst_QSqlThread::readWriteThreading' + ;; test may fail with an sqlite related error, + ;; "'Unable to fetch row' || 'database is + ;; locked'" (see: + ;; https://bugreports.qt.io/browse/QTBUG-117114). + "tst_qsqlthread")) + #~())) "|") ")"))))) (replace 'patch-mkspecs (lambda* (#:key outputs #:allow-other-keys) (let* ((archdata (search-input-directory outputs "lib/qt6")) -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65922] [qt-team PATCH v3 5/5] gnu: qtdeclarative: Add a debug output. 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:04 +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.169497165225250 (code B ref 65922); Sun, 17 Sep 2023 17:28:04 +0000 Received: (at 65922) by debbugs.gnu.org; 17 Sep 2023 17:27:32 +0000 Received: from localhost ([127.0.0.1]:51339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYS-0006Z7-8u for submit@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:32 -0400 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]:61603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhvYM-0006YO-Ur for 65922@debbugs.gnu.org; Sun, 17 Sep 2023 13:27:28 -0400 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-57355a16941so2485484eaf.2 for <65922@debbugs.gnu.org>; Sun, 17 Sep 2023 10:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1694971633; x=1695576433; 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=aLZZJ1WRwBh/m+1bKA2c2Z98PNMMBlLcjWlDy3GxZpQ=; b=ib/DZI03X3gs4NVBoGkoX+rkeykTDGreVuSlzjdhhV4H4ZpU70Dc8CPxSq7ombZso9 DLOLOcf3RCg0G6IRjV03cpvaidlziXBhDtM26Ee4iEjnREvJ4mkvEUhgkgveT0DDL/Do 6hX8sugysGON1ExdI/Lw7Pv5pqdwGLUjCbnsbZEQT7rN+LXseXeHpX7FleiLiK4mG6Pe y1Dh/8ivazeYuZ/oau9sLrKalpNB7Hwgkb7r8I/g7PRDgBDWVx7jOC5jzixaFTO9xn9B tDIuG7J8V2XSd0VQFDC5Ybmqa1qBhK7TSuwJhAFcC168Hf6j/wLFswLy0z/VnEC36h2V 65Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694971633; x=1695576433; 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=aLZZJ1WRwBh/m+1bKA2c2Z98PNMMBlLcjWlDy3GxZpQ=; b=UwlW6/7NXKsk/V2baOpkSjeaCwDWITKsq/9UoeDWGhmkxhx+VSOevquwh94jzM/8Gw ur2/O3rJ/m4dA6I/3d22Jp9Chyy4/McfywG0gY1a6uGrjpVJI+M8UWs6Owba4fv35ObN sca93tgDIa3NLXTxZlOWS1FG8ALfAPDw+VmqWsvPcusiZxnPpSMxnSXRpBnDUs6iXoZr uQjobSlExPFh+uaydPFEWD3kep+L79HY8rypDxhM0aGElui5RSWJg7ZZXqFGvsTi04LR FxEtHkZC0zkbdq30XL9xGgzoMHly1k7Vwh4lMkSE5VM0LH8m1i2wz9dg2UGmPE31BNUh V42Q== X-Gm-Message-State: AOJu0Yy3qsLdAsY6TJEBJjIzPRk0NO5WNWdM/1gWSoEZLxNx4HkVd+q4 aLB/7KeKMjx/TZ+c2kCY6ZN4XlAIOu4= X-Google-Smtp-Source: AGHT+IFOuWxFOSu40wz1ovD/CEI6ABwTsJBImh/BTKHIVAlr7OgqPFyL9sVTxj2FXW0JxIBalUtW1A== X-Received: by 2002:a05:6358:6f81:b0:135:acfd:8786 with SMTP id s1-20020a0563586f8100b00135acfd8786mr5699363rwn.3.1694971633347; Sun, 17 Sep 2023 10:27:13 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 10:27:12 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 17 Sep 2023 13:26:17 -0400 Message-ID: <5bfc9e9fe16144a7231d2643da4abce5ae364930.1694971566.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) 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: -1.0 (-) * gnu/packages/qt.scm (qtdeclarative) [outputs]: New field. --- (no changes since v1) gnu/packages/qt.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 8cc1fa7398d..87de296013f 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1372,6 +1372,7 @@ (define-public qtdeclarative (base32 "06c7xfqn2a5s2m8j1bcvx3pyjqg1rgqkjvp49737gb4z9vjiz8gk")) (patches (search-patches "qtdeclarative-disable-qmlcache.patch")))) + (outputs '("out" "debug")) (build-system cmake-build-system) (arguments (list -- 2.41.0 From unknown Thu Aug 14 22:24:42 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Maxim Cournoyer Subject: bug#65922: closed (Re: bug#65922: [qt-team PATCH 0/4] Avoid capturing python in qtbase, reinstate tests) Message-ID: References: <87ttqqutq4.fsf@gmail.com> X-Gnu-PR-Message: they-closed 65922 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 65922@debbugs.gnu.org Date: Mon, 16 Oct 2023 21:47:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1697492822-15984-1" This is a multi-part message in MIME format... ------------=_1697492822-15984-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65922: [qt-team PATCH 0/4] Avoid capturing python in qtbase, reinstate tes= ts which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65922@debbugs.gnu.org. --=20 65922: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65922 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1697492822-15984-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65922-done) by debbugs.gnu.org; 16 Oct 2023 21:46:16 +0000 Received: from localhost ([127.0.0.1]:58135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsVPj-00048T-VF for submit@debbugs.gnu.org; Mon, 16 Oct 2023 17:46:16 -0400 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:61703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsVPg-00048F-Kj for 65922-done@debbugs.gnu.org; Mon, 16 Oct 2023 17:46:14 -0400 Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-d857c8a1d50so5059669276.3 for <65922-done@debbugs.gnu.org>; Mon, 16 Oct 2023 14:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697492742; x=1698097542; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=zqaqDxS4/Lr5YxashdUUJ86Q0pRbHmIW/tbL/MLe3tU=; b=I/LQ4AjblGb36ffkTwEZEIYToIZni9pHnd1cLzmCls+aWiGKD7M70ncBe2gy/Rcwda LPSE6+36SHaQbcThSO93/bKZqWHrHwk7GhcfemsVE+B64+tgpc3Nu5M1rcPEcyNQJgaF AgIgMGdTofqcqNfupcjyTCFjtmRZIRlzu3hHGVG5Hh++aoGPCDEYA9bWskMWWt9LQI6F alxBT9pca6xtS/9Y5/ZECkl+Y9ZPTRAe/xi8ymitAIO1t0fuW86s23jbJ3xx7N4lhvh0 Nqm4crdUAML3lILZGZZGsuo9afXcayhKLoZL0QJ3V4xf3CAI8QJG/ko4e0h1DtofKKWv ak1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697492742; x=1698097542; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zqaqDxS4/Lr5YxashdUUJ86Q0pRbHmIW/tbL/MLe3tU=; b=mAC4PmcN/vsxP69F+vfmlYiYk+Xvmq1M7EDSHAM/m7CeoWJMTguDy9GBRHLWv6msz3 rDByz9h+DQ0/Nvg9d+h4KrPBwhWKlsZYPCmUnh+nlpzWaVVBHTONHqMFePGDTVBhFsP2 m3rN1/Jb8CMBW50DO31Y6AfucP93mesULdwYS2cjNZGN0B1VihuX67oxaJOT9gA7q12q gRrq3K3p5uiQxfLwNMtP91nVUS2xN3WcJXoJ03Hy6kL/KGTJpALnQ3yY598yZBoyryZW Hay/83ORnHiwSVv96Q6TZb8Y2VG30wjyI2/BVGG7lUr2x3/xK83pU2yGGzoixOnG2ama 0oQg== X-Gm-Message-State: AOJu0Yxd45m3ppa9NdTowPrpaAbKfIHQbUW6OSZm3oemMiiihHbqMRCM nleMfOQFi4dEbUV0oGZngNcIi5cXaqb6ZQ== X-Google-Smtp-Source: AGHT+IFYVdfnnTBxyVak8y7pra5CIcIgau1PCB06UfU8uLkBS5lxT9S0sKZf6bIXoLeeSAyqsDzKXQ== X-Received: by 2002:a25:320a:0:b0:d9a:44fe:be93 with SMTP id y10-20020a25320a000000b00d9a44febe93mr314459yby.26.1697492741471; Mon, 16 Oct 2023 14:45:41 -0700 (PDT) Received: from hurd (dsl-10-149-74.b2b2c.ca. [72.10.149.74]) by smtp.gmail.com with ESMTPSA id d16-20020a0cea90000000b0066d32666a27sm22753qvp.66.2023.10.16.14.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 14:45:41 -0700 (PDT) From: Maxim Cournoyer To: 65922-done@debbugs.gnu.org Subject: Re: bug#65922: [qt-team PATCH 0/4] Avoid capturing python in qtbase, reinstate tests In-Reply-To: (Maxim Cournoyer's message of "Wed, 13 Sep 2023 12:56:13 -0400") References: Date: Mon, 16 Oct 2023 17:45:39 -0400 Message-ID: <87ttqqutq4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65922-done Cc: Andreas Enge , =?utf-8?B?5a6L5paH5q2m?= 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: -1.0 (-) Hi, Maxim Cournoyer writes: > Thes series removes Python from the closure of qtbase, both for versions 5.15 > and 6.5. It also reinstate a few tests that was made possible thanks to > discussions with upstream following reported the issues. > > Changes in v2: > - Also apply fix to qtbase-5 package. > > Maxim Cournoyer (4): > gnu: qtbase: Do not capture Python (again). > gnu: qtbase: Add $TZDIR to native search paths. > gnu: qtbase: Reinstate date related tests. > gnu: qtdeclarative: Add a debug output. Now merged. -- Thanks, Maxim ------------=_1697492822-15984-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 13 Sep 2023 16:56:45 +0000 Received: from localhost ([127.0.0.1]:35830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTAS-0002Nx-Sa for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:56:45 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgTAN-0002Nf-W7 for submit@debbugs.gnu.org; Wed, 13 Sep 2023 12:56:44 -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 1qgTAD-0000nP-Br for guix-patches@gnu.org; Wed, 13 Sep 2023 12:56:29 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgTA8-0004Rx-DL for guix-patches@gnu.org; Wed, 13 Sep 2023 12:56:28 -0400 Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-41206fd9717so45380971cf.3 for ; Wed, 13 Sep 2023 09:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624182; x=1695228982; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=VPfSszXfbIXAs56mKY6qscXVxGUU7/joqfPq82f3b8E=; b=jDhzO7dm2qfV1iyeyKRvBHeWS9fGdPdGAi0IqSDwiTVxrTurxxDJk4sbDcCt9TGSVE c6XaXNGH9gx6MraB1v9ZBYL/HaP4LOEixHrQOA8NRsxLWAgoTXtbpg3BhILOkrklmkiL vBX7qx8/03UXE/a1Y42N/8NJ/ECSx+XkhGkYMCIZWsNVlu7TIVt3kJiNf6PtFk33EaPC eJ+LQMRX8v0z6veKGsCLDDojcR6L0uJDsQotcjt4+/JDKVkD94v1VTP0Ka5rXV8P+xwe 6JFk5qXY+Iiuj2ruFfRBpzZ/XEBG67eDpw1IkfIXVqDHRpZaUnxDXUmBreJrcQD/SqGM BXYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624182; x=1695228982; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VPfSszXfbIXAs56mKY6qscXVxGUU7/joqfPq82f3b8E=; b=IFD9Tebqb6KXTsEMXojyszSbB88Q1brMY4Z8GKX7Jc/8lE/x0BY5eHNd80H0EHHyK0 bhHJxM0WO/Tt9reapiKC67OIzToz2HCEqa9I2htGN/Nrwo/7q28Jx5xunZ8Ue3B2ZvBA bd+qY3EZZ0d0G0XPlthuEQa87VMt9q91B6halPRQxOba064LiyL9X8DyFjeDrmPrYRXp YBlSwCvlzz+RfUqzC+0tslQCG/0JfjcT/2odApdyCf9u5y2uM7YGNTqIMX0pp9aCs4pT FpmZJrgPyVCqoy37Cm9Iuf/CxvSirQLkuKZurbG2gZwNuEWEj29m1h2iom+EOYyD5KMi l/ww== X-Gm-Message-State: AOJu0YxCDT9YYUIhYBfzffy1f2ehBNtWfcvd/mNe07r57in6FopkCqG5 pTnKN7hvxrwu45FkJhRghGhlxwBHqHo= X-Google-Smtp-Source: AGHT+IHpf6OBVSFxNrv5KrgmP+NsNw9EEQW3K2H4cbNZC0zJgeAec6naHmK5RYWVo65WO0DlnsyTLQ== X-Received: by 2002:a05:622a:1c2:b0:413:5f30:9995 with SMTP id t2-20020a05622a01c200b004135f309995mr3771327qtw.36.1694624182439; Wed, 13 Sep 2023 09:56:22 -0700 (PDT) Received: from localhost.localdomain (dsl-149-165.b2b2c.ca. [66.158.149.165]) by smtp.gmail.com with ESMTPSA id jy1-20020a05622a818100b0040f8ac751a5sm4093270qtb.96.2023.09.13.09.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:56:21 -0700 (PDT) From: Maxim Cournoyer To: guix-patches@gnu.org Subject: [qt-team PATCH 0/4] Avoid capturing python in qtbase, reinstate tests Date: Wed, 13 Sep 2023 12:56:13 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: Andreas Enge , 宋文武 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x836.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Maxim Cournoyer 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: -0.0 (/) Thes series removes Python from the closure of qtbase, both for versions 5.15 and 6.5. It also reinstate a few tests that was made possible thanks to discussions with upstream following reported the issues. Changes in v2: - Also apply fix to qtbase-5 package. Maxim Cournoyer (4): gnu: qtbase: Do not capture Python (again). gnu: qtbase: Add $TZDIR to native search paths. gnu: qtbase: Reinstate date related tests. gnu: qtdeclarative: Add a debug output. gnu/packages/patches/qtbase-use-TZDIR.patch | 162 ++++++++++++++++---- gnu/packages/qt.scm | 54 ++++--- 2 files changed, 167 insertions(+), 49 deletions(-) base-commit: 4cb2e08b8eb1acc824b72ec17b483d7d85b5af68 -- 2.41.0 ------------=_1697492822-15984-1--