Browse code

linux-tools: disable parallel build

To fix occasional build errors.

Change-Id: I78b0a8f565152fca5eb018b0ce394094a969eb11
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1607
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>
(cherry picked from commit ada71db35ef9d0d5e406bc3db923ff82ff4cae45)
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1610
Tested-by: suezzelur <anishs@vmware.com>

Alexey Makhalov authored on 2016/10/29 05:53:46
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:      This package contains the 'perf' performance analysis tools for Linux kernel 
2 2
 Name:         linux-tools
3 3
 Version:      4.4.26
4
-Release:      1%{?dist}
4
+Release:      2%{?dist}
5 5
 License:      GPLv2
6 6
 URL:          http://www.kernel.org/
7 7
 Group:        System/Tools
... ...
@@ -20,13 +20,13 @@ This package contains the 'perf' performance analysis tools for Linux kernel.
20 20
 %patch0 -p1
21 21
 
22 22
 %build
23
-cd tools/perf
24
-sed -i 's/EXTRA_WARNINGS += -Wnested-externs/#EXTRA_WARNINGS += -Wnested-externs/' ../scripts/Makefile.include
25
-make 
23
+make -C tools perf
26 24
 
27 25
 %install
28
-cd tools
29
-make DESTDIR=%{buildroot} prefix=%{_prefix} perf_install 
26
+# disable (JOBS=1) parallel build to fix this issue:
27
+# fixdep: error opening depfile: ./.plugin_cfg80211.o.d: No such file or directory
28
+# Linux version that was affected is 4.4.26
29
+make -C tools JOBS=1 DESTDIR=%{buildroot} prefix=%{_prefix} perf_install
30 30
 mv %{buildroot}/usr/lib64 %{buildroot}%{_libdir}
31 31
 
32 32
 %files
... ...
@@ -38,6 +38,8 @@ mv %{buildroot}/usr/lib64 %{buildroot}%{_libdir}
38 38
 /etc/bash_completion.d/* 
39 39
 
40 40
 %changelog
41
+*   Fri Oct 28 2016 Alexey Makhalov <amakhalov@vmware.com> 4.4.26-2
42
+-   Disable parallel build for the perf_install.
41 43
 *   Mon Oct 24 2016 Anish Swaminathan <anishs@vmware.com> 4.4.26-1
42 44
 -   Update to linux-4.4.26
43 45
 *   Wed Sep  7 2016 Alexey Makhalov <amakhalov@vmware.com> 4.4.20-1