0002-Do-not-use-genstrings.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 193c8d8c55a3478ca5c9e161ce581e5794098c6d Mon Sep 17 00:00:00 2001
  2. From: Olivier Schonken <olivier.schonken@gmail.com>
  3. Date: Thu, 21 Jan 2016 23:04:49 +0100
  4. Subject: [PATCH] Do not use genstrings
  5. Using cross compiled genstrings while cross-compiling will break
  6. compilation. Genstrings is still compiled because some power users
  7. might want to do ppd compilation on their target machine, and for that
  8. they would need to use the native compiled genstrings binary, to
  9. generate a sample.c file for their target
  10. Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
  11. [Thomas: completely remove call to genstrings rather than commenting
  12. it, remove useless and potentially confusing 'echo' before the
  13. genstrings call.]
  14. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  15. ---
  16. ppdc/Makefile | 2 --
  17. 1 file changed, 2 deletions(-)
  18. diff --git a/ppdc/Makefile b/ppdc/Makefile
  19. index 68bf6b2..d57a0c9 100644
  20. --- a/ppdc/Makefile
  21. +++ b/ppdc/Makefile
  22. @@ -242,8 +242,6 @@ genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \
  23. $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o genstrings genstrings.o \
  24. libcupsppdc.a ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \
  25. $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
  26. - echo Generating localization strings...
  27. - ./genstrings >sample.c
  28. #
  29. --
  30. 2.6.4