Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5091997imb; Thu, 7 Mar 2019 07:35:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxB3Kn0dUzgU0qh7TFcCZToDsp0ALnavuBguEOT650Cn2JucUaqbsKwOh/bdSFMRk3UMdg7 X-Received: by 2002:a65:6149:: with SMTP id o9mr11880479pgv.315.1551972900919; Thu, 07 Mar 2019 07:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551972900; cv=none; d=google.com; s=arc-20160816; b=t1iZjkX/mbo3ceT2Tdd7SLmc1jkKuOXIbYOaAq38ote5T3Xnzp0VdhbtrpUi+IxsRj SSBh4deJq2XZGPs2ejrhWASpzcxe1/iMo3B31SPIExT8b0YOdXf83f6taObUZEbd7mn1 vhKaWAU5ibRp4C3s5bxjuroJ2C7UuvRnF8/5H2VlLhhto2+QLHJWPIYDdpWAMT8/3Hdv KROqHDOGCs4k2L1Dbg6MKhV/vWaIdHapQuRQWinyDNEUP54c3VPo6g21Y+tpZrzXTuxk AYoRrM3kpiOeAWXbGJJOHh+FRr8WXd3nQWjPr1PVHbefJ6cY8orKuUh7D6YvzSMU1Pbu /9nA== 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=YfjIYW+HIpiORMy8KChbuYS376y1l9RYm9Nuz1YEA7o=; b=huYbgCu9uA/5q8QHp5joHwLyiUNO7bZDnP5swecTOK24MDL8XbqO/qiO2hw6wysKJR BG920NdSbAe04qPzVRxbzrSEBHFVP6HOZGRCiSAI1BqeXpySHmib3vxJqz5s5YrrZNaN qj0NGvOvjgvMvGoU6TF3V/wnOHxuuKUMd1G80RA90XN4OsiDs5jjIvIQK8bvfejVP01s 1bpuGgINI+lkIWEtvRxccK3DQafQWCcRISEsZQSGMLKHX/3FaMBWNy0EfwI61XqzCIF+ ySkmwu6P82LXJZYTVvha84eH+I38OCSfrRhM/mAlQcw249ZUUtj4fbsBrx2uNo/2MnXE 8aTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=tJoPwnix; 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 l7si4558297plb.366.2019.03.07.07.34.45; Thu, 07 Mar 2019 07:35:00 -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=tJoPwnix; 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 S1726463AbfCGPdK (ORCPT + 99 others); Thu, 7 Mar 2019 10:33:10 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:65019 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbfCGPdJ (ORCPT ); Thu, 7 Mar 2019 10:33:09 -0500 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x27FWmWD000306; Fri, 8 Mar 2019 00:32:48 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x27FWmWD000306 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1551972769; bh=YfjIYW+HIpiORMy8KChbuYS376y1l9RYm9Nuz1YEA7o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tJoPwnixyySnw82kFgsPg7NTXztsYi4mXUS6Gh5EQOVYgqV3kIEsPIlWkLcsYKcHK X4zJurMsZ3NbMx5QWuT1e0GbKPwQSuOEdZyutWoXfL0HDVtOVCIRiGpF16tMCTbh4D 3EtrvGGNyDvELnqVNpXXTJjghx9aiHUH3V7piHP77vme+Xvg3TnRNH3AmCkuNsQI0G aXa6Bi7S5lpz85n4Acjvtvlbeo88HoavxP1Q58QnsvBAGe72ksCPcBLM7YBT4qm+oG JYCOzkN3dBzm79vOdBe4ot9q7Zhy0dmhcvQZzTlRbjzvDe0imzKMkI+6KAdW9YKjSC hzaUNlEuwM48A== X-Nifty-SrcIP: [209.85.217.51] Received: by mail-vs1-f51.google.com with SMTP id r201so4711340vsc.11; Thu, 07 Mar 2019 07:32:48 -0800 (PST) X-Gm-Message-State: APjAAAW9Kj4dVO3jbvUhkI1CRr0+3UHyspwgfAMQHtfMi69TiRQ1IvDk 84S8uO7TDXuLZwSZIYugtr4PD2zCBpQ+tzWCoxg= X-Received: by 2002:a05:6102:18f:: with SMTP id r15mr7143871vsq.215.1551972767661; Thu, 07 Mar 2019 07:32:47 -0800 (PST) MIME-Version: 1.0 References: <20190221215901.23970-1-ar@cs.msu.ru> In-Reply-To: <20190221215901.23970-1-ar@cs.msu.ru> From: Masahiro Yamada Date: Fri, 8 Mar 2019 00:32:11 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] scripts/package/Makefile: put proper config in source tarball To: Arseny Maslennikov Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , 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:19 AM Arseny Maslennikov wrote: > > It is widely known that one can build a kernel without a .config in the > source tree "without a .config in the source file" means KCONFIG_CONFIG will probably contain '..' or absolute path. ex1) KCONFIG_CONFIG=../my_dir/.config ex2) KCONFIG_CONFIG=/absolute/pass/to/my/.config > by setting KCONFIG_CONFIG equal to the actual configuration > file path. > > When making a *-pkg target, make(1) prepares a source tarball and tries > to pack `.config' in there regardless of the value of KCONFIG_CONFIG, > failing spectacularly if .config is absent and packing the wrong config > if it exists. > Let's fix that. Did you notice the log 'Removing leading ...' from tar for case ex1), ex2) ? masahiro@grover:~/ref/linux$ make -j8 KCONFIG_CONFIG=../.config deb-pkg make clean /bin/bash ./scripts/package/mkdebian TAR linux-5.0.0+.tar.gz tar: Removing leading `../' from member names ... Even if I apply 3/3, it will produce a broken source package since the tar will rip off the leading directory path, then it mismatches to KCONFIG_CONFIG recorded in debian/rules. A simple case like KCONFIG_CONFIG=my.config will work, but I am not convinced with 3/3. > Signed-off-by: Arseny Maslennikov > --- > scripts/package/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/package/Makefile b/scripts/package/Makefile > index 453fecee62f0..100a0d28ad25 100644 > --- a/scripts/package/Makefile > +++ b/scripts/package/Makefile > @@ -27,7 +27,7 @@ KDEB_SOURCENAME ?= linux-$(KERNELRELEASE) > KBUILD_PKG_ROOTCMD ?="fakeroot -u" > export KDEB_SOURCENAME > # Include only those top-level files that are needed by make, plus the GPL copy > -TAR_CONTENT := $(KBUILD_ALLDIRS) .config .scmversion Makefile \ > +TAR_CONTENT := $(KBUILD_ALLDIRS) $(KCONFIG_CONFIG) .scmversion Makefile \ > Kbuild Kconfig COPYING $(wildcard localversion*) > MKSPEC := $(srctree)/scripts/package/mkspec > > -- > 2.20.1 > -- Best Regards Masahiro Yamada