From patchwork Tue Jun 11 21:11:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Aquini X-Patchwork-Id: 13694202 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 1BECD386 for ; Tue, 11 Jun 2024 21:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718140314; cv=none; b=u2Tm9hyZzG0FFHyk3E6HUsJ0p94cC6/mgqkvWHw2zWEVjqPsc4OE+snzvzpzx0IUm45mwkpI+RGsyF4VrEVULG+u7iklXYFByX17YnpMNMkQ9CsX1rce6HL3+jcNE2wKBzYyaNKldmwWYH5pBDjO5/w2xHzkh0RAXxg3ZIOgAFs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718140314; c=relaxed/simple; bh=IPkb5xs1tp8nidpR6ZdO56H7HFPrCZ4YuB4PKAsh35M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ErLVX1yOruE77rpYHbic3OtjQpnDIjblx2zj8ypC1xfMNvzzV6V/UdbmNcBz1Fvd5jcGVxzFb0roCOxokH+jb1dWe0xj2YCFlZuxn7lfzvXLrCO7FbSvzFI2/ZAEXskm0VTc1FSsigoiDJ3GTgZ9iavYrHAGuVnVRudKgV2/7Wk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BxQpBCjF; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BxQpBCjF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718140311; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v2UqnbFZuqSpoV8dV5NBW3nYaLHw6l7BBeQAt1ESKMM=; b=BxQpBCjFw9kPRxAJM1/btwWauPKABs2GGFGdZBGyITxaBFttKIJ+g0r/jajasQ5ovWlr+e Rn5hF4Z7tzfbsgdHooM75iC/RVCQ7spQVTe0f0VqMrCfwdHikbh1DuQ00wCjh1qsEBuac7 z4pUEpv6JUgm2GcKoET4Q/lE54EJF/A= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-60-fvRH1C-5MymEhA_KJsglyw-1; Tue, 11 Jun 2024 17:11:47 -0400 X-MC-Unique: fvRH1C-5MymEhA_KJsglyw-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3D42319560B7; Tue, 11 Jun 2024 21:11:45 +0000 (UTC) Received: from optiplex-lnx.redhat.com (unknown [10.22.17.224]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6A90419560AB; Tue, 11 Jun 2024 21:11:43 +0000 (UTC) From: Rafael Aquini To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nicolas Schier , aquini@redhat.com Subject: [PATCH 1/2] kbuild: rpm-pkg: make sure to have versioned 'Obsoletes' for kernel.spec Date: Tue, 11 Jun 2024 17:11:21 -0400 Message-ID: <20240611211123.959459-2-aquini@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Fix the following rpmbuild warning: $ make srcrpm-pkg ... RPM build warnings: line 34: It's not recommended to have unversioned Obsoletes: Obsoletes: kernel-headers Signed-off-by: Rafael Aquini Tested-by: Nathan Chancellor --- scripts/package/kernel.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index e095eb1e290e..19e458341f45 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -27,7 +27,7 @@ The Linux Kernel, the operating system core itself %package headers Summary: Header files for the Linux kernel for use by glibc Group: Development/System -Obsoletes: kernel-headers +Obsoletes: kernel-headers < %{version} Provides: kernel-headers = %{version} %description headers Kernel-headers includes the C header files that specify the interface From patchwork Tue Jun 11 21:11:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Aquini X-Patchwork-Id: 13694203 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 36393153509 for ; Tue, 11 Jun 2024 21:11:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718140320; cv=none; b=j6TUHy6x9L3WG5OlBrPVCv2V9f0QiuzrMmIEoafOEGagTwYJw7qRhcM+ODIuN8+NZ6N4fjbJzgs6TrKx4/fYZlr1xJkriYEq05L1Ma8pvZlH+5UNw7x9bQ+zKRIpzjDJH8LSdw+vmwFra0lYNO6TwWJCsWL4hdJeSYtlhWosfDU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718140320; c=relaxed/simple; bh=Nmr+C12wF1RYYg9mmz1DcQEFznuFVjX6ABSCFL5q4fM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OigO9Z5qEX7I2JcHABOTKrls2U/0Q1ZeO+qc0GPQeradsZJvjM6vGPqi4VTIodPAqrQWfBR3nlz2/FJjbDd3KNC3Eo+CstS/dejqXkDvIbS7fO9r1gBrUmIpCBraIEpoYOcOGMZ66kx05A5iPyjpxnzJs8xVmt3cd9eaQQtjZ7I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=O6ZSgRoc; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="O6ZSgRoc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718140317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SlR2/lfVcOXnQva5QGCQYKDDAgBcAMAi4HJTFcXB9Zc=; b=O6ZSgRocX8W4+vMPsYLgQOFTtn27aVAcv1SG3FrOp9gRNqmmwcUsZhtl5HZe65CMVLSsSt jpwBwF14zjugOaPf3MMX5KLEuV9AuTsirOnlxm5Au1KL77MKEbRjqJtAcc3t6FfApQbvhT ZRtAK/bE3SqNgIU2BPJVtKRbAYFXfg0= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-224-Yuu486_5MB-iIMM5KnThLw-1; Tue, 11 Jun 2024 17:11:52 -0400 X-MC-Unique: Yuu486_5MB-iIMM5KnThLw-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8062F1956089; Tue, 11 Jun 2024 21:11:50 +0000 (UTC) Received: from optiplex-lnx.redhat.com (unknown [10.22.17.224]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 499A719560AB; Tue, 11 Jun 2024 21:11:48 +0000 (UTC) From: Rafael Aquini To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nicolas Schier , aquini@redhat.com Subject: [PATCH 2/2] kbuild: rpm-pkg: introduce a simple changelog section for kernel.spec Date: Tue, 11 Jun 2024 17:11:22 -0400 Message-ID: <20240611211123.959459-3-aquini@redhat.com> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Fix the following rpmbuild warning: $ make srcrpm-pkg ... RPM build warnings: source_date_epoch_from_changelog set but %changelog is missing Signed-off-by: Rafael Aquini --- scripts/package/kernel.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index 19e458341f45..126b23c1f6c2 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -132,3 +132,8 @@ fi /usr/src/kernels/%{KERNELRELEASE} /lib/modules/%{KERNELRELEASE}/build %endif + +%changelog +* %(echo "$(LC_ALL=C; date +'%a %b %d %Y') $(git config --get user.name) \ +<$(git config --get user.email)>") - %{version}-%{release} +- Custom built Linux kernel.