From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net ([212.227.17.21]:41871 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727888AbgC2PB0 (ORCPT ); Sun, 29 Mar 2020 11:01:26 -0400 From: Reinhard Karcher Subject: Re: Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Date: Sun, 29 Mar 2020 17:01:20 +0200 Message-ID: <3026651.zccbJs9ps7@apollon> In-Reply-To: References: <1966103.4dT7el1ifK@apollon> <2516578.0xqDLvIEN0@apollon> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3391674.7T9O3n7lMA" Content-Transfer-Encoding: 7Bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Linux Kbuild mailing list Cc: 954778@bugs.debian.org This is a multi-part message in MIME format. --nextPart3391674.7T9O3n7lMA Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" There was a blank line missing between the package definitions. Sorry for late testing. -- Best regards Reinhard Karcher --nextPart3391674.7T9O3n7lMA Content-Disposition: attachment; filename="remove_debug_warning.patch" Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; charset="UTF-8"; name="remove_debug_warning.patch" from Reinhard.Karcher reinhard.karcher@gmx.net Creating a Debian package by compiling the kernel make bindeb-pkg without creating debug information creates a warning that no debug package was created This patch excludes the debug package from the control file, if no debug package is created by this configuration Signed-off-by:Reinhard Karcher diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 357dc56bcf30..df1adbfb8ead 100755 =2D-- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -198,6 +198,10 @@ Description: Linux support headers for userspace deve= lopment This package provides userspaces headers from the Linux kernel. These h= eaders are used by the installed headers for GNU glibc and other system librari= es. Multi-Arch: same +EOF + +if is_enabled CONFIG_DEBUG_INFO; then +cat <> debian/control Package: $dbg_packagename Section: debug @@ -206,6 +210,7 @@ Description: Linux kernel debugging symbols for $versi= on This package will come in handy if you need to debug the kernel. It prov= ides all the necessary debug symbols for the kernel and its modules. EOF +fi cat < debian/rules #!$(command -v $MAKE) -f --nextPart3391674.7T9O3n7lMA--