Re: [gentoo-dev] [PATCH] linux-mod.eclass: respect INSTALL_MOD_PATH

2021-08-23 Thread Michał Górny
On Mon, 2021-08-23 at 14:32 -0400, Mike Pagano wrote:
> Change to respect INSTALL_MOD_PATH
> 
> Bug: https://bugs.gentoo.org/642240
> 
> Signed-off-by: Mike Pagano 
> ---
>   eclass/linux-mod.eclass | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
> index e87c5ec0c..48d7a8cbb 100644
> --- a/eclass/linux-mod.eclass
> +++ b/eclass/linux-mod.eclass
> @@ -741,7 +741,7 @@ linux-mod_src_install() {
>   
>   einfo "Installing ${modulename} module"
>   cd "${objdir}" || die "${objdir} does not exist"
> - insinto /lib/modules/${KV_FULL}/${libdir}
> + insinto ${INSTALL_MOD_PATH}/lib/modules/${KV_FULL}/${libdir}

Double quotes?

>   doins ${modulename}.${KV_OBJ} || die "doins 
> ${modulename}.${KV_OBJ} failed"
>   cd "${OLDPWD}"
>   



-- 
Best regards,
Michał Górny





[gentoo-dev] [PATCH] linux-mod.eclass: respect INSTALL_MOD_PATH

2021-08-23 Thread Mike Pagano

Change to respect INSTALL_MOD_PATH

Bug: https://bugs.gentoo.org/642240

Signed-off-by: Mike Pagano 
---
 eclass/linux-mod.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index e87c5ec0c..48d7a8cbb 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -741,7 +741,7 @@ linux-mod_src_install() {
 
 		einfo "Installing ${modulename} module"

cd "${objdir}" || die "${objdir} does not exist"
-   insinto /lib/modules/${KV_FULL}/${libdir}
+   insinto ${INSTALL_MOD_PATH}/lib/modules/${KV_FULL}/${libdir}
doins ${modulename}.${KV_OBJ} || die "doins ${modulename}.${KV_OBJ} 
failed"
cd "${OLDPWD}"
 
--

2.31.1