0002-Makefile-drop-explicit-undefine-PYLIB-for-compatibil.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From 84fea5d784e010f84c860b34e55ea2c855c17b3b Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Wed, 12 May 2021 09:18:33 +0200
  4. Subject: [PATCH] Makefile: drop explicit undefine PYLIB for compatibility with
  5. make 3.81
  6. GNU make 3.81 does not like the explicit tab-indented undefine:
  7. Makefile:41: *** commands commence before first target. Stop.
  8. Dropping the indentation also doesn't work:
  9. Makefile:41: *** missing separator. Stop.
  10. So simply drop the undefine logic. As explained in the GNU make manual,
  11. undefine is not commonly needed as E.G. ifdef checks for a non-zero string:
  12. https://www.gnu.org/software/make/manual/html_node/Undefine-Directive.html
  13. https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html
  14. Fixes:
  15. http://autobuild.buildroot.net/results/cf7c4f360f5464c700788cc8299fd086544c80e8/build-end.log
  16. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  17. [Upstream: https://marc.info/?l=linux-rt-users&m=162080462211139&w=2]
  18. ---
  19. Makefile | 5 -----
  20. 1 file changed, 5 deletions(-)
  21. diff --git a/Makefile b/Makefile
  22. index b17ac09..ec85ac8 100644
  23. --- a/Makefile
  24. +++ b/Makefile
  25. @@ -36,11 +36,6 @@ LDFLAGS ?=
  26. PYLIB ?= $(shell python3 -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_lib())')
  27. -# Check for errors, such as python3 not available
  28. -ifeq (${PYLIB},)
  29. - undefine PYLIB
  30. -endif
  31. -
  32. MANPAGES = src/cyclictest/cyclictest.8 \
  33. src/pi_tests/pi_stress.8 \
  34. src/ptsematest/ptsematest.8 \
  35. --
  36. 2.20.1