Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5676551rwl; Thu, 29 Dec 2022 00:46:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXvugu1XRr8ZLA832fH6YqqqJJ5zz3DzZZZVEYvP/0Vad/WAy3vlLihbpB6WGsvqdDpQuQuD X-Received: by 2002:a17:902:a717:b0:18f:ac9f:2a02 with SMTP id w23-20020a170902a71700b0018fac9f2a02mr27168610plq.10.1672303612216; Thu, 29 Dec 2022 00:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672303612; cv=none; d=google.com; s=arc-20160816; b=01SYclYLKv9E5oLx2/qnqPj3zXquOfZgaHpjjjPMNofOU/TEOKh6igjnZw2negPVyP b3iTAAYjGLeLfhxNgQktEtNntfsVyYasi698phWS0LT9bBczA1xnuewcg17dmrSB15Zp 3FVSdPt709rKpI1CQgVgEj0lZlai4bSwEvE+/XLd7djsM82zxoJ0z4O1P+Ym6X4C9WDx pjXObQwE/Z7VEoklnhR7XV0ffCVe0APfgz5uG18TDzHWMZhIRSGG9I6qmbIXCpxlO+Va voWqJtEfLvlA54tMrJngqMLVXXHiCicKAR9occfDLrwKqhi+9swuOOR9jQRsj9D9ptH4 aFCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5c2KVd3iEyoCh8u6V32NAXnUsG2MphtjjNVwzV1t5TE=; b=SVeQUY4odmQED9D5V65AH+FWHVDtbMTubl/CKT9IR8Bjy1W9t6IMCpDcCY8BAoFRlI GN6A9w15pKz+VR15BxeX0+kzNDQ6/4IymAtuf5/7IgCgK8752lGQl7EkyGB2SejiJZuu 7AneRwcwjDWHo+z09UHrQ0FpwPzl2HQAuFVdMLfNPz0Et3ffzhZeE+HeoQJuQh9HG3nL FtWMATBymRhF7FLabZWV8nWtGJRtNprOssbdzS8s0ls4lqlrYLBkh3uW3j45WKVgt42O RrnB11bDpkrdHwX5b5+2IljuGIReLtvXcCd72W5f9f3r4RgvGXin/iU8Evcsw3A3bQQS d6uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UrW3mnbm; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170902d2c800b0018962fa3890si1693168plc.601.2022.12.29.00.46.44; Thu, 29 Dec 2022 00:46:52 -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=@redhat.com header.s=mimecast20190719 header.b=UrW3mnbm; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232990AbiL2IJD (ORCPT + 62 others); Thu, 29 Dec 2022 03:09:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiL2IJB (ORCPT ); Thu, 29 Dec 2022 03:09:01 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62BABE6 for ; Thu, 29 Dec 2022 00:08:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672301293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5c2KVd3iEyoCh8u6V32NAXnUsG2MphtjjNVwzV1t5TE=; b=UrW3mnbmNyIERHU5vhIo53CKGSB5c8/swbkUc4xAh0pA97lKTCnbxn1Pq0uYD5104DBcTq dwIp/odem1A3LHKcxWHgXh4jTabweliDW2d8wT15sdn7wek4Xa7V08pjXEFTzcbQu2A9j3 xc+fTMYDQs7+6qE/dvYZLWB4ZSV3uOA= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-434-Iu67iDWJOhyq40nAB5yowA-1; Thu, 29 Dec 2022 03:08:12 -0500 X-MC-Unique: Iu67iDWJOhyq40nAB5yowA-1 Received: by mail-qv1-f69.google.com with SMTP id od14-20020a0562142f0e00b0051a47174c4eso9625350qvb.10 for ; Thu, 29 Dec 2022 00:08:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5c2KVd3iEyoCh8u6V32NAXnUsG2MphtjjNVwzV1t5TE=; b=2KrszHFIB0tByDfV9vLFF9Jr9xkshq6YUR6fJwAd8P73e4br7yWG9jq3s9dF/EPd1t dgmsA8q5q6R9SfZst0l8ydsNDT7dYUF215zlqz7KP45fNbDuGzzywLSj9N22lxjYmH3p 1TsuJdZ5khDhfB8Np84YzT/io7raUY5+G1Fw2zTT77mot0nab5CI1LgcCamG0cw/nMLP UJ2uxKchdj44THK1HPj8KVAUkAzdNB2QDJX4Sst9DPdxuEas62WGNxBjdxfPxE1ZGPy9 RG2cDxAx2FbW2i1fYCGNlJzz5uGxDVoJQJsOp/VoNGKcUcIBvyunHuB1mzcZb0UZ5851 HMMg== X-Gm-Message-State: AFqh2kqf3r6MFBb85fAaeczvoHzyuyCrlgwqXD4f6maSCs2+OYwP5EUM dphn9NhJr65BkbHny7ZW/ZmVRcWaIUsksPXTS3XgV3/q0wLIqMu1KX+NMAwtydvudS1sJOofoXl icf8vSgt7q9zOOWiawQkoz0f5 X-Received: by 2002:ac8:74d6:0:b0:3a5:2644:bcd2 with SMTP id j22-20020ac874d6000000b003a52644bcd2mr37756765qtr.8.1672301292046; Thu, 29 Dec 2022 00:08:12 -0800 (PST) X-Received: by 2002:ac8:74d6:0:b0:3a5:2644:bcd2 with SMTP id j22-20020ac874d6000000b003a52644bcd2mr37756749qtr.8.1672301291837; Thu, 29 Dec 2022 00:08:11 -0800 (PST) Received: from [192.168.33.110] (c-73-19-232-221.hsd1.tn.comcast.net. [73.19.232.221]) by smtp.gmail.com with ESMTPSA id k20-20020ac84754000000b003a527d29a41sm11180993qtp.75.2022.12.29.00.08.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Dec 2022 00:08:11 -0800 (PST) Message-ID: <0357df64-54ad-06fd-031e-66350cb03d54@redhat.com> Date: Thu, 29 Dec 2022 03:08:10 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexander Gordeev , Guoqing Jiang , Ivan Vecera , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , =?UTF-8?B?w43DsWlnbyBIdWd1ZXQ=?= References: <20221228191014.659746-1-masahiroy@kernel.org> Content-Language: en-US From: Jonathan Toppins In-Reply-To: <20221228191014.659746-1-masahiroy@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 12/28/22 14:10, 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 Acked-by: Jonathan Toppins