On Mon, 27 Feb 2017 19:58:52 +0100 Josep Lladonosa <jllad...@gmail.com>
wrote:
> On Sun, 25 Dec 2016 22:52:24 -0500 Joe Public <
> webmas...@thelotterystation.com> wrote:
> > Package: kernel-package
> > Version: 13.018
> > Severity: normal
> >
> > Dear Maintainer,
> >
> > Linux kernel sources for kernel 4.10-rc1 do not include the file
> > REPORTING-BUGS, however make-kpkg kernel_headers seems to depend on the
> > presence of this file.  The recipe fails for kernel_headers due to
> > absence of this file.
> >
> > Creating an empty REPORTING-BUGS file in the kernel source directory
> > resulted in a successful build.
> >
> > -- System Information:
> > Debian Release: stretch/sid
> >   APT prefers testing
> >   APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable')
> > Architecture: amd64 (x86_64)
> > Foreign Architectures: i386
> >
> > Kernel: Linux 4.9.0 (SMP w/8 CPU cores)
> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> >
> > Versions of packages kernel-package depends on:
> > ii  bc               1.06.95-9+b2
> > ii  binutils         2.27.51.20161201-1
> > ii  build-essential  12.2
> > ii  bzip2            1.0.6-8
> > ii  dpkg-dev         1.18.15
> > ii  file             1:5.29-2
> > ii  gettext          0.19.8.1-1
> > ii  kmod             23-1
> > ii  po-debconf       1.0.20
> > ii  xmlto            0.0.28-0.1
> > ii  xz-utils [lzma]  5.2.2-1.2
> >
> > Versions of packages kernel-package recommends:
> > ii  cpio           2.11+dfsg-6
> > ii  docbook-utils  0.6.14-3.3
> > ii  kernel-common  13.018
> > pn  uboot-mkimage  <none>
> >
> > Versions of packages kernel-package suggests:
> > ii  libncurses5-dev [libncurses-dev]  6.0+20161126-1
> > pn  linux-source                      <none>
> >
> > -- no debconf information
> >
> >
>
> I contacted kernel documentation maintainer and said that for 4.10 kernel
> source tree, that file location and its name have changed:
>
> ./REPORTING-BUGS changed to ./Documentation/admin-guide/reporting-bugs.rst
>


Here you can find diff for headers.mk. It adds compatibility for kernels >=
4.10.
As in kernel source tree there is only one file from REPORTING-BUGS and
reporting-bugs.rst, new lines add guard for both in order to copy each one
oly if they exist.


:/usr/share/kernel-package/ruleset/targets$ diff -u headers.mk.old
headers.mk
--- headers.mk.old    2017-03-04 02:50:04.024045713 +0100
+++ headers.mk    2017-03-04 03:35:42.656057547 +0100
@@ -67,7 +67,10 @@
           $(install_file) debian/stamp/conf/vars      $(DOCDIR)/conf.vars
     $(install_file) CREDITS                         $(DOCDIR)/
     $(install_file) MAINTAINERS                     $(DOCDIR)/
+    test ! -f REPORTING-BUGS            || \
     $(install_file) REPORTING-BUGS                  $(DOCDIR)/
+    test ! -f Documentation/admin-guide/reporting-bugs.rst    || \
+    $(install_file) Documentation/admin-guide/reporting-bugs.rst
$(DOCDIR)/
     $(install_file) README                          $(DOCDIR)/
     if test -f README.Debian ;
then                                                 \
            $(install_file) README.Debian
$(DOCDIR)/README.Debian.1st;\

Reply via email to