1 |
commit: afe066b68f5ccdf61bba479d22669b66b40fb257 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 21:52:48 2023 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 21:54:18 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afe066b6 |
7 |
|
8 |
dev-util/bpftrace: Restore deleted patch that is still used |
9 |
|
10 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
11 |
|
12 |
.../files/bpftrace-0.15.0-dont-compress-man.patch | 47 ++++++++++++++++++++++ |
13 |
1 file changed, 47 insertions(+) |
14 |
|
15 |
diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-dont-compress-man.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-dont-compress-man.patch |
16 |
new file mode 100644 |
17 |
index 000000000000..84241e052462 |
18 |
--- /dev/null |
19 |
+++ b/dev-util/bpftrace/files/bpftrace-0.15.0-dont-compress-man.patch |
20 |
@@ -0,0 +1,47 @@ |
21 |
+diff --git a/man/adoc/CMakeLists.txt b/man/adoc/CMakeLists.txt |
22 |
+index 1a81dee0..c93ccbd2 100644 |
23 |
+--- a/man/adoc/CMakeLists.txt |
24 |
++++ b/man/adoc/CMakeLists.txt |
25 |
+@@ -1,7 +1,5 @@ |
26 |
+-find_program(GZIP gzip REQUIRED) |
27 |
+ find_program(ASCIIDOCTOR asciidoctor) |
28 |
+ file(GLOB FILES *.adoc) |
29 |
+-set(GZFILES "") |
30 |
+ if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND") |
31 |
+ foreach(FIL ${FILES}) |
32 |
+ get_filename_component(NAME ${FIL} NAME_WE) |
33 |
+@@ -12,14 +10,9 @@ if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND") |
34 |
+ COMMAND ${ASCIIDOCTOR} ${FIL} -b manpage -o - > ${MANPAGE_FILE} |
35 |
+ DEPENDS ${FIL}) |
36 |
+ |
37 |
+- add_custom_command(OUTPUT ${GZ_MANPAGE_FILE} |
38 |
+- COMMAND ${GZIP} -c ${MANPAGE_FILE} > ${GZ_MANPAGE_FILE} |
39 |
+- DEPENDS ${MANPAGE_FILE}) |
40 |
+- |
41 |
+- list(APPEND GZFILES ${GZ_MANPAGE_FILE}) |
42 |
+ endforeach() |
43 |
+- add_custom_target(adoc_man DEPENDS ${GZFILES}) |
44 |
+- install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) |
45 |
++ add_custom_target(adoc_man DEPENDS ${FILES}) |
46 |
++ install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) |
47 |
+ else() |
48 |
+ message(WARNING "asciidoctor not found, building without bpftrace manpage") |
49 |
+ add_custom_target(adoc_man) |
50 |
+diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt |
51 |
+index 2a316cd9..2207cf80 100644 |
52 |
+--- a/man/man8/CMakeLists.txt |
53 |
++++ b/man/man8/CMakeLists.txt |
54 |
+@@ -1,12 +1,3 @@ |
55 |
+-find_program(GZIP gzip REQUIRED) |
56 |
+ file(GLOB FILES *.8) |
57 |
+-set(GZFILES "") |
58 |
+-foreach(FIL ${FILES}) |
59 |
+- get_filename_component(NAME ${FIL} NAME) |
60 |
+- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz |
61 |
+- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz |
62 |
+- DEPENDS ${FIL}) |
63 |
+- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz") |
64 |
+-endforeach() |
65 |
+ add_custom_target(man_man DEPENDS ${GZFILES}) |
66 |
+-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) |
67 |
++install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) |