Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906513 - dev-qt/qtdeclarative-5.15.9 fails to build
Summary: dev-qt/qtdeclarative-5.15.9 fails to build
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-16 03:55 UTC by Jeremy
Modified: 2023-05-17 16:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gzip-compressed build.log (build.log.gz,28.95 KB, application/gzip)
2023-05-16 03:55 UTC, Jeremy
Details
emerge --info (file_906513.txt,16.27 KB, text/plain)
2023-05-16 03:57 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy 2023-05-16 03:55:17 UTC
Created attachment 861779 [details]
gzip-compressed build.log

The package dev-qt/qtdeclarative-5.15.9 fails to build due to apparent source code errors. The file gentoo-qconfig.h is empty.

The build.log file is attached.

emerge --info output:
sprunge.us/zqYZrz
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 03:57:11 UTC
In future, please give emerge --info as a comment or attachment, as pastebins can expire.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 03:57:24 UTC
Created attachment 861780 [details]
emerge --info
Comment 3 Jeremy 2023-05-16 04:09:26 UTC
By the way, I have tried re-emerging qtcore, qtgui, and qtnetwork.
Comment 4 Chiitoo gentoo-dev 2023-05-16 07:41:43 UTC
There have been some reports with the config being empty due to, for example, something in the PATH variable making a find command fail [1][2], though there might be more causes than that [3] which remain unknown, and I don't see anything immediately odd in the 'emerge --info' provided PATH here at least...

1. https://forums.gentoo.org/viewtopic-t-1161660.html
2. https://forums.gentoo.org/viewtopic-t-1163101.html
3. https://forums.gentoo.org/viewtopic-t-1161250.html
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-16 07:46:05 UTC
(In reply to Chiitoo from comment #4)
> There have been some reports with the config being empty due to, for
> example, something in the PATH variable making a find command fail [1][2],
> though there might be more causes than that [3] which remain unknown, and I
> don't see anything immediately odd in the 'emerge --info' provided PATH here
> at least...
> 
> 1. https://forums.gentoo.org/viewtopic-t-1161660.html
> 2. https://forums.gentoo.org/viewtopic-t-1163101.html
> 3. https://forums.gentoo.org/viewtopic-t-1161250.html

We need to, if nothing else, add a check in the eclass where it aborts if the thing it just generated is empty.
Comment 6 Chiitoo gentoo-dev 2023-05-17 16:57:15 UTC
(In reply to Sam James from comment #5)
> (In reply to Chiitoo from comment #4)
> > There have been some reports with the config being empty due to, for
> > example, something in the PATH variable making a find command fail [1][2],
> > though there might be more causes than that [3] which remain unknown, and I
> > don't see anything immediately odd in the 'emerge --info' provided PATH here
> > at least...
> > 
> > 1. https://forums.gentoo.org/viewtopic-t-1161660.html
> > 2. https://forums.gentoo.org/viewtopic-t-1163101.html
> > 3. https://forums.gentoo.org/viewtopic-t-1161250.html
> 
> We need to, if nothing else, add a check in the eclass where it aborts if
> the thing it just generated is empty.

I think at least in one of the cases, it should have happened at around here:

https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/qt5-build.eclass#n881

Which is a part of:


# Don't call die here because dying in pkg_post{inst,rm} only makes things worse.
qt5_regenerate_global_configs() {
	einfo "Regenerating gentoo-qconfig.h"

	find "${ROOT}${QT5_HEADERDIR}"/Gentoo \
		-name '*-qconfig.h' -a \! -name 'gentoo-qconfig.h' -type f \
		-execdir cat '{}' + | sort -u > "${T}"/gentoo-qconfig.h

	[[ -s ${T}/gentoo-qconfig.h ]] || ewarn "Generated gentoo-qconfig.h is empty"
	cp "${T}"/gentoo-qconfig.h "${ROOT}${QT5_HEADERDIR}"/Gentoo/gentoo-qconfig.h \
		|| eerror "Failed to install new gentoo-qconfig.h"

	einfo "Updating QT_CONFIG in qconfig.pri"


So, there should at least be message(s) about it there, though no 'die' as it seems it might not be safe.