Bug#1059900: Postinst deletes module source files

2024-01-03 Thread Andreas Beckmann

On 03/01/2024 11.43, Petr Čech wrote:

after upgrading the postinst tries to delete old source files. It seems
that it is a bit too liberal and removes also source files from zfs as
it contains /module/ directory. It renders zfs module unbuildable with


Oops ... good catch. Trying to be less greedy now ...

That must have happened in my module build chroot, too, but I probably 
blamed the zfs failure to an existing bug about lacking support for the 
most recent kernel ... and it was gone after zfs got updated.
(And it wouldn't reappear since that is a one-shot cleanup done by 
dkms.postinst.)


Andreas



Bug#1059900: Postinst deletes module source files

2024-01-03 Thread Petr Čech
Package: dkms
Version: 3.0.12-3
Severity: important

Hi,
after upgrading the postinst tries to delete old source files. It seems
that it is a bit too liberal and removes also source files from zfs as
it contains /module/ directory. It renders zfs module unbuildable with
next kernel upgrade.


Installing new version of config file /etc/kernel/postinst.d/dkms ...   
removed '/var/lib/dkms/zfs/2.2.2/source/module/zstd/zfs_zstd.c' 
   
removed '/var/lib/dkms/zfs/2.2.2/source/module/zstd/lib/zstd.h'
...
removed directory
'/var/lib/dkms/zfs/2.2.2/source/module/icp/algs/blake3' 

removed directory '/var/lib/dkms/zfs/2.2.2/source/module/icp/algs'  
  
removed directory '/var/lib/dkms/zfs/2.2.2/source/module/icp'   
  
removed directory '/var/lib/dkms/zfs/2.2.2/source/module/'


Regards,
Petr

-- System Information:
Debian Release: trixie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'oldstable-security'), (500, 'testing'), (500, 'stable'), (99, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.9-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: default

Versions of packages dkms depends on:
ii  build-essential12.10
ii  clang-16 [c-compiler]  1:16.0.6-19
ii  dpkg-dev   1.22.2
ii  gcc [c-compiler]   4:13.2.0-2
ii  gcc-13 [c-compiler]13.2.0-9
ii  kmod   30+20230601-2.1
ii  lsb-release12.0-2
ii  make   4.3-4.1
ii  patch  2.7.6-7

Versions of packages dkms recommends:
ii  fakeroot 1.32.2-1
pn  linux-headers-generic | linux-headers-686-pae | linux-headers-a  
md64 | linux-headers
ii  sudo 1.9.15p4-2

Versions of packages dkms suggests:
ii  e2fsprogs  1.47.0-2+b1
ii  menu   2.1.50

-- Configuration Files:
/etc/dkms/framework.conf changed [not included]

-- no debconf information