Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5089841imb; Thu, 7 Mar 2019 07:32:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwQISYYlpfxy7HWA3T44oFw7RY8kpw+jjg+SO/1zUwPW/dPCphOykeB/bs16aaT4rwzP2C7 X-Received: by 2002:a63:5362:: with SMTP id t34mr11707012pgl.81.1551972741774; Thu, 07 Mar 2019 07:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551972741; cv=none; d=google.com; s=arc-20160816; b=um9k5YNJs0DA3gB4qMtLYEgHoYDxSP5nkyCJad37zM46Hr3id1lb61I1raXJsj2aFH WbFayT8MG1/DBOUBtwskFKyJcq9tv8wsfLeNK9nTYhvAHnGLjDxXeCb/3COlmKqMuW29 u34h1RCsFeFJ5Y9SiWrm64eE8apmf65/hFCec3Y/hWWktU7HWDm1lLXPJlAh+g8UFSew 2D3VMw1+pMcNBQ4M3nwIamV8XX9lZYO3uGHICljXns+TDWXDQzNCK98DmuK6CBsP/wcR KEnq0ghmOFrNblxEC5w3Wilp8QMzMubOrxESXn1DG1wXsIh3isCMHbVzqPABiuWcwN9E gAOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=VXjijWoWOc6nm2L+VzQ8XNss08/fJzXp8GPB0vQesmo=; b=EMGLZU3RVz4d6PjBWGAuoX9rBYbMFtludWFhkiuUjFfsiwzhKliMKTwzcyIlZdTAZi VA3lOVQHrudiD7CqyvHxVM/S7YUvxO31JiGHaTTOhsVg68AIoCOAo7eaLgt69APPoVGG WlX+wSV3IkJHdovyB6QD4XLki15/NM0BwYuBGIMg3+QVokY7HLDg7yNW29LJZXSS/MRe qNA7YFlSRwFye46IjvB8vZCDGRBLi1nI5v2/BIQm6rNiCV8P7YhwtMP0eiWNKXb65FpR ZnCadu41skRYq85env2bJ2JvBJ1qzlhmXhqba7OLjwEu8yTBNGQ96NJM/7Fi0Q5q1zen ZMvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=X+BPx5uH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m7si4063711pgp.187.2019.03.07.07.32.06; Thu, 07 Mar 2019 07:32:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=X+BPx5uH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726568AbfCGPae (ORCPT + 99 others); Thu, 7 Mar 2019 10:30:34 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:41463 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfCGPad (ORCPT ); Thu, 7 Mar 2019 10:30:33 -0500 Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x27FUQt4008577; Fri, 8 Mar 2019 00:30:27 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x27FUQt4008577 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1551972627; bh=VXjijWoWOc6nm2L+VzQ8XNss08/fJzXp8GPB0vQesmo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=X+BPx5uH+HXV5HukExH1Zbq1M6Kd+KzNBg7nr96fTAkFPyY6d7XWyo5FLXIQupsS3 Fq+CriOCO0cEwaSdXO3MxZdrAguI5oND8dalMSA5pmaH6Hxg2cClQtxImlkao1OEKv mS3d/W0hDmX75qME9b6hdPxzYdwLaoH49rXn/pswLPf+Z8UL5QPZtgS7EIjmvZF688 IQLHEN+komIZ+xlRnh8i2iKTZhUAYsZR0P8t7vL3rA3y+f4DHJvzVReK/NZFVLhDmJ wAYdXQUrw/LKWq6JY+kTvYFq2CUq9noZr6GYE8jV3iRbrUrcpStTg0lUpsO3Mm8kJ3 rjKmNeODfInbQ== X-Nifty-SrcIP: [209.85.221.179] Received: by mail-vk1-f179.google.com with SMTP id l136so3801542vke.2; Thu, 07 Mar 2019 07:30:27 -0800 (PST) X-Gm-Message-State: APjAAAU9AZJftJBwltt+8ltNPKDO68pfnwWc611BEW1Kji0mBti9RYYv iwDlsNtYllIfCuqJmuKJoJx09CzCV/g9PeD4xSY= X-Received: by 2002:a1f:9350:: with SMTP id v77mr6207401vkd.84.1551972626100; Thu, 07 Mar 2019 07:30:26 -0800 (PST) MIME-Version: 1.0 References: <20190221215901.23970-1-ar@cs.msu.ru> <20190221215901.23970-3-ar@cs.msu.ru> In-Reply-To: <20190221215901.23970-3-ar@cs.msu.ru> From: Masahiro Yamada Date: Fri, 8 Mar 2019 00:29:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/package/mkdebian: expose KCONFIG_CONFIG to debian/rules To: Arseny Maslennikov Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , Ben Hutchings , Riku Voipio Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 22, 2019 at 7:21 AM Arseny Maslennikov wrote: > > If KCONFIG_CONFIG is passed to `make deb-pkg` as a makeflag or > environment variable, the source tarball produced contains whatever > specified by that variable instead of the usual `.config'. > > While `make deb-pkg' yields a correct Debian binary package (at least > on amd64), the generated source package's debian/rules does not pass > KCONFIG_CONFIG to make(1), thus rendering the source package unable to > be rebuilt. > > Steps to reproduce the kind of failure being fixed: > 1) Produce a source and binary package with: > % KCONFIG_CONFIG=my.config make deb-pkg > 2) In the parent directory: > % dpkg-source -x linux-*.dsc > 3) In the unpacked source directory: > % debuild -i -us -uc > > Here is an excerpt from an example output of `debuild -i -us -uc': > > make[2]: *** No rule to make target '.config', needed by 'kernel/config_data.gz'. Stop. > make[1]: *** [Makefile:1043: kernel] Error 2 > make[1]: Leaving directory '/home/ar/linux-kernel/deb/linux-5.0.0-rc5-tks-gitd6ff78479ec5-57-5.0.0-rc5-tks-gitd6ff78479ec5-57' > make: *** [debian/rules:4: build] Error 2 > dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 > debuild: fatal error at line 1182: > dpkg-buildpackage -us -uc -ui -i failed I am not convinced with this patch. People would be upset if they got a source package and they did not find the .config in the standard location. It is difficult to notice the .config has been moved to somewhere until they check debian/rules. Why do we need to create such a strange package? > Signed-off-by: Arseny Maslennikov > --- > scripts/package/mkdebian | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian > index edcad61fe3cd..130d3f6696eb 100755 > --- a/scripts/package/mkdebian > +++ b/scripts/package/mkdebian > @@ -207,10 +207,12 @@ cat < debian/rules > > build: > \$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \ > + KCONFIG_CONFIG=${KCONFIG_CONFIG} \ > KBUILD_BUILD_VERSION=${revision} KBUILD_SRC= > > binary-arch: > \$(MAKE) KERNELRELEASE=${version} ARCH=${ARCH} \ > + KCONFIG_CONFIG=${KCONFIG_CONFIG} \ > KBUILD_BUILD_VERSION=${revision} KBUILD_SRC= intdeb-pkg > > clean: > -- > 2.20.1 > -- Best Regards Masahiro Yamada