[MacPorts] #63923: tesseract @4.1.1_2: unable to compile it under 11.6 and 12.0.1 but works under 10.13.6 due to a file, named VERSION

MacPorts noreply at macports.org
Fri Nov 12 10:58:18 UTC 2021


#63923: tesseract @4.1.1_2: unable to compile it under 11.6 and 12.0.1 but works
under 10.13.6 due to a file, named VERSION
----------------------+-----------------------
 Reporter:  czo       |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.7.1
 Keywords:  haspatch  |       Port:  tesseract
----------------------+-----------------------
 I found a strange thing about this port when i try to compile it under
 11.6 and 12.0.1, but it works fine under 10.13. The problem seems to be
 related some case sensitivity/unsensitivity madness, because the compile
 fails on a file, which has the name 'VERSION'. That caused by the system's
 'cmath' header
 (/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/cmath;
 line 309), which try to include a file, named "version".

 I can compile it, if i patch the source and rename the file. There are any
 better options for this? Or maybe that is the accepted solution? I found
 egzactly the same thing when try to compile "devel/ace", so i wrote a
 patch for that port too.

 I've attached the main.log and the patch file too. If it's will be ok, i
 will create a merge request with the patch for both ports.

-- 
Ticket URL: <https://trac.macports.org/ticket/63923>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list