dkms mkdeb fails: Can't find package

Bug #1729051 reported by martin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dkms (Debian)
Fix Released
Unknown
dkms (Ubuntu)
Fix Released
Medium
Unassigned
Artful
Invalid
Undecided
Unassigned

Bug Description

For some reason, the Debian version of dkms mkdeb tries to generate a .deb package with the current arch as a suffix in its name, instead of 'all'. However, since the control file wasn't properly set up, the .deb file will have the 'all' suffix and dkms mkdeb will fail.

This bug is also present in Ubuntu. I added a patch to the original Debian bug report, here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832558

but since the original bug report was made about a year ago and nobody cared, I'm hoping that someone will at least fix this for Ubuntu.

The patch looks like this:

--- a/etc/dkms/template-dkms-mkdeb/debian/control 2017-10-31 14:40:41.690069116 -0300
+++ b/etc/dkms/template-dkms-mkdeb/debian/control 2017-10-31 14:41:12.137973994 -0300
@@ -6,6 +6,6 @@
 Standards-Version: 3.8.1

 Package: DEBIAN_PACKAGE-dkms
-Architecture: all
+Architecture: DEBIAN_BUILD_ARCH
 Depends: dkms (>= 1.95), ${misc:Depends}
 Description: DEBIAN_PACKAGE driver in DKMS format.

I'm using Ubuntu 17.10. dkms version is 2.3-3ubuntu3.

Tags: patch
Revision history for this message
martin (omgalvan-86) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dkms (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in dkms (Ubuntu):
importance: Undecided → Medium
Changed in dkms (Debian):
status: Unknown → New
Revision history for this message
martin (omgalvan-86) wrote :

Is anyone actively looking at this? I uploaded a patch, it just needs to be tested and merged.

Revision history for this message
Brian Murray (brian-murray) wrote :

Have you submitted it to the upstream developers of dkms on github? The file is included there and the project can be found here:

https://github.com/dell/dkms

Revision history for this message
martin (omgalvan-86) wrote : Re: [Bug 1729051] Re: dkms mkdeb fails: Can't find package

I haven't because this is a Debian/Ubuntu-specific bug. IIRC
Debian/Ubuntu's file is different from vanilla dkms'.

2017-11-15 18:56 GMT-03:00 Brian Murray <email address hidden>:
> Have you submitted it to the upstream developers of dkms on github? The
> file is included there and the project can be found here:
>
> https://github.com/dell/dkms
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1729051
>
> Title:
> dkms mkdeb fails: Can't find package
>
> Status in dkms package in Ubuntu:
> Confirmed
> Status in dkms package in Debian:
> New
>
> Bug description:
> For some reason, the Debian version of dkms mkdeb tries to generate a
> .deb package with the current arch as a suffix in its name, instead of
> 'all'. However, since the control file wasn't properly set up, the
> .deb file will have the 'all' suffix and dkms mkdeb will fail.
>
> This bug is also present in Ubuntu. I added a patch to the original
> Debian bug report, here:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832558
>
> but since the original bug report was made about a year ago and nobody
> cared, I'm hoping that someone will at least fix this for Ubuntu.
>
> The patch looks like this:
>
> --- a/etc/dkms/template-dkms-mkdeb/debian/control 2017-10-31 14:40:41.690069116 -0300
> +++ b/etc/dkms/template-dkms-mkdeb/debian/control 2017-10-31 14:41:12.137973994 -0300
> @@ -6,6 +6,6 @@
> Standards-Version: 3.8.1
>
> Package: DEBIAN_PACKAGE-dkms
> -Architecture: all
> +Architecture: DEBIAN_BUILD_ARCH
> Depends: dkms (>= 1.95), ${misc:Depends}
> Description: DEBIAN_PACKAGE driver in DKMS format.
>
> I'm using Ubuntu 17.10. dkms version is 2.3-3ubuntu3.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1729051/+subscriptions

Revision history for this message
Brian Murray (brian-murray) wrote :

It looks the same to me.

https://github.com/dell/dkms/blob/master/template-dkms-mkdeb/debian/control

On Thu, Nov 16, 2017 at 12:49:01AM -0000, martin wrote:
> I haven't because this is a Debian/Ubuntu-specific bug. IIRC
> Debian/Ubuntu's file is different from vanilla dkms'.
>
> 2017-11-15 18:56 GMT-03:00 Brian Murray <email address hidden>:
> > Have you submitted it to the upstream developers of dkms on github? The
> > file is included there and the project can be found here:
> >
> > https://github.com/dell/dkms
> >
> > --
> > You received this bug notification because you are subscribed to the bug
> > report.
> > https://bugs.launchpad.net/bugs/1729051
> >
> > Title:
> > dkms mkdeb fails: Can't find package
> >
> > Status in dkms package in Ubuntu:
> > Confirmed
> > Status in dkms package in Debian:
> > New
> >
> > Bug description:
> > For some reason, the Debian version of dkms mkdeb tries to generate a
> > .deb package with the current arch as a suffix in its name, instead of
> > 'all'. However, since the control file wasn't properly set up, the
> > .deb file will have the 'all' suffix and dkms mkdeb will fail.
> >
> > This bug is also present in Ubuntu. I added a patch to the original
> > Debian bug report, here:
> >
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832558
> >
> > but since the original bug report was made about a year ago and nobody
> > cared, I'm hoping that someone will at least fix this for Ubuntu.
> >
> > The patch looks like this:
> >
> > --- a/etc/dkms/template-dkms-mkdeb/debian/control 2017-10-31 14:40:41.690069116 -0300
> > +++ b/etc/dkms/template-dkms-mkdeb/debian/control 2017-10-31 14:41:12.137973994 -0300
> > @@ -6,6 +6,6 @@
> > Standards-Version: 3.8.1
> >
> > Package: DEBIAN_PACKAGE-dkms
> > -Architecture: all
> > +Architecture: DEBIAN_BUILD_ARCH
> > Depends: dkms (>= 1.95), ${misc:Depends}
> > Description: DEBIAN_PACKAGE driver in DKMS format.
> >
> > I'm using Ubuntu 17.10. dkms version is 2.3-3ubuntu3.
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1729051/+subscriptions
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1729051
>
> Title:
> dkms mkdeb fails: Can't find package
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1729051/+subscriptions
>
--
Brian Murray
Ubuntu Bug Master

Revision history for this message
martin (omgalvan-86) wrote :

Yes, that file is the same. What's different is https://github.com/dell/dkms/blob/master/dkms. The dkms script that's distributed with Debian/Ubuntu looks for DEBIAN_BUILD_ARCH in the control file.

Revision history for this message
martin (omgalvan-86) wrote :

It's been almost a month and people are still tripping over this bug. Is anyone looking at this at all?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dkms - 2.3-3ubuntu4

---------------
dkms (2.3-3ubuntu4) bionic; urgency=medium

  * 0015-change-arch-in-mkdeb-template.patch: Utilize DEBIAN_BUILD_ARCH in the
    control file for mkdeb. Thanks to Launchpad user martin for the patch.
    (LP: #1729051)

 -- Brian Murray <email address hidden> Tue, 12 Dec 2017 15:32:01 -0800

Changed in dkms (Ubuntu):
status: Confirmed → Fix Released
Changed in dkms (Debian):
status: New → Fix Released
Changed in dkms (Ubuntu Artful):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.