diff --git a/fcitx-4.2.8.5-fix-bashisms.patch b/fcitx-4.2.8.5-fix-bashisms.patch new file mode 100644 index 0000000..e00d7cf --- /dev/null +++ b/fcitx-4.2.8.5-fix-bashisms.patch @@ -0,0 +1,12 @@ +diff -Ndur fcitx-4.2.8.5/data/env_setup.sh fcitx-4.2.8.5-fix-bashisms/data/env_setup.sh +--- fcitx-4.2.8.5/data/env_setup.sh 2014-09-18 03:26:23.000000000 +0300 ++++ fcitx-4.2.8.5-fix-bashisms/data/env_setup.sh 2014-11-17 02:56:52.806374092 +0200 +@@ -31,7 +31,7 @@ + detect_qt_im_module() + { + QTPATH=`qmake -query QT_INSTALL_PLUGINS` +- ls $QTPATH/inputmethods/*fcitx* &> /dev/null ++ ls $QTPATH/inputmethods/*fcitx* >/dev/null 2>&1 + } + + if [ -z "$XMODIFIERS" ]; then diff --git a/fcitx.changes b/fcitx.changes index ffe02bf..b2ff1bd 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 17 00:58:00 UTC 2014 - Led + +- fix bashism in env_setup.sh script +- add patches: + * fcitx-4.2.8.5-fix-bashisms.patch + ------------------------------------------------------------------- Sun Nov 9 19:42:33 UTC 2014 - i@marguerite.su diff --git a/fcitx.spec b/fcitx.spec index 17f4eb9..8149835 100644 --- a/fcitx.spec +++ b/fcitx.spec @@ -34,6 +34,7 @@ Source7: xinput-fcitx Source8: openSUSE-themes.tar.gz Source9: macros.%{name} Source99: baselibs.conf +Patch: fcitx-4.2.8.5-fix-bashisms.patch BuildRequires: cairo-devel %if 0%{?suse_version} BuildRequires: dbus-1-devel @@ -383,6 +384,7 @@ You can either use this package for download from kde-look.org using knewstaff i %prep %setup -q -n %{name}-%{version} +%patch -p1 # hack to fix incompatibility of gtk-query-immodules-2.0 (bnc#845860) %if %suse_version < 1310 sed -i \