Opened 10 years ago

Closed 10 years ago

#26951 closed defect (invalid)

qt4 dependency checking

Reported by: jjstickel@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: qt4 portgroup Cc:
Port: py26-pyqt4

Description

Although py26-pyqt4 reported that qt4-mac is a dependency, it was not picked up when I tried to install it:

$ port deps py26-pyqt4
Build Dependencies:   pkgconfig
Library Dependencies: qt4-mac, py26-sip
$ port installed qt4-mac
None of the specified ports are installed.
$ sudo port -u install py26-pyqt4
--->  Computing dependencies for py26-pyqt4
--->  Configuring py26-pyqt4
Error: Target org.macports.configure returned: error copying "/opt/local/share/qt4/mkspecs/macx-g++/qmake.conf": no such file or directory
Log for py26-pyqt4 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_python_py26-pyqt4/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
$ sudo port -u install qt4-mac
… a couple hours later…
--->  Activating qt4-mac @4.7.0_0+quartz
--->  Cleaning qt4-mac
 $ sudo port -u install py26-pyqt4
--->  Computing dependencies for py26-pyqt4
--->  Configuring py26-pyqt4
--->  Building py26-pyqt4
--->  Staging py26-pyqt4 into destroot
--->  Installing py26-pyqt4 @4.7.7_1
--->  Activating py26-pyqt4 @4.7.7_1
--->  Cleaning py26-pyqt4

It appears that the dependency gets pulled in via the qt4 PortGroup, and so perhaps that is where the bug lies.

Change History (7)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to michaelld@…
Port: py26-pyqt4 added

comment:2 Changed 10 years ago by michaelld (Michael Dickens)

I also see that the depends_lib is correct. Maybe it has something to do with adding in dependencies in a Portgroup instead of directly in the Portfile?

comment:3 Changed 10 years ago by jmroot (Joshua Root)

It's a path: dependency so it could potentially be satisfied by all kinds of things. Need to see debug output from the initial install to know what satisfied it.

comment:4 Changed 10 years ago by michaelld (Michael Dickens)

So "path:bin/qmake:qt4-mac" means: this dependency is satisfied if either, in this order: (1) ${prefix}/bin/qmake exists; if not, then: (2) qt4-mac is installed. Yes, seeing a debug log would be helpful. Could the OP please attach the "Log for py26-pyqt4"?

comment:5 Changed 10 years ago by michaelld (Michael Dickens)

Do a "clean" then "selfupdate" and then try again. I just removed a cyclic dependency from qt4-mac in r72678. Maybe that will help?

comment:6 Changed 10 years ago by jjstickel@…

Seems to work now. After uninstalling py26-pyqt4 and deactivating qt4-mac, a reinstall of py26-pyqt4 correctly activates qt4-mac.

comment:7 Changed 10 years ago by michaelld (Michael Dickens)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.