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
1diff --git a/debian/changelog b/debian/changelog
2index dc0ecee..a990613 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,13 @@
6+kmod (24-1ubuntu3.3) bionic; urgency=medium
7+
8+ * d/p/verbose_missing_bin: drop this patch to avoid spurious missing
9+ file messages when running depmod -a for the first time in recent
10+ kernels (>= 5.3.x) (LP: #1864992)
11+ * Removed --add-udeb from dh_makeshlibs, since libkmod2-udeb does not
12+ actually contain a library. (Closes: #939779)
13+
14+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Wed, 11 Mar 2020 19:37:06 +0000
15+
16 kmod (24-1ubuntu3.2) bionic; urgency=medium
17
18 * Add i2c_i801 back to d/modprobe.d/blacklist.conf again due to regressions.
19diff --git a/debian/patches/series b/debian/patches/series
20index 2bdb88a..b1dfabc 100644
21--- a/debian/patches/series
22+++ b/debian/patches/series
23@@ -1,6 +1,5 @@
24
25 # fixes to be pushed upstream
26-verbose_missing_bin
27 check_builtin_kver
28
29 # features to be pushed upstream
30diff --git a/debian/patches/verbose_missing_bin b/debian/patches/verbose_missing_bin
31deleted file mode 100644
32index f2aec1f..0000000
33--- a/debian/patches/verbose_missing_bin
34+++ /dev/null
35@@ -1,25 +0,0 @@
36-Description: Report an error when some .bin files do not exist
37-Author: Marco d'Itri <md@linux.it>
38-Bug-Debian: http://bugs.debian.org/684901
39----
40-
41---- a/libkmod/libkmod.c
42-+++ b/libkmod/libkmod.c
43-@@ -503,7 +503,7 @@ static char *lookup_builtin_file(struct
44-
45- idx = index_file_open(fn);
46- if (idx == NULL) {
47-- DBG(ctx, "could not open builtin file '%s'\n", fn);
48-+ ERR(ctx, "could not open builtin file '%s'\n", fn);
49- return NULL;
50- }
51-
52-@@ -575,7 +575,7 @@ char *kmod_search_moddep(struct kmod_ctx
53-
54- idx = index_file_open(fn);
55- if (idx == NULL) {
56-- DBG(ctx, "could not open moddep file '%s'\n", fn);
57-+ ERR(ctx, "could not open moddep file '%s'\n", fn);
58- return NULL;
59- }
60-
61diff --git a/debian/rules b/debian/rules
62index 9b5eda8..0812832 100755
63--- a/debian/rules
64+++ b/debian/rules
65@@ -129,7 +129,7 @@ endif
66 dh_strip
67 dh_compress
68 dh_fixperms
69- dh_makeshlibs --add-udeb=libkmod2-udeb -- -c4
70+ dh_makeshlibs -- -c4
71 dh_shlibdeps -- --warnings=7
72 dh_installdeb
73 touch $@

Subscribers

People subscribed via source and target branches