From patchwork Wed Aug 16 12:10:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 52936 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9F7D927BBE9; Wed, 16 Aug 2023 13:18:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E796727BBE2 for ; Wed, 16 Aug 2023 13:18:54 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWFP2-0007LK-Bs; Wed, 16 Aug 2023 08:13:32 -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 1qWFOt-00078D-D4 for guix-patches@gnu.org; Wed, 16 Aug 2023 08:13:25 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWFOb-0002La-7i for guix-patches@gnu.org; Wed, 16 Aug 2023 08:13:15 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWFOa-0005RD-Oy for guix-patches@gnu.org; Wed, 16 Aug 2023 08:13:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65280] [PATCH v2 03/59] etc: Add Qt manifests for Qt maintenance. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Aug 2023 12:13:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65280 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65280@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 65280-submit@debbugs.gnu.org id=B65280.169218796120478 (code B ref 65280); Wed, 16 Aug 2023 12:13:04 +0000 Received: (at 65280) by debbugs.gnu.org; 16 Aug 2023 12:12:41 +0000 Received: from localhost ([127.0.0.1]:39020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWFO7-0005JO-7E for submit@debbugs.gnu.org; Wed, 16 Aug 2023 08:12:41 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:61905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWFO3-0005Hp-Fr for 65280@debbugs.gnu.org; Wed, 16 Aug 2023 08:12:32 -0400 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-76d77cf9979so3045285a.3 for <65280@debbugs.gnu.org>; Wed, 16 Aug 2023 05:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692187946; x=1692792746; 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=DgL7BKcMfQV2yGi90TNWiX+VFXxnBOSQGL3bwPAhGUg=; b=BtkZTeTLFfYIAHJi38RvrYD2sxr0O9ZINsme+EQhblS7wldXOqVTA/t9i4yIoXRo/4 4SUeMme7QbDWnQ7zUUwTeSFuwN0ITMk0TOtWszDhS331KTgQiADFyV9jYM8N4lIDrHWc JMDbRR5p1OP7AZGyUeveKIQI1DlvtTB15hFO2pqGVFacl+efhqdiKtyXDvyp/m1vAfYh xCmaJVmRvjC3freHqA8L1S3M9Kw/euSxw/IwnbmoN8/b418N2eJHC6GTHAMHO6WM35ps sdPxI+nCDQ0Q6L9ymCM0eFvBLfeegc5ufjo+yCPCXgpWEdNpqzQqYwslCd6yQR/VtmUL VfNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692187946; x=1692792746; 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=DgL7BKcMfQV2yGi90TNWiX+VFXxnBOSQGL3bwPAhGUg=; b=IKXjZHRcPYoStoDJPijW7o3RdbKY3hGdX7zb2VPvfPRbYPiPDrt707JiEE/uMcCXEB Mo3Dqo+jUHutyy7Rrn4MgNesGvLhtMNQIuplBs5+zVe0pU0YVCB/SVyVTuspHdNiz4RU s6Qt72gF0CyGlzwbxiladKTtRbqA5LIrk6EDwcZWhsPUFuOvdh5+4og33x8QmpP6lGQ9 ZOKL3tUC1nCKgujmqV5s7C6OgMTXXLcE6IxyT3QH0zm7FADwTMiQ9FrfpLfUdCXgGwkP xj2GOElZsPX4YK4qcGsXUV3rUhX7cNUU6CbII/f7kBkX9dUqfKLUe8iN+madF+3kx9jV Ap/A== X-Gm-Message-State: AOJu0YzxsKtiwVDpcdArH7FpRVhL4HlSEB6hVZQOC/PxYVnNV+MRjtd+ gvrdVJAwE5fcK9lWmQKorj6LYS6AOog= X-Google-Smtp-Source: AGHT+IFaFbkneNZog4FaOO2onnofjp9R1tLH7UPp+3TDWFNOLCXqKvLQUHwva5LmSb1kWW59ujlUSg== X-Received: by 2002:a0c:e548:0:b0:63d:325a:3081 with SMTP id n8-20020a0ce548000000b0063d325a3081mr1573770qvm.44.1692187945726; Wed, 16 Aug 2023 05:12:25 -0700 (PDT) Received: from localhost.localdomain (dsl-152-182.b2b2c.ca. [66.158.152.182]) by smtp.gmail.com with ESMTPSA id c17-20020a0ce151000000b00641899958efsm4468320qvl.130.2023.08.16.05.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 05:12:25 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 16 Aug 2023 08:10:19 -0400 Message-ID: <32fca03a51c37e46d44b39d32b11a87038b04c8b.1692187578.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * etc/teams/qt/common.scm: New file. * etc/teams/qt/qt-manifest.scm: Likewise. * etc/teams/qt/qt5-manifest.scm: Likewise. --- (no changes since v1) etc/teams/qt/common.scm | 50 +++++++++++++++++++++++++++++++++++ etc/teams/qt/qt-manifest.scm | 34 ++++++++++++++++++++++++ etc/teams/qt/qt5-manifest.scm | 34 ++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 etc/teams/qt/common.scm create mode 100644 etc/teams/qt/qt-manifest.scm create mode 100644 etc/teams/qt/qt5-manifest.scm diff --git a/etc/teams/qt/common.scm b/etc/teams/qt/common.scm new file mode 100644 index 0000000000..8e11ac220b --- /dev/null +++ b/etc/teams/qt/common.scm @@ -0,0 +1,50 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Maxim Cournoyer +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +;;; This file returns a manifest of packages related to linux-libre. +;;; Simplistically, it selects packages whose names begin with "linux-libre". +;;; It is used to assist continuous integration of the kernel packages. + +(use-modules (guix packages) + (guix profiles) + (guix utils) + (gnu packages)) + +(define* (qt-packages-manifest #:key major-version negate-version-test?) + "Return a manifest of Qt packages for MAJOR-VERSION, or any version if left +unspecified. If NEGATE-VERSION-TEST? is true, select all the Qt packages +*not* matching MAJOR-VERSION." + (manifest + (map package->manifest-entry + (fold-packages + (lambda (package lst) + (let ((uri (and=> (package-source package) + (lambda (x) + (and (origin? x) + (origin-uri x)))))) + (if (and uri + (string? uri) + (string-prefix? "mirror://qt/" uri) + (if major-version + ((if negate-version-test? not identity) + (string=? major-version (version-major + (package-version package)))) + #t)) + (cons package lst) + lst))) + '())))) diff --git a/etc/teams/qt/qt-manifest.scm b/etc/teams/qt/qt-manifest.scm new file mode 100644 index 0000000000..0d8fa95bfe --- /dev/null +++ b/etc/teams/qt/qt-manifest.scm @@ -0,0 +1,34 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Maxim Cournoyer +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +;;; This file returns a manifest of packages related to linux-libre. +;;; Simplistically, it selects packages whose names begin with "linux-libre". +;;; It is used to assist continuous integration of the kernel packages. + +(load "common.scm") + +;;; Commentary: +;;; +;;; This manifest can be used to update the latest Qt packages collection, via +;;; e.g.: +;;; +;;; ./pre-inst-env guix refresh -u -m etc/teams/qt/qt-manifest.scm +;;; +;;; Code: + +(qt-packages-manifest #:major-version "5" #:negate-version-test? #t) diff --git a/etc/teams/qt/qt5-manifest.scm b/etc/teams/qt/qt5-manifest.scm new file mode 100644 index 0000000000..34fdf479bf --- /dev/null +++ b/etc/teams/qt/qt5-manifest.scm @@ -0,0 +1,34 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Maxim Cournoyer +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +;;; This file returns a manifest of packages related to linux-libre. +;;; Simplistically, it selects packages whose names begin with "linux-libre". +;;; It is used to assist continuous integration of the kernel packages. + +(load "common.scm") + +;;; Commentary: +;;; +;;; This manifest can be used to update the Qt 5 packages collection, via +;;; e.g.: +;;; +;;; ./pre-inst-env guix refresh -u -m etc/teams/qt/qt5-manifest.scm --target-version=5.15.10 +;;; +;;; Code: + +(qt-packages-manifest #:major-version "5")