Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5291537rwl; Wed, 28 Dec 2022 16:30:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXuq6X/t/is63y74JepYeKQ3OhR7LhxrZmvwz2Kn6aLs8HIihtyCtutq5uV4dkAN1RaNdpqw X-Received: by 2002:a05:6402:d5c:b0:46b:444b:ec40 with SMTP id ec28-20020a0564020d5c00b0046b444bec40mr21965222edb.15.1672273823919; Wed, 28 Dec 2022 16:30:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672273823; cv=none; d=google.com; s=arc-20160816; b=KDUZsGZNAwTu6+/KRfsIYWq5aGTFG0b2dcHWoLj25HDJTcRkh5horGH3FnXX2Zuz7r YQEgEKyOhrmHy2Qndk5OSGER7T3TXiFAeWW/uL+RHw61pjARLJPfeZqNnJuIQaaEow/K mkpRqoayjBOuLUnLJT9E1/LfQ3OFo9d2saP3E4Ojdck/ZSl+cCn5d4jjRZdTKRSYKolk OaRxkO7Yz9yuZIeNOD/kI3L2XsGan/somNP5wDhFKwQ661566i6Cr12uyYGjYYD/WSC5 LZxIhXTn9x5ZRFLJOpdzIpp1GruJniGkOgwepBPzCm+KNrD75XfnkibzZnoAFGUnMfuj DZaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ilk2uw0hsk+HU6dFDmprrTtGQ/eSAFhBaNVOgvBEgzU=; b=MFWQir4OhcqmwGJEk2rqwB0sBQ18Zs0fBzxmE/6F2JUaUdda6IeCOAtUc2L5L1iAGZ R3k5zY8D9h9plzDCdlQbJA1YylPpjPsyY5hlNWvwJE9bzw5it7xonoQWnd3o8ME+/ai8 fZwr7ZCeRc4nWuSIRJvpJDN5rFcFiPPEDwvfi0/Baly4ayE76xNDYAemwE/b9J0faAz0 PjjBwt8tQPzqSczYaTrbbA+ReTu5dlBdq6Qh5tLJozPGSJujaKXfNlT7ww3cbiG4ZVDo 2B34Or6JJOLpIXFuOfuVaAx4i01quqPgX0rcEcCLPpKB53MOrWh/WGPqIstN+d9uJebk wFUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sbZJST4q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd12-20020a1709069b8c00b0082b7e633997si15408686ejc.434.2022.12.28.16.30.08; Wed, 28 Dec 2022 16:30:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sbZJST4q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbiL2A0p (ORCPT + 62 others); Wed, 28 Dec 2022 19:26:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbiL2A0l (ORCPT ); Wed, 28 Dec 2022 19:26:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44519FCE; Wed, 28 Dec 2022 16:26:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 79524615FC; Thu, 29 Dec 2022 00:26:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42548C433EF; Thu, 29 Dec 2022 00:26:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672273598; bh=nmAr+L0kfJbSocsWpY1frx3crxtESMYLmdBlJdum37w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sbZJST4qxzwbpgTahPc1g3HxfoOnBaq5gmoLL6yCMuTyKKw9zTt9bLhWdGhGLKVly M8/TL3EGVZa5p0KAVSmQLJNvRULw3bbtqnvBjyV3U0VJUOj9sjTiK76A12tBYpLRyT IzxUeRQ4xyDeTJsg/5seThrOSRMUq7V6k0x/PCmi9bwRE87U12tyXIcawKcr7mKvHh QvXHVYiZyuDu/03RqQC6dKKJK5O+7Fm3tr1a2gcKVeeOHKI6NeFgAXGmiM83WXUnBc crGuaGYf8m0TxET0tU11WdgD7rUTneoFb9OmV2yptOVg3R83nysFtKukDXntV9tL/U qg9D9MDcz2+tw== Date: Wed, 28 Dec 2022 17:26:36 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Gordeev , Guoqing Jiang , Ivan Vecera , Jonathan Toppins , Nick Desaulniers , Nicolas Schier , =?iso-8859-1?B?zfFpZ28=?= Huguet Subject: Re: [PATCH] kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires Message-ID: References: <20221228191014.659746-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221228191014.659746-1-masahiroy@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 29, 2022 at 04:10:14AM +0900, Masahiro Yamada wrote: > Guoqing Jiang reports that openSUSE cannot compile the kernel rpm due > to "BuildRequires: elfutils-libelf-devel" added by commit 8818039f959b > ("kbuild: add ability to make source rpm buildable using koji"). > The relevant package name in openSUSE is libelf-devel. > > Add it an alternative package. > > BTW, if it is impossible to solve the build requirement, the final > resort would be: > > $ make RPMOPTS=--nodeps rpm-pkg > > This passes --nodeps to the rpmbuild command so it will not verify > build dependencies. This is useful to test rpm builds on non-rpm > system. On Debian/Ubuntu, for example, you can install rpmbuild by > 'apt-get install rpm'. > > NOTE1: > Likewise, it is possible to bypass the build dependency check for > debian package builds: > > $ make DPKG_FLAGS=-d deb-pkg > > NOTE2: > The 'or' operator is supported since RPM 4.13. So, old distros such > as CentOS 7 will break. I suggest installing newer rpmbuild in such > cases. > > Link: https://lore.kernel.org/linux-kbuild/ee227d24-9c94-bfa3-166a-4ee6b5dfea09@linux.dev/T/#u > Fixes: 8818039f959b ("kbuild: add ability to make source rpm buildable using koji") > Reported-by: Guoqing Jiang > Signed-off-by: Masahiro Yamada Reviewed-by: Nathan Chancellor > --- > > scripts/package/mkspec | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/package/mkspec b/scripts/package/mkspec > index dda00a948a01..adab28fa7f89 100755 > --- a/scripts/package/mkspec > +++ b/scripts/package/mkspec > @@ -51,7 +51,8 @@ sed -e '/^DEL/d' -e 's/^\t*//' < URL: https://www.kernel.org > $S Source: kernel-$__KERNELRELEASE.tar.gz > Provides: $PROVIDES > -$S BuildRequires: bc binutils bison dwarves elfutils-libelf-devel flex > +$S BuildRequires: bc binutils bison dwarves > +$S BuildRequires: (elfutils-libelf-devel or libelf-devel) flex > $S BuildRequires: gcc make openssl openssl-devel perl python3 rsync > > # $UTS_MACHINE as a fallback of _arch in case > -- > 2.34.1 >