Bug 245862 - make devel/qt5-core depend on devel/qt5-buildtools
Summary: make devel/qt5-core depend on devel/qt5-buildtools
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: kde
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-24 00:14 UTC by Piotr Smyrak
Modified: 2020-05-03 12:59 UTC (History)
1 user (show)

See Also:
tcberner: maintainer-feedback+


Attachments
A proposal to address the problem (530 bytes, patch)
2020-04-26 18:03 UTC, Piotr Smyrak
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Smyrak 2020-04-24 00:14:47 UTC
Upgrading qt5-core port from 5.13.2 to 5.14.2 will fail if devel/qt5-buildtools was not upgraded first. 

This dependency is not reflected in the qt5-core package though neither before nor after upgrading:

$ pkg info -d qt5-core-5.14.2_2
Depends on     :
        etc_os-release-0.1_2
        qtchooser-66_2
        pcre2-10.34
        icu-67.1,1
        glib-2.56.3_7,1
        gettext-runtime-0.20.1
Comment 1 Tobias C. Berner freebsd_committer 2020-04-24 04:34:45 UTC
Moin moin

> make -VBUILD_DEPENDS -C devel/qt5-core
pkgconf>=1.3.0_1:devel/pkgconf /usr/local/lib/qt5/bin/moc:devel/qt5-buildtools /usr/local/lib/qt5/bin/qmake:devel/qt5-qmake

It alraedy depends on buildtools.

mfg Tobias
Comment 2 Piotr Smyrak 2020-04-24 17:32:55 UTC
This report might be as well moot then. Although it is somewhat weird that it's possible to overlook such hard dependency as long as one has the previous non satisfiable version installed, which was the case on my part.
Comment 3 Piotr Smyrak 2020-04-26 18:03:31 UTC
Created attachment 213821 [details]
A proposal to address the problem

I am attaching a patch to the devel/qt5-core Makefile that demonstrates certain approach to the dependency.
Comment 4 Tobias C. Berner freebsd_committer 2020-04-27 15:48:35 UTC
Moin moin 

Thanks for the patch!... But... 

Such a patch will not be committed. The port already depends on buildtools, and it's the duty of the port-building tool to resolve the order correctly.

I'm not sure what tool you are using for upgrading, but something seems to go wrong there -- I would suggest this PR is moved to the tool, instead of qt5-core, and fixed there :)

Let me know if I can help you with that.


mfg Tobias
Comment 5 Piotr Smyrak 2020-05-03 12:59:51 UTC
Hmm, I guess, I disagree. 

This will bite people even if one builds ports manually and qt5-buildtools older version is installed. That was my case.

FWIW, over 20 years I have seen such protections in ports or documented in UPDATING quite often, one notorious example would be each major Xorg upgrade.