From: Reinhard Karcher <reinhard.karcher@gmx.net>
To: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>
Cc: 954778@bugs.debian.org
Subject: Re: Bug#954778: Patch: Suppress irrelevant warning when generating a debian package
Date: Sun, 29 Mar 2020 16:28:44 +0200 [thread overview]
Message-ID: <3046032.1AMzvzNrTs@apollon> (raw)
In-Reply-To: <CAK7LNAQBypq0QxUafH6f4k4d7wObjycK6eys2NKDZi8_Qdxb4A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
Am Sonntag, 29. März 2020, 15:30 schrieb Masahiro Yamada:
>
> I want you to directly use
>
> if is_enabled CONFIG_DEBUG_INFO; then
> ...
> fi
>
Corrected patch attached
--
Best regards
Reinhard Karcher
[-- Attachment #2: remove_debug_warning.patch --]
[-- Type: text/x-patch, Size: 1260 bytes --]
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 <reinhard.karcher@gmx.net>
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 357dc56bcf30..327ea3c2a785 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -198,7 +198,10 @@ Description: Linux support headers for userspace development
This package provides userspaces headers from the Linux kernel. These headers
are used by the installed headers for GNU glibc and other system libraries.
Multi-Arch: same
+EOF
+if is_enabled CONFIG_DEBUG_INFO; then
+cat <<EOF >> debian/control
Package: $dbg_packagename
Section: debug
Architecture: $debarch
@@ -206,6 +209,7 @@ Description: Linux kernel debugging symbols for $version
This package will come in handy if you need to debug the kernel. It provides
all the necessary debug symbols for the kernel and its modules.
EOF
+fi
cat <<EOF > debian/rules
#!$(command -v $MAKE) -f
next prev parent reply other threads:[~2020-03-29 14:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-24 10:24 Patch: Suppress irrelevant warning when generating a debian package Reinhard Karcher
2020-03-29 12:01 ` Masahiro Yamada
2020-03-29 12:55 ` Reinhard Karcher
2020-03-29 13:30 ` Bug#954778: " Masahiro Yamada
2020-03-29 14:28 ` Reinhard Karcher [this message]
2020-03-29 15:01 ` Reinhard Karcher
2020-03-30 0:33 ` Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3046032.1AMzvzNrTs@apollon \
--to=reinhard.karcher@gmx.net \
--cc=954778@bugs.debian.org \
--cc=linux-kbuild@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox