From mboxrd@z Thu Jan 1 00:00:00 1970 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 58EE8135A69 for ; Thu, 4 Jul 2024 19:36:55 +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=1720121816; cv=none; b=qpt6iCv4kx5BTAgcaL6QaNQZnLM841nVjhcHoMTQh2DOExtcL8xEdEhaEa4Yv+gDCeClgz/j+0wozNxqnyd3Ryd9P8rlgWTya8cUEVLT9T8ZEgIgkTDfRm0GhsAl2zg1peIgGKOiovw4Cc+j/CtRPPPbHMjF2nQOGTRhn8PCdBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720121816; c=relaxed/simple; bh=t9ofOP0ze4UGyGJ8kmTyeN6SMDorzz2HRfkn0CJ0UCc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nuVYOXdzRC4RPvdxsZOfQMoOHT9KUxqvQZfuNEjVPHVCEP3ls0IijjzdOzCRaiSSdSpm7lNxHaceuAwZG9k0O16hV71fmEaDq0QGzL2lCHQGu59tv9QIbjdBziPp9/6jZfsCAyOWyJjkAOaG4WJ2emtjYf/o+0yZHvaeNDR9tHQ= 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=SmW5ikpX; 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="SmW5ikpX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720121814; 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=SmW5ikpXqbnd2lDz1oNCKtIDdjmOrlKR8iAaexTBVHem4YSynmYSSxH3hlR8qn9Laka5Br TwZAdOsaQzFXb+3Yu2cGLrgm8ELlpI2ucXYCRpYMeCkUELBO6q6vP93czSZ9zzleuTFjQi +P8qjrj5IhOPgxm3tB5r45sE1FnEBTo= 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.45.1