Whamcloud - gitweb
LU-8072 build: Restore module debuginfo 05/19805/2
authorChristopher J. Morrone <morrone2@llnl.gov>
Tue, 26 Apr 2016 21:41:02 +0000 (14:41 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 4 May 2016 15:01:24 +0000 (15:01 +0000)
In commit 3ce96f162a weaccidentally dropped the chmod that makes kernel
modules available to the find-debuginfo.sh.

Reintroducing this chmod allows the lustre debuginfo package to contain
debuginfo for the kenrel modules.

Change-Id: I57e2a6dc248aaccf573e68a49a981bf92c7fbb62
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-on: http://review.whamcloud.com/19805
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre.spec.in

index 337c80c..bcd2349 100644 (file)
@@ -382,6 +382,11 @@ fi
 find $RPM_BUILD_ROOT%{_libdir}/@PACKAGE@ \
     -name \*.la -type f -exec rm -f {} \;
 
 find $RPM_BUILD_ROOT%{_libdir}/@PACKAGE@ \
     -name \*.la -type f -exec rm -f {} \;
 
+%if %{with lustre_modules}
+# mark modules executable for find-debuginfo.sh
+find $RPM_BUILD_ROOT/lib/modules -name \*.ko -type f -exec chmod u+x {} \;
+%endif
+
 %if %{with lustre_tests}
 echo '%{_libdir}/lustre/tests/*' >>lustre-tests.files
 echo '%{_bindir}/mcreate' >>lustre-tests.files
 %if %{with lustre_tests}
 echo '%{_libdir}/lustre/tests/*' >>lustre-tests.files
 echo '%{_bindir}/mcreate' >>lustre-tests.files