[packages/rpm-build-macros] - use INSTALLROOT variable in install_kernel_modules macro

baggins baggins at pld-linux.org
Thu Oct 24 14:52:17 CEST 2013


commit 82cb233d8e9c17aad74de180cf7f4288e9fd1ed4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 24 14:41:47 2013 +0200

    - use INSTALLROOT variable in install_kernel_modules macro

 rpm.macros | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rpm.macros b/rpm.macros
index ab5e946..4097941 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -1833,8 +1833,8 @@ fi											\
 INSTALLROOT=%{-D*}													\
 [ -n "$INSTALLROOT" ] || INSTALLROOT=$RPM_BUILD_ROOT				\
 																	\
-%define KernelD $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}			\
-%define ModprobeD $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver} \
+%define KernelD $INSTALLROOT/lib/modules/%{_kernel_ver}				\
+%define ModprobeD $INSTALLROOT%{_sysconfdir}/modprobe.d/%{_kernel_ver} \
 																	\
 __install_kernel_modules() {										\
 %{!?debug:set +x;}													\
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/23b89db2826f233dd77636932f68bbfe6e3982b7



More information about the pld-cvs-commit mailing list