[tin-bugs] [PATCH] create relative symlinks when installing man pages
Brett A C Sheffield
bacs at librecast.net
Thu Jul 16 23:46:01 CEST 2026
Greetings,
The changes to src/Makefile.in in 2.6.5 now creates absolute symlinks when
installing man pages. This doesn't play nicely with distribution packaging where
the installation is first performed in a sandbox directory before being
installed by the packaging system. I hit this problem while updating the
package version for Gentoo Linux.
This can be fixed by creating relative symlinks instead with the -r option.
See attached patch.
Cheers,
Brett
--
Brett Sheffield (he/him)
Librecast - Decentralising the Internet with Multicast
https://librecast.net/
https://blog.brettsheffield.com/
-------------- next part --------------
# create relative symlinks instead of absolute
--- a/src/Makefile.in 2026-07-16 21:09:38.220815650 -0000
+++ b/src/Makefile.in 2026-07-16 21:14:08.738660301 -0000
@@ -373,13 +373,13 @@
@MSG_DIR_MAKE@ $(INSTALL) -m 444 $(POMANDIR)/$${lang}/$(PROJECT).$${manext} \
@MSG_DIR_MAKE@ $(DEST_MAN)/$${lang}/man$${manext}/$(PROJECT).$${manext} && \
@MSG_DIR_MAKE@ $(RM) -f $(DEST_MAN)/$${lang}/man$${manext}/r$(PROJECT).$${manext} && \
- @MSG_DIR_MAKE@ $(LN) $(DEST_MAN)/$${lang}/man$${manext}/$(PROJECT).$${manext} \
+ @MSG_DIR_MAKE@ $(LN) -r $(DEST_MAN)/$${lang}/man$${manext}/$(PROJECT).$${manext} \
@MSG_DIR_MAKE@ $(DEST_MAN)/$${lang}/man$${manext}/r$(PROJECT).$${manext} ;\
@MSG_DIR_MAKE@ mkdir -p $(DEST_MAN)/$${lang}$(UTF8SUFF)/man$${manext} ; \
@MSG_DIR_MAKE@ $(INSTALL) -m 444 $(POMANDIR)/$${lang}/$(PROJECT).$${manext} \
@MSG_DIR_MAKE@ $(DEST_MAN)/$${lang}$(UTF8SUFF)/man$${manext}/$(PROJECT).$${manext} && \
@MSG_DIR_MAKE@ $(RM) -f $(DEST_MAN)/$${lang}$(UTF8SUFF)/man$${manext}/r$(PROJECT).$${manext} && \
- @MSG_DIR_MAKE@ $(LN) $(DEST_MAN)/$${lang}$(UTF8SUFF)/man$${manext}/$(PROJECT).$${manext} \
+ @MSG_DIR_MAKE@ $(LN) -r $(DEST_MAN)/$${lang}$(UTF8SUFF)/man$${manext}/$(PROJECT).$${manext} \
@MSG_DIR_MAKE@ $(DEST_MAN)/$${lang}$(UTF8SUFF)/man$${manext}/r$(PROJECT).$${manext} ;\
@MSG_DIR_MAKE@ fi; \
@MSG_DIR_MAKE@ done; \
More information about the tin-bugs
mailing list