0001-no-documentation.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From 01463f5dbe19501948dec26160e0cc3b4e9167b4 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Mon, 27 Nov 2023 18:09:57 +0200
  4. Subject: [PATCH] socat: disable documentation build/installation
  5. The documentation generation process requires a special yold2man
  6. program, for which we don't have a package in Buildroot. Since we
  7. generally don't care much about documentation of packages, just adjust
  8. the package Makefile.in to not build/install its documentation.
  9. Upstream: N/A
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. [baruch: update for 1.8.0.0; git patch format]
  12. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  13. ---
  14. Makefile.in | 7 ++-----
  15. 1 file changed, 2 insertions(+), 5 deletions(-)
  16. diff --git a/Makefile.in b/Makefile.in
  17. index c01b1a4a2306..fd89acb06f3c 100644
  18. --- a/Makefile.in
  19. +++ b/Makefile.in
  20. @@ -82,7 +82,7 @@ SHFILES = socat-chain.sh socat-mux.sh socat-broker.sh \
  21. TESTFILES = test.sh socks4echo.sh proxyecho.sh readline-test.sh \
  22. proxy.sh socks4a-echo.sh
  23. -all: progs doc
  24. +all: progs
  25. scmclean: gitclean
  26. @@ -128,7 +128,7 @@ libxio.a: $(XIOOBJS) $(UTLOBJS)
  27. strip: progs
  28. strip $(PROGS)
  29. -install: progs $(srcdir)/doc/socat.1
  30. +install: progs
  31. mkdir -p $(DESTDIR)$(BINDEST)
  32. $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST)/socat1
  33. ln -sf socat1 $(DESTDIR)$(BINDEST)/socat
  34. @@ -137,9 +137,6 @@ install: progs $(srcdir)/doc/socat.1
  35. $(INSTALL) -m 755 socat-broker.sh $(DESTDIR)$(BINDEST)
  36. $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST)
  37. $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST)
  38. - mkdir -p $(DESTDIR)$(MANDEST)/man1
  39. - $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/socat1.1
  40. - ln -sf socat1.1 $(DESTDIR)$(MANDEST)/man1/socat.1
  41. uninstall:
  42. rm -f $(DESTDIR)$(BINDEST)/socat
  43. --
  44. 2.42.0