This used to install to /usr/man which isn't valid as confirmed under
Alpine, Arch and Void Linux. For example Void's xbps-src printed the
following:
=> pnc-0.9.1_1: running pre-pkg hook: 99-pkglint ...
=> ERROR: pnc-0.9.1_1: /usr/man is forbidden, use /usr/share/man.
=> ERROR: pnc-0.9.1_1: cannot continue with installation!
On Alpine[1] and Arch[2] this was already being worked around by moving
/usr/man under /usr/share/, so the files might as well be installed to
the expected directory.
[1] https://git.alpinelinux.org/aports/tree/community/pn/APKBUILD#n53
[2] https://github.com/dreemurrs-embedded/Pine64-Arch/blob/master/PKGBUILDS/sxmo/pn/PKGBUILD#L32
Original PR: https://github.com/Orange-OpenSource/pn/pull/4
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89a9ba9..7f348cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,7 +68,7 @@ install(
install(
FILES pnc.1
- DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1
+ DESTINATION share/man/man1
)
if( HAVE_GAWK_H )
--
2.38.1