Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56723 closed defect (fixed)

py-poppler-qt5 depends on qt5 but older macOS versions need older Qt versions

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dliessi (Davide Liessi)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-poppler-qt5

Description

py-poppler-qt5 depends on qt5, which is not correct on older macOS versions. Older macOS versions need earlier versions of Qt, provided by other Qt ports, such as qt59. This causes failures on earlier macOS versions such as:

Error: Failed to activate qt5-qtbase: Image error: /opt/local/lib/cmake/Qt5/Qt5Config.cmake is being used by the active qt59-qtbase port.  Please deactivate this port first, or use 'port -f activate qt5-qtbase' to force the activation.

(One of py-poppler-qt5's dependencies has properly used the qt5 portgroup, which has resulted in qt59-qtbase being installed; py-poppler-qt5 has not, causing it to try to install qt5-qtbase, which conflicts with qt59-qtbase.)

To address this, properly use the qt5 portgroup and its qt5.depends_component procedure.

Change History (4)

comment:1 Changed 6 years ago by dliessi (Davide Liessi)

I was trying to update the port, but with the latest changes to py-sip (i.e. the update from 4.19.8 to 4.19.10) it does not build anymore. Should I open a ticket for py-sip even if I haven't yet updated py-poppler-qt5?

comment:2 in reply to:  1 Changed 6 years ago by dliessi (Davide Liessi)

Replying to dliessi:

I was trying to update the port, but with the latest changes to py-sip (i.e. the update from 4.19.8 to 4.19.10) it does not build anymore. Should I open a ticket for py-sip even if I haven't yet updated py-poppler-qt5?

I filed a bug report upstream about this.

comment:3 Changed 6 years ago by dliessi (Davide Liessi)

#56746 solved the build problem.

I opened a pull request to solve this ticket: https://github.com/macports/macports-ports/pull/2143.

Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 6 years ago by dliessi (Davide Liessi)

Resolution: fixed
Status: assignedclosed

In 9a2791b6d2c18f224169099640e33733a84dc04a/macports-ports (master):

py-poppler-qt5: fix use of qt5 PortGroup

Fixes: #56723

Note: See TracTickets for help on using tickets.