Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #66591

Bug#954778: Patch: Suppress irrelevant warning when generating a debian package

From Reinhard Karcher <reinhard.karcher@gmx.net>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#954778: Patch: Suppress irrelevant warning when generating a debian package
Date 2020-03-24 11:30 +0100
Message-ID <zNOYO-553-23@gated-at.bofh.it> (permalink)
References <zNtAZ-it-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Creating a Debian package by compiling the kernel using 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.

By making a contribution to this project, I certify that:
The contribution was created in whole or in part by me and I have the right to
submit it under the open source license indicated in the file.
Signed-off-by: Reinhard Karcher <reinhard.karcher@gmx.net>
---
The condition to include the debug package is copied from the file
builddeb in the same directory.

diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 357dc56bcf30..1673b9f84804 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 [ -n "$BUILD_DEBUG" ] ; 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

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#954778: linux-image-amd64: if using make bindeb-pkg there is a warning about the missing debug package Reinhard Karcher <reinhard.karcher@gmx.net> - 2020-03-23 12:40 +0100
  Processed: Re: Bug#954778: linux-image-amd64: if using make  bindeb-pkg there is a warning about the missing debug package "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-03-24 00:20 +0100
  Bug#954778: linux-image-amd64: if using make bindeb-pkg there is a warning about the missing debug package Ben Hutchings <ben@decadent.org.uk> - 2020-03-24 00:20 +0100
  Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Reinhard Karcher <reinhard.karcher@gmx.net> - 2020-03-24 11:30 +0100
    Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Masahiro Yamada <masahiroy@kernel.org> - 2020-03-29 14:30 +0200
      Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Reinhard Karcher <reinhard.karcher@gmx.net> - 2020-03-29 15:00 +0200
        Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Masahiro Yamada <masahiroy@kernel.org> - 2020-03-29 15:40 +0200
          Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Reinhard Karcher <reinhard.karcher@gmx.net> - 2020-03-29 16:40 +0200
          Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Reinhard Karcher <reinhard.karcher@gmx.net> - 2020-03-29 17:10 +0200
            Bug#954778: Patch: Suppress irrelevant warning when generating a debian package Masahiro Yamada <masahiroy@kernel.org> - 2020-03-30 02:40 +0200
  Bug#954778: marked as done (linux-image-amd64: if using make  bindeb-pkg there is a warning about the missing debug package) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-06-22 11:30 +0200

csiph-web