sci-libs/linux-gpib-modules: Fix build if modules dir does not exist yet

Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2022-08-02 12:25:22 +02:00
parent 2558ec81d9
commit ae706e6aa4
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
Depmod fails here since we're still in DESTDIR and the actual target path may
not exist...
diff -ruN linux-gpib-kernel-4.3.4.orig/Makefile linux-gpib-kernel-4.3.4/Makefile
--- linux-gpib-kernel-4.3.4.orig/Makefile 2020-12-29 10:42:34.000000000 +0100
+++ linux-gpib-kernel-4.3.4/Makefile 2022-08-02 12:21:38.097344102 +0200
@@ -20,13 +20,9 @@
M="$(GPIB_SRCDIR)/drivers/gpib" \
GPIB_TOP_DIR=$(GPIB_SRCDIR)
-#We run depmod explicitly because the depmod.sh script run
-#by modules_install fails on Debian due to it failing to find
-#the System.map file.
install:
$(MAKE) -C $(LINUX_SRCDIR) V=$(VERBOSE) modules_install\
M="$(GPIB_SRCDIR)/drivers/gpib" \
GPIB_TOP_DIR=$(GPIB_SRCDIR) \
INSTALL_MOD_DIR=gpib
- /sbin/depmod -A

View File

@@ -25,6 +25,9 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
# https://sourceforge.net/p/linux-gpib/code/1998/
"${FILESDIR}/${P}-kernel-5.17.patch"
# don't fix debian bugs if they break gentoo
"${FILESDIR}/${P}-depmod.patch"
)
pkg_setup() {