python/hypothesis: update to 6.122.3
[oi-userland.git] / components / desktop / gnome / yelp-tools / patches / 01-relative-symlinks.patch
blob78dbf301a90264994eb685617778f54f7088b226
1 Previously absolute symlinks would be used which made the installed files not
2 relocatable.
4 https://gitlab.gnome.org/GNOME/yelp-tools/-/issues/13
6 --- yelp-tools-42.1/tools/yelp.m4.orig
7 +++ yelp-tools-42.1/tools/yelp.m4
8 @@ -182,7 +182,13 @@
9 elif test "x$$lc" != "xC"; then \
10 if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \
11 echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
12 - $(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
13 + dname="$$f"; \
14 + pars="../"; \
15 + while test "$$dname" != "." -a "$$dname" != "/"; do \
16 + pars="../$$pars"; \
17 + dname=$$(dirname "$$dname"); \
18 + done; \
19 + $(LN_S) -f $$pars"C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
20 fi; \
21 fi; \
22 done; \