Package: dkms
Version: 2.6.1-4
Followup-For: Bug #736803

I just ran into that as well because the manpage is ambiguously
worded in a way one could think that that’s already done. Also,
having an option that optionally takes an argument is likely
going to fail.

@Andreas: packages with a literal #MODULE_VERSION# are indeed
already broken: first because of the directory structure…

[…]
drwxr-xr-x root/root         0 2021-06-07 18:52 
./usr/src/sch-jens-#MODULE_VERSION#/                             
-rw-r--r-- root/root       344 2021-06-07 18:44 
./usr/src/sch-jens-#MODULE_VERSION#/dkms.conf                    
drwxr-xr-x root/root         0 2021-06-07 18:52 
./usr/src/sch-jens-0~20210607.0/                                 
-rw-r--r-- root/root        20 2021-06-07 15:59 
./usr/src/sch-jens-0~20210607.0/Kbuild                           
[…]

… and second because they won’t uninstall: the prerm has…

# Automatically added by dh_dkms/UNDECLARED                                     
                                 
DKMS_NAME=sch-jens                                                              
                                 
DKMS_VERSION=#MODULE_VERSION#                                                   
                                 
                                                                                
                                 
case "$1" in                                                                    
                                 
    remove|upgrade|deconfigure)                                                 
                                 
      if [  "$(dkms status -m $DKMS_NAME -v $DKMS_VERSION)" ]; then             
                                 
         dkms remove -m $DKMS_NAME -v $DKMS_VERSION --all                       
                                 
      fi                                                                        
                                 

… which will end up calling 'dkms status -m name -v', which works,
and 'dkms remove -m name -v --all', which will fail badly.

-- System Information:
Debian Release: 10.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-16-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages dkms depends on:
ii  build-essential  12.6
ii  coreutils        8.30-3
ii  dpkg-dev         1.19.7
ii  gcc              4:8.3.0-1
ii  kmod             26-1
ii  make             4.2.1-1.2
ii  patch            2.7.6-3+deb10u1

Versions of packages dkms recommends:
ii  fakeroot             1.23-1
ii  linux-headers-amd64  4.19+105+deb10u11
ii  lsb-release          10.2019051400
ii  sudo                 1.8.27-1+deb10u3

Versions of packages dkms suggests:
ii  menu            2.1.47+b1
pn  python3-apport  <none>

-- no debconf information

Reply via email to