From 2de5765c9ca9ac9f4a1afa8918270bf2207674c4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 20 May 2021 04:02:06 +0000 Subject: [PATCH] debian: make sure depmod uses the correct version By default it uses the currently running kernel, which is not necessary the kernel the package was built for. Fix this by generating the path on package creation stage. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9425 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 2 ++ debian/rules | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0df19af3f..8becf0947 100644 --- a/Makefile +++ b/Makefile @@ -369,6 +369,8 @@ dpkg: ../scst_$(VERSION).orig.tar.gz debian/scst.dkms && \ sed 's/%{KVER}/$(KVER)/' \ debian/scst.preinst && \ + sed 's/%{KVER}/$(KVER)/' \ + debian/scst.postinst && \ output_files=( \ ../*_$(VERSION)-$(DEBIAN_REVISION)_*.deb \ ../*_$(VERSION)-$(DEBIAN_REVISION)_*.ddeb \ diff --git a/debian/rules b/debian/rules index 0c49bded8..af061fb37 100755 --- a/debian/rules +++ b/debian/rules @@ -29,7 +29,8 @@ export KDIR=$(DEB_KDIR_SET) clean: dh_testdir && \ dh_prep -Xqla_isp/TAGS -Xdebian/changelog && \ - scripts/clean-source-tree -x debian/changelog -x debian/compat -x debian/scst.preinst + scripts/clean-source-tree -x debian/changelog -x debian/compat -x debian/scst.preinst \ + -x debian/scst.postinst build: make 2release && \