1 |
commit: 7536ec0475e6339a5ff706677a096814d750e072 |
2 |
Author: i.Dark_Templar <darktemplar <AT> dark-templar-archives <DOT> net> |
3 |
AuthorDate: Thu Oct 19 20:58:00 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 25 12:10:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=7536ec04 |
7 |
|
8 |
qt5-build.eclass: fix qconfig.pri regeneration. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/5991 |
11 |
|
12 |
eclass/qt5-build.eclass | 12 +++++++++--- |
13 |
1 file changed, 9 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass |
16 |
index 82855656..54e4b321 100644 |
17 |
--- a/eclass/qt5-build.eclass |
18 |
+++ b/eclass/qt5-build.eclass |
19 |
@@ -803,6 +803,11 @@ qt5_install_module_qconfigs() { |
20 |
insinto "${QT5_ARCHDATADIR#${EPREFIX}}"/mkspecs/gentoo |
21 |
doins "${T}"/${PN}-qconfig.pri |
22 |
) |
23 |
+ |
24 |
+ if [[ ${PN} = qtcore ]]; then |
25 |
+ insinto "${QT5_ARCHDATADIR#${EPREFIX}}"/mkspecs/gentoo |
26 |
+ newins "${D}${QT5_ARCHDATADIR#${EPREFIX}}"/mkspecs/qconfig.pri qconfig-qtcore.pri |
27 |
+ fi |
28 |
} |
29 |
|
30 |
# @FUNCTION: qt5_regenerate_global_qconfigs |
31 |
@@ -824,9 +829,10 @@ qt5_regenerate_global_qconfigs() { |
32 |
einfo "Updating QT_CONFIG in qconfig.pri" |
33 |
|
34 |
local qconfig_pri=${ROOT%/}${QT5_ARCHDATADIR}/mkspecs/qconfig.pri |
35 |
- if [[ -f ${qconfig_pri} ]]; then |
36 |
+ local qconfig_pri_orig=${ROOT%/}${QT5_ARCHDATADIR}/mkspecs/gentoo/qconfig-qtcore.pri |
37 |
+ if [[ -f ${qconfig_pri} && -f ${qconfig_pri_orig} ]]; then |
38 |
local x qconfig_add= qconfig_remove= |
39 |
- local qt_config=$(sed -n 's/^QT_CONFIG\s*+=\s*//p' "${qconfig_pri}") |
40 |
+ local qt_config=$(sed -n 's/^QT_CONFIG\s*+=\s*//p' "${qconfig_pri_orig}") |
41 |
local new_qt_config= |
42 |
|
43 |
# generate list of QT_CONFIG entries from the existing list, |
44 |
@@ -847,6 +853,6 @@ qt5_regenerate_global_qconfigs() { |
45 |
sed -i -e "s/^QT_CONFIG\s*+=.*/QT_CONFIG +=${new_qt_config}/" \ |
46 |
"${qconfig_pri}" || eerror "Failed to sed QT_CONFIG in ${qconfig_pri}" |
47 |
else |
48 |
- ewarn "${qconfig_pri} does not exist or is not a regular file" |
49 |
+ ewarn "${qconfig_pri} or ${qconfig_pri_orig} does not exist or is not a regular file" |
50 |
fi |
51 |
} |