open3d_python.patch 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
  2. index 8f33537..dad3d0c 100755
  3. --- a/Mac/BuildScript/build-installer.py
  4. +++ b/Mac/BuildScript/build-installer.py
  5. @@ -264,17 +264,17 @@ def library_recipes():
  6. tk_patches = ['tk868_on_10_8_10_9.patch']
  7. else:
  8. - tcl_tk_ver='8.6.12'
  9. - tcl_checksum='87ea890821d2221f2ab5157bc5eb885f'
  10. + tcl_tk_ver='8.6.13'
  11. + tcl_checksum='0e4358aade2f5db8a8b6f2f6d9481ec2'
  12. - tk_checksum='1d6dcf6120356e3d211e056dff5e462a'
  13. + tk_checksum='95adc33d55a133ee29bc9f81efdf31b2'
  14. tk_patches = [ ]
  15. result.extend([
  16. dict(
  17. name="Tcl %s"%(tcl_tk_ver,),
  18. - url="ftp://ftp.tcl.tk/pub/tcl//tcl8_6/tcl%s-src.tar.gz"%(tcl_tk_ver,),
  19. + url="https://fossies.org/linux/misc/tcl%s-src.tar.gz"%(tcl_tk_ver,),
  20. checksum=tcl_checksum,
  21. buildDir="unix",
  22. configure_pre=[
  23. @@ -291,7 +291,7 @@ def library_recipes():
  24. ),
  25. dict(
  26. name="Tk %s"%(tcl_tk_ver,),
  27. - url="ftp://ftp.tcl.tk/pub/tcl//tcl8_6/tk%s-src.tar.gz"%(tcl_tk_ver,),
  28. + url="https://fossies.org/linux/misc/tk%s-src.tar.gz"%(tcl_tk_ver,),
  29. checksum=tk_checksum,
  30. patches=tk_patches,
  31. buildDir="unix",
  32. @@ -318,6 +318,7 @@ def library_recipes():
  33. checksum='ef68674fb47a8b8e741b34e429d86e9d',
  34. configure_pre=[
  35. '--disable-dependency-tracking',
  36. + '--disable-nls'
  37. ]
  38. ),
  39. ])
  40. @@ -347,7 +348,7 @@ def library_recipes():
  41. "--libdir=/Library/Frameworks/Python.framework/Versions/%s/lib"%(getVersion(),),
  42. ],
  43. patchscripts=[
  44. - ("ftp://ftp.invisible-island.net/ncurses//5.9/ncurses-5.9-20120616-patch.sh.bz2",
  45. + ("https://src.fedoraproject.org/repo/pkgs/ncurses/ncurses-5.9-20120616-patch.sh.bz2/f54bf02a349f96a7c4f0d00922f3a0d4/ncurses-5.9-20120616-patch.sh.bz2",
  46. "f54bf02a349f96a7c4f0d00922f3a0d4"),
  47. ],
  48. useLDFlags=False,
  49. @@ -1011,19 +1012,29 @@ def buildRecipe(recipe, basedir, archList):
  50. configure_args.remove('--disable-shared')
  51. configure_args.extend(args)
  52. - if recipe.get('useLDFlags', 1):
  53. - configure_args.extend([
  54. - "CFLAGS=%s-mmacosx-version-min=%s -arch %s "
  55. - "-I%s/usr/local/include"%(
  56. - recipe.get('extra_cflags', ''),
  57. + if not recipe.get('suppressCFlags', False):
  58. + if recipe.get('useLDFlags', 1):
  59. + configure_args.extend([
  60. + "CFLAGS=%s-mmacosx-version-min=%s -arch %s "
  61. + "-I%s/usr/local/include"%(
  62. + recipe.get('extra_cflags', ''),
  63. + DEPTARGET,
  64. + ' -arch '.join(archList),
  65. + shellQuote(basedir)[1:-1],),
  66. + "LDFLAGS=-mmacosx-version-min=%s -L%s/usr/local/lib -arch %s"%(
  67. DEPTARGET,
  68. - ' -arch '.join(archList),
  69. - shellQuote(basedir)[1:-1],),
  70. - "LDFLAGS=-mmacosx-version-min=%s -L%s/usr/local/lib -arch %s"%(
  71. - DEPTARGET,
  72. - shellQuote(basedir)[1:-1],
  73. - ' -arch '.join(archList)),
  74. - ])
  75. + shellQuote(basedir)[1:-1],
  76. + ' -arch '.join(archList)),
  77. + ])
  78. + else:
  79. + configure_args.extend([
  80. + "CFLAGS=%s-mmacosx-version-min=%s -arch %s "
  81. + "-I%s/usr/local/include"%(
  82. + recipe.get('extra_cflags', ''),
  83. + DEPTARGET,
  84. + ' -arch '.join(archList),
  85. + shellQuote(basedir)[1:-1],),
  86. + ])
  87. else:
  88. configure_args.extend([
  89. "CFLAGS=%s-mmacosx-version-min=%s -arch %s "
  90. @@ -1546,8 +1557,9 @@ def buildInstaller():
  91. pkgroot = os.path.join(outdir, 'Python.mpkg', 'Contents')
  92. pkgcontents = os.path.join(pkgroot, 'Packages')
  93. os.makedirs(pkgcontents)
  94. - for recipe in pkg_recipes():
  95. - packageFromRecipe(pkgcontents, recipe)
  96. +
  97. + #o3de modification: We don't need packages for our purposes, so we return immediately:
  98. + return
  99. rsrcDir = os.path.join(pkgroot, 'Resources')
  100. diff --git a/Doc/Makefile b/Doc/Makefile
  101. index 4188f88..324acc4 100644
  102. --- a/Doc/Makefile
  103. +++ b/Doc/Makefile
  104. @@ -12,7 +12,7 @@ JOBS = auto
  105. PAPER =
  106. SOURCES =
  107. DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
  108. -SPHINXERRORHANDLING = -W
  109. +SPHINXERRORHANDLING =
  110. # Internal variables.
  111. PAPEROPT_a4 = -D latex_elements.papersize=a4paper
  112. diff --git a/Doc/requirements.txt b/Doc/requirements.txt
  113. index f43ce2c..2578393 100644
  114. --- a/Doc/requirements.txt
  115. +++ b/Doc/requirements.txt
  116. @@ -3,13 +3,13 @@
  117. # Sphinx version is pinned so that new versions that introduce new warnings
  118. # won't suddenly cause build failures. Updating the version is fine as long
  119. # as no warnings are raised by doing so.
  120. -sphinx==3.4.3
  121. +sphinx
  122. # Docutils version is pinned to a version compatible with Sphinx
  123. # version <3.5.4. It can be removed after bumping Sphinx version to at
  124. # least 3.5.4.
  125. -docutils==0.17.1
  126. +docutils
  127. # Jinja version is pinned to a version compatible with Sphinx version <4.5.
  128. -jinja2==3.0.3
  129. +jinja2
  130. blurb