Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp928233imp; Thu, 21 Feb 2019 14:20:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IZpq5IUk8Dn6+QebeR/7TIxkWF2ryoiZhvmMlQ9O5Dvg1dqFOwY1Clu+e4dfoi/zk+Lw6WX X-Received: by 2002:a17:902:b709:: with SMTP id d9mr828302pls.83.1550787613586; Thu, 21 Feb 2019 14:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550787613; cv=none; d=google.com; s=arc-20160816; b=PboK+BacDBhfYjeJbRap2vyU9ko68giC9Y4BRGHR7/vpn/RWDm0xfeb83et3ysrQbe hJYMjOaplP1RF1wRU3og5HDo3SwEJ/yhwuDMiIs5YBHyQdkbjsybJjodHo2Ke6A1ilsH cPCSXALgXyLc9E23JfVphJXnAhiKqP848SrDgK7xLGbgVCKkyx8cwXJDgwfrUUpPoBgt XvUWYtFgu+kk2GgT5zTJN1eKglEPpRzBSp9ExGhyDWRG89Fwa1Z+OTKNL4ARNaWhY/J1 2SdPUBeJyMi/g5K70z69oTg0Lj+og7t9EKONZZqOUgGRvbmTZdWNkWDfAY9yHAv78eFO sGCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from :dkim-signature; bh=SXTs9j7bjGPwnQlQTodGJ6m2ghylAbZ8OqB+UBcpj8M=; b=chxq9c59LJA6qcnSJdSgt4i66clVDjaPQWvoxht2+bQ/VwMECyCR60lioh4CQTWFHX 0T882iTKXV4ThpsZYtT8/dKsU4GlGWDj45XmVgRvE2rL2xa4F1bwVf9TbmKuBJCAwrnY 2UuAD7HUJZ6QET+Kq5TKgLDABXXXR/Vwsv938JvuFc+tBIb5udG7f1j+vA0V8GtXzZ8Q e4mQCWAA/fRdItPMSM8GmJ5RNoE6z0oa4jPNRxNtM1BIDz1GgdE0c0DWwTigoRuC5fLG KXHFUZIQNY+E7i6v2AoDRP/JhooUUku7Q8uWEXBuirHHGb6qzdvN1VXr2IiWY9iItcid 2IHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b=MBsd3o3S; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si56103plr.145.2019.02.21.14.19.58; Thu, 21 Feb 2019 14:20:13 -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=fail header.i=@cs.msu.ru header.s=dkim header.b=MBsd3o3S; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbfBUWTd (ORCPT + 99 others); Thu, 21 Feb 2019 17:19:33 -0500 Received: from imap.cs.msu.ru ([188.44.42.39]:59130 "EHLO mail.cs.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726893AbfBUWTd (ORCPT ); Thu, 21 Feb 2019 17:19:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.msu.ru; s=dkim; h=Subject:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SXTs9j7bjGPwnQlQTodGJ6m2ghylAbZ8OqB+UBcpj8M=; b=MBsd3o3SDi87jLQLudYHZ6HTBg ytv3HBc2rsnH0pG+R4duyOC7oXTpyPRPbrb6JJFqZlAqyz5OeGj/HH6kVhm9u7/nw1/QidzmcXpjI 2iG8s2xMUj2BrFlOAPq422DVd0OoQnf8i3pVK3W/vInVnEnnO+7j5aFSY1T7t/pukcFql4cK8nlOC CIL3MNNuYIzj1LmLFIjAuhUfCDSr966qu0DkLcKkanAnot/Y2dsi8d1XosgNcYZiPlTy+OVFml18s UE65qzAGZCtLDMLhv3GH8ED1rWG2tWsu4DDbmevZ/ZPnQRVaGVylFchFeoLmQZ6VYKmUT4uV6oOhD GxsAp79g==; Received: from [37.204.119.143] (port=58724 helo=localhost.localdomain) by mail.cs.msu.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gwwNm-0004BO-Ka; Fri, 22 Feb 2019 00:59:54 +0300 From: Arseny Maslennikov To: Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arseny Maslennikov , Ben Hutchings , Riku Voipio Date: Fri, 22 Feb 2019 00:58:59 +0300 Message-Id: <20190221215901.23970-3-ar@cs.msu.ru> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190221215901.23970-1-ar@cs.msu.ru> References: <20190221215901.23970-1-ar@cs.msu.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 37.204.119.143 X-SA-Exim-Mail-From: ar@cs.msu.ru X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.cs.msu.ru X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_ALL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Subject: [PATCH] scripts/package/mkdebian: expose KCONFIG_CONFIG to debian/rules X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail.cs.msu.ru) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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