Debian Codegraph @

debian/patches/0006-hwlatdetech-get_cyclictest_snapshot-Always-install-m.patch

raw
1 From: Punit Agrawal <[email protected]>
2 Date: Thu, 9 Sep 2021 15:28:55 +0900
3 Subject: hwlatdetech: get_cyclictest_snapshot: Always install manpages
4
5 The manpages for get_cyclictest_snapshot and hwlatdetect are
6 conditionally installed if the python3 site library location path is
7 available at compile time.
8
9 As get_cyclictest_snapshot and hwlatdetect are installed
10 unconditionally (with the binary package gaining a python3
11 dependency), do the same for the manpages.
12
13 Also, drop the PYLIB check in the Makefile as it's no longer used.
14 ---
15 Makefile | 16 +++-------------
16 1 file changed, 3 insertions(+), 13 deletions(-)
17
18 --- a/Makefile
19 +++ b/Makefile
20 @@ -38,8 +38,6 @@
21 CPPFLAGS += -D_GNU_SOURCE -Isrc/include
22 LDFLAGS ?=
23
24 -PYLIB ?= $(shell python3 -m get_pylib)
25 -
26 # Check for optional libcpupower dependency
27 ifneq ($(no_libcpupower), 1)
28 ifeq ($(call test-feature,libcpupower), 0)
29 @@ -53,11 +51,6 @@
30 $(warning libcpupower disabled, building without --deepest-idle-state support.)
31 endif
32
33 -# Check for errors, such as python3 not available
34 -ifeq (${PYLIB},)
35 - undefine PYLIB
36 -endif
37 -
38 MANPAGES = src/cyclictest/cyclictest.8 \
39 src/pi_tests/pi_stress.8 \
40 src/ptsematest/ptsematest.8 \
41 @@ -73,12 +66,9 @@
42 src/sched_deadline/deadline_test.8 \
43 src/ssdd/ssdd.8 \
44 src/sched_deadline/cyclicdeadline.8 \
45 - src/oslat/oslat.8
46 -
47 -ifdef PYLIB
48 - MANPAGES += src/cyclictest/get_cyclictest_snapshot.8 \
49 - src/hwlatdetect/hwlatdetect.8
50 -endif
51 + src/oslat/oslat.8 \
52 + src/cyclictest/get_cyclictest_snapshot.8 \
53 + src/hwlatdetect/hwlatdetect.8
54
55 ifeq ($(MAN_COMPRESSION),gzip)
56 MANPAGES := $(MANPAGES:.8=.8.gz)