0001-fix-symlink.patch 1.4 KB

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