make install not using DESTDIR for modules_install
Derek Kozel <[email protected]>
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <CAO27avDdF4t556Ks=g35x8He8TBMcwRz81QwBirWgmpf-jwmcQ@mail.gmail.com> |
Hello, After a few months I've looped around again to making Debian packages for linux-gpib-kernel and linux-gpib-user. A big thanks to all the work that has been done since May, it was much easier this time around and only one patch is necessary to get started. During the linux-gpib-kernel make install process the kernel modules_install command is run bit the DESTDIR argument is not passed in meaning that it will always try to install to the system directory rather than a custom directory. Adding INSTALL_MOD_PATH="$(DESTDIR)" to the command correctly passes the information. I've tested on Ubuntu 18.10 with and without a DESTDIR specified in the make install step and the results look correct to me. Attached is a patch adding the additional argument. Regards, Derek _______________________________________________ Linux-gpib-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
install_mod_path.patch
(text/x-patch, 581 B)
Index: drivers/Makefile.am =================================================================== --- drivers/Makefile.am (revision 1766) +++ drivers/Makefile.am (working copy) @@ -30,7 +30,7 @@ install-data-hook: $(MAKE) -C $(LINUX_SRCDIR) V=1 modules_install\ CC="$(LINUX_CC) -I@abs_top_srcdir@ -I@abs_top_srcdir@/compat/include" \ - SUBDIRS="$(GPIB_ABS_MODULE_SUBDIR)" INSTALL_MOD_DIR="gpib" + SUBDIRS="$(GPIB_ABS_MODULE_SUBDIR)" INSTALL_MOD_DIR="gpib" INSTALL_MOD_PATH="$(DESTDIR)" $(DEPMOD) -a #make sure compiled files, etc don't make it into distribution tarballs