[MacPorts] #37429: tesseract does not build with automake 1.13
#37429: tesseract does not build with automake 1.13 ------------------------+-------------------------------- Reporter: bugs1309@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: tesseract | Port: ------------------------+-------------------------------- Building tesseract with automake @1.13_0 produces an error during the configuration phase. Downgrading to automake @1.12.6_0 fixes the problem. main.log is attached. -- Ticket URL: <https://trac.macports.org/ticket/37429> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Changes (by macsforever2000@…): * keywords: tesseract => * owner: macports-tickets@… => emer@… * port: => tesseract Comment: In the future, please fill in the Port field and Cc the port maintainer(s). -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): Sorry for the delay, I was still on vacation. I'll look into this now. I noticed automake 1.13.1 is now the latest, has anyone tried it yet? -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): Ok, found the problem - I got it, and it's in your main.log too. Hoping that I don't have to patch configure.ac. {{{ Running aclocal configure.ac:157: error: 'AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead. /opt/local/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from... configure.ac:157: the top level autom4te: /opt/local/bin/gm4 failed with exit status: 1 aclocal: error: echo failed with exit status: 1 Something went wrong, bailing out! }}} -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): Ok, attached a patch for configure.ac, now I'm tracking down the cause of: {{{ Running aclocal aclocal: error: couldn't open directory 'm4': No such file or directory Something went wrong, bailing out! }}} I'm not sure why tesseract cannot just release a proper configure. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by ufa.boux@…): I was just about to create a ticket for this problem. The only difference with me is that I haven't seen the "initial error" that was fixed with the patch, I got the "aclocal: error: couldn't open directory 'm4': No such file or directory" right away. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): Ok, if I create the directory, it works. That's nonsense, but if it works, I will add a patch. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by mp@…): Until the tesseract project fixes the configure file, adding {{{ post-patch { reinplace "s/AM_CONFIG_HEADER/AC_CONFIG_HEADER/g" ${worksrcpath}/configure.ac file mkdir ${worksrcpath}/m4 } }}} to the Portfile solves the issue. Portfile diff: attachment:tesseract-portfile.diff -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): Everyone, give either fix a try and report back. I think this is it. Coming soon to a new ticket, upgrading to 3.02.02 which has the same problem so I want to fix this first. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by mp@…): Replying to [comment:8 emer@…]:
Everyone, give either fix a try and report back.
Both work fine on 10.6.8, also with language sub-ports, like "tesseract- eng". But why decrease the revision? -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): That's a mistake. I was playing with upgrading to 3.02.02 to see if that fixed things. It did not. The revision should increase. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+-------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tesseract | -------------------------+-------------------- Comment (by emer@…): Ok, unless there is any objection, this one is ready to be committed. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+---------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: tesseract | -------------------------+---------------------- Changes (by ryandesign@…): * keywords: => haspatch * cc: jack.rueter@… (added) Comment: Has duplicate #37751. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+---------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: tesseract | -------------------------+---------------------- Comment (by ryandesign@…): There should be no need for the revision to increase since this does not change what files get installed. You should either patch configure (if you're not running autoreconf) or patch configure.ac (if you are running autoreconf), not both. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+---------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: tesseract | -------------------------+---------------------- Comment (by emer@…): Yeah. I do have to use autoreconf, since configure is really broken out of the box. However, I did not make the patch to configure, and I'm not sure how to fix the problem described in configure.ac. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+---------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: haspatch Port: tesseract | -------------------------+---------------------- Comment (by ryandesign@…): I still have the configure.ac patch I used to generate the configure patch. I'll merge our two patches. -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37429: tesseract does not build with automake 1.13 -------------------------+---------------------- Reporter: bugs1309@… | Owner: emer@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: tesseract | -------------------------+---------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: new => closed * resolution: => fixed Comment: r101974 -- Ticket URL: <https://trac.macports.org/ticket/37429#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts