Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp472265lqp; Tue, 11 Jun 2024 09:34:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU9Q8I+nq4S+j7IyTAjJbnJ/UKoScr1fnue37tfdaa9EFbxhaMhGLS6BLCrTVUd6ZlO/wMtMT5T79/M1YYMspPaRUUGL8cRQPBf8kRhw== X-Google-Smtp-Source: AGHT+IFruoXUdszvoxIq7MJmhDOKI6SjRmSAKMACbmN6V2+kmP9Y4VoQk0gosVaCTLJvwTglU6n1 X-Received: by 2002:a05:620a:24d2:b0:795:5f86:6e2b with SMTP id af79cd13be357-7955f867164mr832775385a.42.1718123660932; Tue, 11 Jun 2024 09:34:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718123660; cv=pass; d=google.com; s=arc-20160816; b=t6ZPu+eKiOEftI6/ZYB/ElVrUqnkXJpfcctJr383iNHHU+TYQ/RmoByioRLN0HbKUX ndSbpCnp6/Ad8GsnvtWGCWiEg8oifYAiC/jZk4zKiKlAMXSx3p2J6/27EGCUU36nBkch zZ36UYMtLAZjvK9eW/2dP3sug1U1wpFIlRkBxv7YXoJ7U12QmE2qaybEhAmKP7/bhrRV uOPJDfjOG5Nfa8r13ZVZxi3VRCSv6r/YDZlLxFqXLuCThT8tH+1xyd4thwWDHs6o+xsC 29eeHJrSPbIUY9wuB9M2pNwmpUhUFowj2GkoY/Itnzz829M6RMT8p7zxeb3KJ/j2xYPi PjOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Yfl6Vf+ildSh2/v0F5LNvVu4yoS45xL1OQBZvnIHkBE=; fh=Wln/63NClKn5eq8R7w6iviMSJrAv/HGxh+x/hwPy5yw=; b=cgGZKmDQ1W/fCgmnFCulVKnahA6MWAksNN4/uyKq7fwGghJkYIIBQuB1ekG0xgLhuM XCwSde318ICLIxv9OkFMywAzSNETO2X7XdwbplxiR2Xz+/FiE0DUK5HL5E5WDA+kSG0K nj0xPfgthQg+jEIdwO+UGa8ZVGX3m+GnVNd4T84BymJGAy8HOh+TK8OtUiRVP6UgbWa2 1gzv3813R4TccmDaesWvXu0HVJzsyoZBXcLF6ekJX/TV4kHZ+WpgRXNrUk2/WzkLGn+O 6uzg1nhwOmY/aD6v0C8Sp9A9E8r4PBoHxjjmIh/seF96bgIVAIW+HfbkfuBEYqJTinpz 03uQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="i1/u4aXu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7955a430f7fsi807162485a.756.2024.06.11.09.34.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:34:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="i1/u4aXu"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210256-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8722B1C22500 for ; Tue, 11 Jun 2024 16:34:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE4543D971; Tue, 11 Jun 2024 16:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="i1/u4aXu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02C9F1CFA9; Tue, 11 Jun 2024 16:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718123653; cv=none; b=eaqiPkwIbjGoJJz8sdhYMFzxspjwrqkEcECIYIM+yQdbQ8ChyI6zMugevz0omobWdJlFZWjlnbsPA0bX9pDWPl+O+L8H8QN3ucZcz+wtwujGUaLmhTwrJzzOtyrtEaB0hCU+6JHa+3IFuah4+aEtoN4+Tdkru0Ha3IbX9ltxFDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718123653; c=relaxed/simple; bh=32Qg2s2ft1DIK6vq4J5SomgbyYmYFs3dtDaha8oUJoc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sz43XKqdwNHzQVuc2TQNZeTRhFbTX83euS0C1393OlMkjQ9kvJqOxqfhLs6nMa4j+ab1mkOQuHUfDCoNyKOspqqPJIaj042RApQMpg/CDmodm2RID3B40y+MW6sZfY+ZQg+AaBaVHL6/SBXa3piLn0FjJ/Nbmg0O61zsp20TFZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=i1/u4aXu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 924A9C4AF48; Tue, 11 Jun 2024 16:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718123652; bh=32Qg2s2ft1DIK6vq4J5SomgbyYmYFs3dtDaha8oUJoc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=i1/u4aXuXgm1Pq+N8swSQeQopqXSPBd7MRu6eVN6FBO5Sa1kGq1A2SuVFLSS1Vgw/ OTacK5dH+jA1cf/U00ZY/z/QE/ofQ6s1kUZ1I/gAMuJA6FE8VQg+wN5CVYl7vWidsp zSYIqlXA07LPnj/N1e0SJkloichkCyRydihXrha5X+v8/rDKu3X40IC20wjBQ6gGfL ZIQecuZ28bB75A0USed6QTGCjhzGX6lC8kSDpae4C3tx/4GCLlYO0UlqNr/V5hEd/3 n1n47dPqQpBFhioMbndi4S2pT4obIy+Yl/QqWvG7oki3NKGxn3e27JlpZh8RUKQQ6S z3IPhFa3T98wA== Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2ebe40673d8so12168841fa.3; Tue, 11 Jun 2024 09:34:12 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXttVVNJ7GD40l96vUdLG0PXiFKzuu91lFA1oR6QsTdSa98wp83By1xBOIIYNQK0tKdi+cRr5x/0PPL0ph9TJbR1G+UXgs/8+5t9sQ8 X-Gm-Message-State: AOJu0Yw5XA+ZXTRjOHptgvht2Svp9HJnnLEulO77/HqxGSwv5TeIilW9 UlThXgKpKJbPju2ZfOSUPn9RqX6bbkNT3Y0/Mp0NzxBNfnWIm4LOtDGR9PE9FoE9adnmMl7xDMa 9mRX04iP4Xfy0M2Ce93BMZJh40OA= X-Received: by 2002:ac2:4e8e:0:b0:52c:81ad:77f8 with SMTP id 2adb3069b0e04-52c81ad8048mr5110349e87.32.1718123651263; Tue, 11 Jun 2024 09:34:11 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240610163856.693110-1-aquini@redhat.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 12 Jun 2024 01:33:34 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: rpm-pkg: fix rpmbuild warnings for kernel.spec To: Rafael Aquini Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nicolas Schier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2024 at 1:03=E2=80=AFAM Rafael Aquini w= rote: > > On Wed, Jun 12, 2024 at 12:00:18AM +0900, Masahiro Yamada wrote: > > On Tue, Jun 11, 2024 at 1:39=E2=80=AFAM Rafael Aquini wrote: > > > > > > Newer revisions of rpmbuild are throwing warnings about the current > > > kernel.spec template having an unversioned kernel-headers in the > > > 'Obsoletes:' field and not being able to source the epoch's date from > > > the spec's missing '%changelog' section: > > > > > > $ make srcrpm-pkg > > > UPD include/config/kernel.release > > > GEN rpmbuild/SPECS/kernel.spec > > > UPD .tmp_HEAD > > > ARCHIVE linux.tar.gz > > > rpmbuild -bs rpmbuild/SPECS/kernel.spec --define=3D'_topdir /mnt/nf= s/work/kernel/linux/rpmbuild' > > > warning: line 34: It's not recommended to have unversioned Obsolete= s: Obsoletes: kernel-headers > > > warning: source_date_epoch_from_changelog set but %changelog is mis= sing > > > Wrote: /mnt/nfs/work/kernel/linux/rpmbuild/SRPMS/kernel-6.10.0_rc3-= 1.src.rpm > > > > > > RPM build warnings: > > > line 34: It's not recommended to have unversioned Obsoletes: Ob= soletes: kernel-headers > > > source_date_epoch_from_changelog set but %changelog is missing > > > > > > This patch addresses both RPM build warnings. > > > > > > Signed-off-by: Rafael Aquini > > > --- > > > scripts/package/kernel.spec | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spe= c > > > index e095eb1e290e..4d58b29c03ad 100644 > > > --- a/scripts/package/kernel.spec > > > +++ b/scripts/package/kernel.spec > > > @@ -1,3 +1,5 @@ > > > +%global source_date_epoch_from_changelog 0 > > > > > > > > > Another possibility might be to add %changelog section. > > > > In Debian packaging, debian/changelog is a requirement. > > > > scripts/package/mkdebian generates a very small > > debian/changelog with a single log entry. > > > > I'll take a stab at it, then. Thanks for the pointer! When you send v2, please split it into two patches. You are addressing two warnings. These are separate issues. --=20 Best Regards Masahiro Yamada