Bug 285427 - devel/qt5-buildtools: POST-INSTALL script failed
Summary: devel/qt5-buildtools: POST-INSTALL script failed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-15 09:14 UTC by Antoine Brodin
Modified: 2025-03-15 17:06 UTC (History)
2 users (show)

See Also:
jhale: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Brodin freebsd_committer freebsd_triage 2025-03-15 09:14:25 UTC
In poudriere logs,  there is a lot of:

===>   qt5-network-5.15.16p130_1 depends on package: qt5-buildtools>=5.15 - not found
===>   Installing existing package /packages/All/qt5-buildtools-5.15.16p130.pkg
[141amd64-default-build-as-user-job-08] Installing qt5-buildtools-5.15.16p130...
[141amd64-default-build-as-user-job-08] Extracting qt5-buildtools-5.15.16p130: .......... done
touch: /usr/local/include/qt5/QtCore/qconfig-modules.h: No such file or directory
sed: /usr/local/include/qt5/QtCore/qconfig-modules.h: No such file or directory
pkg-static: POST-INSTALL script failed
===>   qt5-network-5.15.16p130_1 depends on package: qt5-buildtools>=5.15 - found
===>   Returning to build of qt5-network-5.15.16p130_1
===>   qt5-network-5.15.16p130_1 depends on package: qt5-qmake>=5.15 - not found
Comment 1 Jason E. Hale freebsd_committer freebsd_triage 2025-03-15 16:41:00 UTC
Confirmed. The qt-post-install should not be run for qt5-buildtools. Testing fix now.
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-03-15 17:00:04 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=422f868dd716c2ba989a059739f5541db7288e65

commit 422f868dd716c2ba989a059739f5541db7288e65
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-03-15 16:49:55 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-03-15 16:59:41 +0000

    devel/qt5-buildtools: Don't run qt-post-install

    The qt-post-install target is meant to adjust the qconfig-modules.h
    header initially installed by devel/qt5-core, but this is not needed for
    qt5-buildtools and causes POST-INSTALL script failure since this file
    is not installed yet.

    PR:             285427
    Reported by:    antoine

 Mk/Uses/qt-dist.mk            | 6 +++---
 devel/qt5-buildtools/Makefile | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
Comment 3 Jason E. Hale freebsd_committer freebsd_triage 2025-03-15 17:06:32 UTC
This should be fixed now. Thanks for the report!