0001-Makefile-fix-error-on-install.patch 946 B

12345678910111213141516171819202122232425262728293031
  1. From b5e4229918c13bc0c11a523105cdb3a464337b37 Mon Sep 17 00:00:00 2001
  2. From: Thomas Devoogdt <thomas.devoogdt@barco.com>
  3. Date: Mon, 12 Dec 2022 12:59:59 +0100
  4. Subject: [PATCH] Makefile: fix error on install
  5. ln: failed to create symbolic link '/home/thomas/Documents/buildroot/output/host/share/man/man1/unifdefall.1': File exists
  6. Seen while trying to add this package to buildroot.org.
  7. (upstream: https://github.com/fanf2/unifdef/pull/16)
  8. Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
  9. ---
  10. Makefile | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/Makefile b/Makefile
  13. index 36c7028..485927a 100644
  14. --- a/Makefile
  15. +++ b/Makefile
  16. @@ -28,7 +28,7 @@ install: unifdef unifdefall.sh unifdef.1
  17. : manual
  18. install -m 755 -d ${man1dest}
  19. install -m 644 unifdef.1 ${man1dest}/
  20. - ln -s unifdef.1 ${man1dest}/unifdefall.1
  21. + ln -f -s unifdef.1 ${man1dest}/unifdefall.1
  22. clean:
  23. rm -f unifdef version.h
  24. --
  25. 2.38.1