qt55.qtbase: set compose search path
This was previously set using substituteInPlace, but this leads to duplicate search paths.
This commit is contained in:
parent
14f27e5eb7
commit
081b1f1707
@ -0,0 +1,16 @@
|
|||||||
|
Index: qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
|
||||||
|
===================================================================
|
||||||
|
--- qt-everywhere-opensource-src-5.5.1.orig/qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
|
||||||
|
+++ qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp
|
||||||
|
@@ -68,10 +68,7 @@ void TableGenerator::initPossibleLocatio
|
||||||
|
// the QTCOMPOSE environment variable
|
||||||
|
if (qEnvironmentVariableIsSet("QTCOMPOSE"))
|
||||||
|
m_possibleLocations.append(QString::fromLocal8Bit(qgetenv("QTCOMPOSE")));
|
||||||
|
- m_possibleLocations.append(QStringLiteral("/usr/share/X11/locale"));
|
||||||
|
- m_possibleLocations.append(QStringLiteral("/usr/local/share/X11/locale"));
|
||||||
|
- m_possibleLocations.append(QStringLiteral("/usr/lib/X11/locale"));
|
||||||
|
- m_possibleLocations.append(QStringLiteral("/usr/local/lib/X11/locale"));
|
||||||
|
+ m_possibleLocations.append(QStringLiteral("${libX11}/share/X11/locale"));
|
||||||
|
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/share/X11/locale"));
|
||||||
|
m_possibleLocations.append(QStringLiteral(X11_PREFIX "/lib/X11/locale"));
|
||||||
|
}
|
@ -53,9 +53,6 @@ stdenv.mkDerivation {
|
|||||||
substituteInPlace configure --replace /bin/pwd pwd
|
substituteInPlace configure --replace /bin/pwd pwd
|
||||||
substituteInPlace qtbase/configure --replace /bin/pwd pwd
|
substituteInPlace qtbase/configure --replace /bin/pwd pwd
|
||||||
substituteInPlace qtbase/src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls
|
substituteInPlace qtbase/src/corelib/global/global.pri --replace /bin/ls ${coreutils}/bin/ls
|
||||||
substituteInPlace qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp \
|
|
||||||
--replace /usr/share/X11/locale ${libX11}/share/X11/locale \
|
|
||||||
--replace /usr/lib/X11/locale ${libX11}/share/X11/locale
|
|
||||||
sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i config.tests/*/*.test -i qtbase/mkspecs/*/*.conf
|
sed -e 's@/\(usr\|opt\)/@/var/empty/@g' -i config.tests/*/*.test -i qtbase/mkspecs/*/*.conf
|
||||||
|
|
||||||
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "qtbase/src/corelib/Qt5Config.cmake.in"
|
sed -i 's/PATHS.*NO_DEFAULT_PATH//' "qtbase/src/corelib/Qt5Config.cmake.in"
|
||||||
@ -77,6 +74,10 @@ stdenv.mkDerivation {
|
|||||||
substituteInPlace qtbase/src/dbus/qdbus_symbols.cpp \
|
substituteInPlace qtbase/src/dbus/qdbus_symbols.cpp \
|
||||||
--replace "@dbus_libs@" "${dbus}"
|
--replace "@dbus_libs@" "${dbus}"
|
||||||
|
|
||||||
|
substituteInPlace \
|
||||||
|
qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp \
|
||||||
|
--replace "@libX11@" "${libX11}"
|
||||||
|
|
||||||
if [[ -n "$gtkStyle" ]]; then
|
if [[ -n "$gtkStyle" ]]; then
|
||||||
substituteInPlace qtbase/src/widgets/styles/qgtk2painter.cpp --replace "@gtk@" "${gtk}"
|
substituteInPlace qtbase/src/widgets/styles/qgtk2painter.cpp --replace "@gtk@" "${gtk}"
|
||||||
substituteInPlace qtbase/src/widgets/styles/qgtkstyle_p.cpp \
|
substituteInPlace qtbase/src/widgets/styles/qgtkstyle_p.cpp \
|
||||||
|
@ -5,3 +5,4 @@ dlopen-openssl.patch
|
|||||||
dlopen-dbus.patch
|
dlopen-dbus.patch
|
||||||
xdg-config-dirs.patch
|
xdg-config-dirs.patch
|
||||||
nix-profiles-library-paths.patch
|
nix-profiles-library-paths.patch
|
||||||
|
compose-search-path.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user