0001-remove-join-from-sip-h-files-string.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. From 009e5cf0750134ed5403aae23ef53a177764ca04 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <aduskett@gmail.com>
  3. Date: Wed, 29 Dec 2021 13:49:15 -0800
  4. Subject: [PATCH] remove join from sip_h.files string
  5. When cross compiling, the configure system appends the hosts /usr/ directory
  6. to the path of which to find files that python-sip will install. This leads to
  7. python-sip attempting to install everything under the hosts /usr directory into
  8. the targets /usr/include/python directory.
  9. Remove the .join() in the sip_h.files string to prevent the above issue.
  10. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  11. ---
  12. configure.py | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/configure.py b/configure.py
  15. index 25bcaa7..fc8f2dc 100644
  16. --- a/configure.py
  17. +++ b/configure.py
  18. @@ -408,7 +408,7 @@ def create_makefiles(macros):
  19. # There will only be one element.
  20. files, path = gen_installs[0]
  21. pro.write("\n")
  22. - pro.write("sip_h.files = %s\n" % " ".join(files))
  23. + pro.write("sip_h.files = %s\n" % files)
  24. pro.write("sip_h.path = %s\n" % quote(path))
  25. pro.write("INSTALLS += sip_h\n")
  26. --
  27. 2.33.1