Summary: | dev-qt/qtmultimedia-5.12.5: emake failed: /usr/include/qt5/QtCore/qconfig.h:1:10: fatal error: /usr/include/qt5/Gentoo/gentoo-qconfig.h: Permission denied | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | polynomial-c |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 691738 | ||
Attachments: | build.og |
Description
Thomas Deutschmann (RETIRED)
2019-10-21 00:38:30 UTC
Perhaps because of suspicious uid/gid? # find /usr -user portage | xargs ls -l -rw-r--r-- 1 portage portage 312 Oct 14 22:53 /usr/include/qt5/Gentoo/gentoo-qconfig.h So here are our (asturm's and mine) findings: # pwd /var/tmp/portage # stat -c %U:%G dev-qt/qtcore-5.12.5/temp/gentoo-qconfig.h portage:portage # stat -c %U:%G dev-qt/qtcore-5.12.5/image/usr/include/qt5/Gentoo/gentoo-qconfig.h root:root # stat -c %U:%G /usr/include/qt5/Gentoo/gentoo-qconfig.h portage:portage The file gets its content from qt5_regenerate_global_configs function in qt5-build.eclass. It's called in pkg_postinst for qtcore. Changing the following line "fixes" the issue: --- /var/portage/eclass/qt5-build.eclass +++ /usr/local/portage/eclass/qt5-build.eclass @@ -816,7 +816,7 @@ -execdir cat '{}' + | sort -u > "${T}"/gentoo-qconfig.h [[ -s ${T}/gentoo-qconfig.h ]] || ewarn "Generated gentoo-qconfig.h is empty" - mv -f "${T}"/gentoo-qconfig.h "${ROOT%/}${QT5_HEADERDIR}"/Gentoo/gentoo-qconfig.h \ + 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" (In reply to Lars Wendler (Polynomial-C) from comment #2) > # stat -c %U:%G > dev-qt/qtcore-5.12.5/image/usr/include/qt5/Gentoo/gentoo-qconfig.h > root:root > # stat -c %U:%G /usr/include/qt5/Gentoo/gentoo-qconfig.h > portage:portage To extend on that: # ebuild qtcore-5.13.1.ebuild clean install # ls -l image/usr/include/qt5/Gentoo/gentoo-qconfig.h > -rw-r--r-- 1 root root # ebuild qtcore-5.13.1.ebuild postinst > Appending /home/andreas/projects/qt to PORTDIR_OVERLAY... > * Regenerating gentoo-qconfig.h > * Updating QT_CONFIG in qconfig.pri > * Updating QT.global_private in qmodule.pri # ls -l image/usr/include/qt5/Gentoo/gentoo-qconfig.h > -rw-r--r-- 1 root root But then: # ebuild qtcore-5.13.1.ebuild merge # ls -l /usr/include/qt5/Gentoo/gentoo-qconfig.h > -rw-r--r-- 1 portage portage So this is wild. No code relevant qt5-build.eclass change since June 18th. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a1415c646749d50a6dd36bcea2a6e014ab3c968 commit 1a1415c646749d50a6dd36bcea2a6e014ab3c968 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-21 11:15:55 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-21 11:18:07 +0000 dev-qt/qtcore: Empty revbump to fix file ownership Bug: https://bugs.gentoo.org/698174 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-qt/qtcore/{qtcore-5.12.5.ebuild => qtcore-5.12.5-r1.ebuild} | 0 1 file changed, 0 insertions(+), 0 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d1ea18157c45fb93756378a38318a3f6e1a7967 commit 6d1ea18157c45fb93756378a38318a3f6e1a7967 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-21 11:11:20 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-21 11:18:07 +0000 qt5-build.eclass: qt5_regenerate_global_configs: use `cp` instead of `mv` Thanks-to: Lars Wendler <polynomial-c@gentoo.org> Bug: https://bugs.gentoo.org/698174 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> eclass/qt5-build.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=314a076dda74be6a08694f12013e740a45438192 commit 314a076dda74be6a08694f12013e740a45438192 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-10-21 11:21:34 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-10-21 11:22:50 +0000 qt5-build.eclass: qt5_regenerate_global_configs: use `cp` instead of `mv` Thanks-to: Lars Wendler <polynomial-c@gentoo.org> Bug: https://bugs.gentoo.org/698174 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> eclass/qt5-build.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Please try again after upgrade to qtcore-5.12.5-r1. I'll consider this as fixed after the eclass change, please re-open if it happens again. |