Skip to content

Commit 4dfb482

Browse files
committed
brotli: patch to fix man page install directories [ci skip]
Seen on all macOS-hosted builds in CI: ``` [38/38] Linking C static library libbrotlienc.a + cmake --install _a64-mac-sys-bld --prefix _a64-mac-sys/usr -- Install configuration: "Release" CMake Error at _a64-mac-sys-bld/cmake_install.cmake:89 (file): file cannot create directory: /usr/share/man/man3. Maybe need administrative privileges. ``` Ref: https://github.com/curl/curl-for-win/actions/runs/18853487748/job/53795465550#step:3:2073 Ref: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html PR submitted upstream: google/brotli#1367 Brotli regression from: google/brotli@cff5803 google/brotli#1084
1 parent cf964a4 commit 4dfb482

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

brotli.dev.patch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
brotli.patch

brotli.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff -u -r a/CMakeLists.txt b/CMakeLists.txt
2+
--- a/CMakeLists.txt
3+
+++ b/CMakeLists.txt
4+
@@ -384,11 +384,11 @@
5+
6+
if (BROTLI_BUILD_TOOLS)
7+
install(FILES "docs/brotli.1"
8+
- DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man1")
9+
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
10+
endif()
11+
12+
install(FILES docs/constants.h.3 docs/decode.h.3 docs/encode.h.3 docs/types.h.3
13+
- DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man3")
14+
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man3")
15+
16+
if (ENABLE_COVERAGE STREQUAL "yes")
17+
setup_target_for_coverage(coverage test coverage)

brotli.test.patch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
brotli.patch

0 commit comments

Comments
 (0)