From patchwork Thu Jul 4 19:36:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Aquini X-Patchwork-Id: 13724237 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 E86E613C905 for ; Thu, 4 Jul 2024 19:36:56 +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=1720121818; cv=none; b=OY/iHedc+17vWpK8iY1RLPuTti02j4beLcnqNkk3M+/HU9ovOGMe86acwYyIIHsx0Am5zlEWJMaoG+6nGwqyj07s181jNkbT3y3+Q/mpSY/CnUk6sziPqK9M09oTUE4Yj4rhP5SrwmUVLU2rbYJu43RDlEuxEjrIR9NKjXWcggc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720121818; c=relaxed/simple; bh=t9ofOP0ze4UGyGJ8kmTyeN6SMDorzz2HRfkn0CJ0UCc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cJok1NBU3tiJzKl5tmgBbDdJ3E7VjltG+XG8ylMIbShGdo5wCWy1+oArDi6SumlyPooUJozfxK4VhHn9k3xLPdGZV9wALMmwychpfUhiBrUdqRI9gPuGGyns8Y9bfMa0uqaGFexMp0slqkhJh0eiUFZJTlw0fxFUYt9aVgmm44M= 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=PzCb9dAk; 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="PzCb9dAk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720121815; 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=e2mM608hXRB0tkzS3eDg++O9P9yskvc9elF7/0eVFFw=; b=PzCb9dAk5GljoiFr0uUZ+Vnt3C4SzOdEwmmIaYsiUaLkSCbnH8fmIg37MadmWAGefDZ+da p3TNR6ffs2xRnE5hiwWzt3b0hncsf5TlfyWhLRNcguAZzErsoPk0JreYQ63LtAGauTcAUu UJkp/tzZUyH+Z5NJ9t2iVXvyNpP2Znk= Received: from mx-prod-mc-01.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-524-0t6-TQvWO66YqMRUsHwbWg-1; Thu, 04 Jul 2024 15:36:52 -0400 X-MC-Unique: 0t6-TQvWO66YqMRUsHwbWg-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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 154F71955F3B; Thu, 4 Jul 2024 19:36:51 +0000 (UTC) Received: from optiplex-lnx.redhat.com (unknown [10.22.9.99]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C2F7B1956046; Thu, 4 Jul 2024 19:36: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 v2 2/2] kbuild: rpm-pkg: introduce a simple changelog section for kernel.spec Date: Thu, 4 Jul 2024 15:36:42 -0400 Message-ID: <20240704193642.1929491-1-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 --- v2: move the changelog stub generator to mkspec (masahiroy) scripts/package/mkspec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index ce201bfa8377..6abbfef700fd 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -28,3 +28,25 @@ cat</dev/null || hostname)} + email="${name}@${buildhost}" +fi + +cat << EOF + +%changelog +* $(LC_ALL=C; date +'%a %b %d %Y') ${name} <${email}> - ${KERNELRELEASE} +- Custom built Linux kernel. +EOF