[MacPorts] #20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path -----------------------------+---------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: qt4-mac -----------------------------+---------------------------------------------- Revision 53399 makes a change to how configure is invoked, altering CPATH and LIBRARY_PATH over passing -L to configure. Downstream, this causes py26-pyqt4 to fail to build as it is unable to find -lpng, as there is no -L${prefix} in the Makefiles generated by qmake. Perhaps this is the case in any project depending on qt4-mac. Unfortunately qmake is a bit of a mystery to me. If the Portfile is patched to include -L in the configure args then py26-pyqt4 builds correctly. I suspect that all of the -isystem and -L flags need to be returned as opposed to manipulating CPATH and LIBRARY_PATH. Patch attached only adds the -L flag to allow py26-qt4 to build. Probably the other variants need to add -L's over using LIBRARY_PATH as well?? -- Ticket URL: <http://trac.macports.org/ticket/20241> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path -----------------------------+---------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: qt4-mac -----------------------------+---------------------------------------------- Comment(by jrminter@…): Cc Me! -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path -----------------------------+---------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: qt4-mac -----------------------------+---------------------------------------------- Changes (by boeyms@…): * cc: boeyms@… (added) Comment: Replying to [ticket:20241 dh@…]:
I suspect that all of the -isystem and -L flags need to be returned as opposed to manipulating CPATH and LIBRARY_PATH.
The qmake documentation lists environment variables that can be set to make it add directories to be searched for headers and libraries. It also says that such changes can be made in qmake.conf, of which one is installed qt4-mac and qt4-x11 by each platform-compiler combination that it knows about, so it would probably be better if the maintainers of those ports made sure that the required changes are made there instead. -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: invalid | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Changes (by dh@…): * status: new => closed * resolution: => invalid Comment: Closing as invalid - py26-pyqt4 has been patched to allow it to compile. -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: invalid | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Comment(by celemourn@…): This has not been resolved. py26-pyqt4 is not the only port that suffers from this problem. Basically anything that uses qt4 is going to have trouble installing. Manually applying the patch above to the portfile does resolve it, but this needs to be worked into the port itself. -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: invalid | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Comment(by julio.lopez@…): Ditto. This issue has not been resolved. For example, qscintilla depends on qt4-mac and is also affected by this issue. -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Changes (by macsforever2000@…): * status: closed => reopened * resolution: invalid => Old description:
Revision 53399 makes a change to how configure is invoked, altering CPATH and LIBRARY_PATH over passing -L to configure.
Downstream, this causes py26-pyqt4 to fail to build as it is unable to find -lpng, as there is no -L${prefix} in the Makefiles generated by qmake.
Perhaps this is the case in any project depending on qt4-mac. Unfortunately qmake is a bit of a mystery to me.
If the Portfile is patched to include -L in the configure args then py26-pyqt4 builds correctly.
I suspect that all of the -isystem and -L flags need to be returned as opposed to manipulating CPATH and LIBRARY_PATH.
Patch attached only adds the -L flag to allow py26-qt4 to build. Probably the other variants need to add -L's over using LIBRARY_PATH as well??
New description: Revision r53399 makes a change to how configure is invoked, altering CPATH and LIBRARY_PATH over passing -L to configure. Downstream, this causes py26-pyqt4 to fail to build as it is unable to find -lpng, as there is no -L${prefix} in the Makefiles generated by qmake. Perhaps this is the case in any project depending on qt4-mac. Unfortunately qmake is a bit of a mystery to me. If the Portfile is patched to include -L in the configure args then py26-pyqt4 builds correctly. I suspect that all of the -isystem and -L flags need to be returned as opposed to manipulating CPATH and LIBRARY_PATH. Patch attached only adds the -L flag to allow py26-qt4 to build. Probably the other variants need to add -L's over using LIBRARY_PATH as well?? -- -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Comment(by macsforever2000@…): I committed the patch in r54186. Thanks dh! py25-pyqt4 and qscintilla now compile for me. I'd like some feedback (good or bad) on this patch before I close the ticket. -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Comment(by ram@…): Builds for me now, thanks -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20241: qt4-mac: qmake no longer includes /opt/local/lib as a library path ------------------------------+--------------------------------------------- Reporter: dh@… | Owner: erickt@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: Port: qt4-mac | ------------------------------+--------------------------------------------- Changes (by macsforever2000@…): * status: reopened => closed * resolution: => fixed -- Ticket URL: <http://trac.macports.org/ticket/20241#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts