Merge ~rafaeldtinoco/ubuntu/+source/kmod:lp1864992-bionic into ubuntu/+source/kmod:ubuntu/bionic-devel

Proposed by Rafael David Tinoco
Status: Merged
Approved by: Rafael David Tinoco
Approved revision: 57586145031c0fdda3a550307030389b3edb3c4e
Merge reported by: Christian Ehrhardt 
Merged at revision: 57586145031c0fdda3a550307030389b3edb3c4e
Proposed branch: ~rafaeldtinoco/ubuntu/+source/kmod:lp1864992-bionic
Merge into: ubuntu/+source/kmod:ubuntu/bionic-devel
Diff against target: 73 lines (+11/-27)
4 files modified
debian/changelog (+10/-0)
debian/patches/series (+0/-1)
debian/rules (+1/-1)
dev/null (+0/-25)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Thadeu Lima de Souza Cascardo Pending
Canonical Server Pending
Review via email: mp+380579@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

(k)rafaeldtinoco@bkmodissue:~$ sudo rm /lib/modules/5.3.0-42-generic/modules.builtin.bin
(k)rafaeldtinoco@bkmodissue:~$ sudo depmod -a -F /boot/System.map-5.3.0-42-generic
(k)rafaeldtinoco@bkmodissue:~$

PPA: https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/lp1864992

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I'm concerned there might be issues with kernel 4.15 in bionic that would change the expected output.

Could you check and confirm that even the oldest kernel (in that case 4.15) is still delivering valid messages on the initial problem "loading a non existing module while aliases don't exist".
If it behaves different with 4.15 the solution for Bionic needs to be more complex :-/

review: Needs Information
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Yep, will do and post it in the bug and mention here for you.

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1864992/comments/43

Done. I think its safe to drop for 4.15 as well.

6ac2880... by Rafael David Tinoco

* Removed --add-udeb from dh_makeshlibs, since libkmod2-udeb does not
  actually contain a library. (Closes: #939779)
  (backported from debian version 26-2)

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Could you give a +1 for this last change as well ? This guarantees that the package actually builds with current dh_makeshlibs. It is based in a change made in Debian at version 26-2.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

As I said on IRC:
for your 4.15 check - don't you need to remove /move the .alias. file?

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Yep, I did:

https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1864992/comments/44

"""

Testing Bionic kernel with the initial situation the bug being dropped said to fix:

(k)rafaeldtinoco@bkmodissue:~$ sudo rm /lib/modules/4.15.0-91-generic/modules.builtin.bin
(k)rafaeldtinoco@bkmodissue:~$ sudo depmod -a -F /boot/System.map-4.15.0-91-generic

ok

(k)rafaeldtinoco@bkmodissue:.../4.15.0-91-generic$ sudo mv modules.alias.bin modules.alias.bin.old

(k)rafaeldtinoco@bkmodissue:.../4.15.0-91-generic$ sudo modprobe hehe
modprobe: FATAL: Module hehe not found in directory /lib/modules/4.15.0-91-generic

and it is also safe to drop it based on previous bug test case
"""

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks for checking +1 now

review: Approve
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

rafaeldtinoco@workstation:~/.../sources/ubuntu/kmod$ git describe --tag
upload/24-1ubuntu3.3

rafaeldtinoco@workstation:~/.../sources/ubuntu/kmod$ git push pkg upload/24-1ubuntu3.3
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 8 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 1.83 KiB | 626.00 KiB/s, done.
Total 14 (delta 10), reused 0 (delta 0)
To ssh://git.launchpad.net/~usd-import-team/ubuntu/+source/kmod
 * [new tag] upload/24-1ubuntu3.3 -> upload/24-1ubuntu3.3

rafaeldtinoco@workstation:~/.../sources/ubuntu/kmod$ dput ubuntu ../kmod_24-1ubuntu3.3_source.changes
Checking signature on .changes
gpg: ../kmod_24-1ubuntu3.3_source.changes: Valid signature from A93E0E0AD83C0D0F
Checking signature on .dsc
gpg: ../kmod_24-1ubuntu3.3.dsc: Valid signature from A93E0E0AD83C0D0F
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading kmod_24-1ubuntu3.3.dsc: done.
  Uploading kmod_24-1ubuntu3.3.debian.tar.xz: done.
  Uploading kmod_24-1ubuntu3.3_source.buildinfo: done.
  Uploading kmod_24-1ubuntu3.3_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

This was accepted by the SRU Team -> merged

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index dc0ecee..a990613 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
1kmod (24-1ubuntu3.3) bionic; urgency=medium
2
3 * d/p/verbose_missing_bin: drop this patch to avoid spurious missing
4 file messages when running depmod -a for the first time in recent
5 kernels (>= 5.3.x) (LP: #1864992)
6 * Removed --add-udeb from dh_makeshlibs, since libkmod2-udeb does not
7 actually contain a library. (Closes: #939779)
8
9 -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Wed, 11 Mar 2020 19:37:06 +0000
10
1kmod (24-1ubuntu3.2) bionic; urgency=medium11kmod (24-1ubuntu3.2) bionic; urgency=medium
212
3 * Add i2c_i801 back to d/modprobe.d/blacklist.conf again due to regressions.13 * Add i2c_i801 back to d/modprobe.d/blacklist.conf again due to regressions.
diff --git a/debian/patches/series b/debian/patches/series
index 2bdb88a..b1dfabc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,6 +1,5 @@
11
2# fixes to be pushed upstream2# fixes to be pushed upstream
3verbose_missing_bin
4check_builtin_kver3check_builtin_kver
54
6# features to be pushed upstream5# features to be pushed upstream
diff --git a/debian/patches/verbose_missing_bin b/debian/patches/verbose_missing_bin
7deleted file mode 1006446deleted file mode 100644
index f2aec1f..0000000
--- a/debian/patches/verbose_missing_bin
+++ /dev/null
@@ -1,25 +0,0 @@
1Description: Report an error when some .bin files do not exist
2Author: Marco d'Itri <md@linux.it>
3Bug-Debian: http://bugs.debian.org/684901
4---
5
6--- a/libkmod/libkmod.c
7+++ b/libkmod/libkmod.c
8@@ -503,7 +503,7 @@ static char *lookup_builtin_file(struct
9
10 idx = index_file_open(fn);
11 if (idx == NULL) {
12- DBG(ctx, "could not open builtin file '%s'\n", fn);
13+ ERR(ctx, "could not open builtin file '%s'\n", fn);
14 return NULL;
15 }
16
17@@ -575,7 +575,7 @@ char *kmod_search_moddep(struct kmod_ctx
18
19 idx = index_file_open(fn);
20 if (idx == NULL) {
21- DBG(ctx, "could not open moddep file '%s'\n", fn);
22+ ERR(ctx, "could not open moddep file '%s'\n", fn);
23 return NULL;
24 }
25
diff --git a/debian/rules b/debian/rules
index 9b5eda8..0812832 100755
--- a/debian/rules
+++ b/debian/rules
@@ -129,7 +129,7 @@ endif
129 dh_strip129 dh_strip
130 dh_compress130 dh_compress
131 dh_fixperms131 dh_fixperms
132 dh_makeshlibs --add-udeb=libkmod2-udeb -- -c4132 dh_makeshlibs -- -c4
133 dh_shlibdeps -- --warnings=7133 dh_shlibdeps -- --warnings=7
134 dh_installdeb134 dh_installdeb
135 touch $@135 touch $@

Subscribers

People subscribed via source and target branches