From patchwork Thu May 11 10:54:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Aaltonen X-Patchwork-Id: 1779969 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QH80v1XK2z214S for ; Thu, 11 May 2023 20:54:39 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1px3wQ-0001wM-Jx; Thu, 11 May 2023 10:54:34 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1px3wN-0001vT-56 for kernel-team@lists.ubuntu.com; Thu, 11 May 2023 10:54:31 +0000 Received: from localhost.localdomain (1.general.tjaalton.uk.vpn [10.172.193.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id F404F3FDAB for ; Thu, 11 May 2023 10:54:28 +0000 (UTC) From: Timo Aaltonen To: kernel-team@lists.ubuntu.com Subject: [SRU v3][J:lrm-hwe-5.19/J:lrm-hwe-6.2/M:lrm/U:lrm][PATCH 0/1] Add lrm autogenerated transitional independent of variants Date: Thu, 11 May 2023 13:54:14 +0300 Message-Id: <20230511105415.2037049-1-tjaalton@ubuntu.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Timo Aaltonen BugLink: https://bugs.launchpad.net/bugs/1991130 v3: Add so that NNN-server and -open get handled correctly, and use the same loop as for default variant transitionals [Impact] The kernel lrm packages have a mechanism to auto-generate transitional packages by adding a line to 'debian/package.config' in the following format transitional (note: is new from this patch) Example: transitional 450-server oem-22.04a generic amd64 When being processed by 'debian/scripts/generate-rules' the autogenerated contents are added to 'debian/control.d/transitionals-local'. However, this file is not included in the final 'debian/control' for packages which does not contain the default variant '--' (see debian/rules.in). This is intentional to prevent unwanted transitionals. However, there are some cases where we want to transition packages to kernels which are not the default variant in a series (e.g. hwe kernels). [Fix] The proposed fix is to add a new command "migrate", which does exactly what "transitional" does but adding the content to 'debian/control.d/migrate-local' which would get added to the final 'debian/control' independently of the source's variants. [Test Case] Add "migrate" entries to 'debian/package.config' and check whether they get added to 'debian/control' even for non default variant packages. [Where problems could occur] If not used correctly, unwanted transitionals could be generated causing issues to the archive. However, this is a new command and should not impact any of the previously set transitionals and it needs to be explicitly used. Kleber Sacilotto de Souza (1): UBUNTU: [Packaging] add a new migrate autogenerate option debian/scripts/generate-rules | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) Acked-by: Andrea Righi