|
From: Gleb C. <lna...@ya...> - 2025-11-19 07:05:50
|
Commit: 9590762 GitHub URL: https://github.com/SCST-project/scst/commit/9590762792d16e08e665fd5cb4cfabeb5b7a893d Author: MajorP93 Date: 2025-11-19T10:05:19+03:00 Log Message: ----------- debian, scst-dkms: Move the .install file creation to the correct location in install target * This fixes an issue where the resulting scst-dkms deb package was empty and could not be installed. * By moving the .install file creation to the install target we ensure: - The .install file is generated after the version is set - Paths match the actual DKMS source location - File contents aren't overwritten by later operations Modified Paths: -------------- debian/rules | 16 +++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) =================================================================== diff --git a/debian/rules b/debian/rules index 945592b..caf1640 100755 --- a/debian/rules +++ b/debian/rules @@ -42,14 +42,7 @@ build: export BUILD_2X_MODULE=y && \ export CONFIG_SCSI_QLA_FC=y && \ export CONFIG_SCSI_QLA2XXX_TARGET=y && \ - for d in $(SUBDIRS); do $(MAKE) -C $$d; done && \ - { \ - echo dkms.conf && \ - echo Makefile && \ - for d in fcst iscsi-scst $(QLA_INI_DIR) scst scst_local srpt; do\ - echo $$d; \ - done; \ - } | sed "s,^,usr/src/scst-$(VERSION)/," >debian/scst-dkms.install + for d in $(SUBDIRS); do $(MAKE) -C $$d; done build-indep: build @@ -74,6 +67,13 @@ install: make $(PKG_BUILD_MODE) && \ rm -f "$(DESTDIR)"/lib/modules/*/[Mm]odule* && \ mkdir -p $(DESTDIR)/usr/src/scst-$(VERSION) && \ + { \ + echo dkms.conf && \ + echo Makefile && \ + for d in fcst iscsi-scst $(QLA_INI_DIR) scst scst_local srpt; do\ + echo $$d; \ + done; \ + } | sed "s,^,usr/src/scst-$(VERSION)/," >debian/scst-dkms.install &&\ for f in scst.dkms scst-dkms.postinst scst-dkms.prerm; do \ sed "s/\$${PACKAGE_VERSION}/$(VERSION)/; \ s/\$${PKG_BUILD_MODE}/$(PKG_BUILD_MODE)/" \ |