xref: /OK3568_Linux_fs/buildroot/package/xcursor-transparent-theme/0001-fix-symlink.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Do not symlink to a host directory
2
3The installation of xcursor-transparent-theme creates many symbolic
4links to the 'transp' cursor file, but it does so using an absolute
5directory, that happens to point to the installation location, which
6is incorrect when cross-compiling.
7
8Also add the -f option so that the package can be reinstalled even if
9it has already been installed.
10
11Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12
13Index: b/cursors/Makefile.am
14===================================================================
15--- a/cursors/Makefile.am
16+++ b/cursors/Makefile.am
17@@ -91,6 +91,6 @@
18 	$(INSTALL_DATA) $(CURSOR_REAL) $(DESTDIR)$(CURSOR_DIR)/
19 	for CURSOR in $(CURSOR_NAMES); do \
20 		echo '-- Installing cursor '$$CURSOR; \
21-		ln -s $(DESTDIR)$(CURSOR_DIR)/transp $(DESTDIR)$(CURSOR_DIR)/$$CURSOR; \
22+		ln -sf transp $(DESTDIR)$(CURSOR_DIR)/$$CURSOR; \
23 	done
24
25Index: b/cursors/Makefile.in
26===================================================================
27--- a/cursors/Makefile.in
28+++ b/cursors/Makefile.in
29@@ -177,7 +177,7 @@
30 	$(INSTALL_DATA) $(CURSOR_REAL) $(DESTDIR)$(CURSOR_DIR)/
31 	for CURSOR in $(CURSOR_NAMES); do \
32 		echo '-- Installing cursor '$$CURSOR; \
33-		ln -s $(DESTDIR)$(CURSOR_DIR)/transp $(DESTDIR)$(CURSOR_DIR)/$$CURSOR; \
34+		ln -sf transp $(DESTDIR)$(CURSOR_DIR)/$$CURSOR; \
35 	done
36
37 # Tell versions [3.59,3.63) of GNU make to not export all variables.
38