Compiled on X8DTU with 2 physical Intel Xeon E5530 CPU (8C16T) Source: https://github.com/ibus/ibus Compile Flags: CFLAGS="-mtune=generic -Os -pipe -flto" LDFLAGS="-Wl,-O1" export CFLAGS LDFLAGS # Note: CFLAGS "-flto" reduce compile time # but greatly increase the size of the *.a files # wich results in the increase of size for ibus-dev Dependencies: autogen-dev automake bash compiletc coreutils dconf-dev gettext-dev gnome-common gtk2-dev gtk2-gir gtk3-gir gtk-doc iso-codes python3.6-pygments unicode-character-database unicode-cldr-emoji-annotations unicode-emoji vala-dev Commands: # Create fake python path for python scripts # It must be python3, for python3 modules sudo ln -s /usr/local/bin/python3 /usr/bin/python sudo ln -s /usr/local/bin/python3 /usr/bin/python2.5 # fetch la files cd /usr/local/lib MIRROR='http://repo.tinycorelinux.net/12.x/x86_64/tcz' sudo wget ${MIRROR}/src/la/libgobject-2.0.la sudo wget ${MIRROR}/src/la/libglib-2.0.la # fake path for gtk-query-immodules-3.0 sudo ln -s /usr/local/bin/gtk-query-immodules-3.0 /usr/local/bin/gtk-query-immodules-3.0-32 sudo ln -s /usr/local/bin/gtk-query-immodules-3.0 /usr/local/bin/gtk-query-immodules-3.0-64 tar -xf ibus-1.5.24.tar.gz cd ibus-1.5.24/ # Fix an issue with deprecated schema entries: sed -i 's@/desktop/ibus@/org/freedesktop/ibus@g' \ data/dconf/org.freedesktop.ibus.gschema.xml # fetch missing file in the tarball wget https://raw.githubusercontent.com/ibus/ibus/master/engine/denylist.txt -O engine/denylist.txt ./autogen.sh --prefix=/usr/local \ --sysconfdir=/usr/local/etc \ --libdir=/usr/local/lib \ --libexecdir=/usr/local/lib/ibus \ --datarootdir=/usr/local/share \ --enable-vala=yes \ --enable-python-library \ --enable-wayland \ --enable-static \ --enable-shared \ --disable-gtk-doc \ --with-python=/usr/local/bin/python3 \ --with-unicode-emoji-dir=/usr/local/share/unicode/emoji \ --with-emoji-annotation-dir=/usr/local/share/unicode/cldr/common/annotations \ --with-ucd-dir=/usr/local/share/unicode/ucd make -j ### [ compile time: ~3 min ] ## optional check ### some tests could fail because mylocale.tcz may not support the language ### or require a running X server make -k check Adjustments for each package: ibus.tcz: - etc/profile.d/ibus.sh -> environment variables - usr/local/tce.installed/ibus -> commands for configs ibus-gtk2.tcz: - usr/local/tce.installed/ibus-gtk2 -> commands to refresh cache ibus-dev.tcz: - *.la -> find -name '*.la' -exec sed -i 's:/lib/\.\./lib/:/lib/:g' {} + Configuration Summary ------------------------------------------------------------------------- Build options: Version 1.5.24 Install prefix /usr/local Build shared libs yes Build static libs yes CFLAGS -mtune=generic -Os -pipe -flto PYTHON /usr/local/bin/python3 PYTHON2 /usr/local/bin/python3 Enable python2 yes Gtk2 immodule dir /usr/local/lib/gtk-2.0/2.10.0/immodules Gtk3 immodule dir /usr/local/lib/gtk-3.0/3.0.0/immodules Gtk4 immodule dir Build gtk2 immodule yes Build gtk3 immodule yes Build gtk4 immodule no (disabled, use --enable-gtk4 to enable) Build XIM agent server yes Build wayland support yes Build gdk3 wayland support yes Build appindicator support yes (enabled, use --disable-appindicator to disable) Build python library yes Build memconf modules no Build dconf modules yes (enabled, use --disable-dconf to disable) Build introspection yes IBus-1.0.gir scannerflags "--warn-all --identifier-prefix=IBus --symbol-prefix=ibus --c-include=ibus.h" Build vala binding yes Build document no (disabled, use --enable-gtk-doc to enable) Build UI yes (enabled, use --disable-ui to disable) Build engine yes (enabled, use --disable-engine to disable) Enable key snooper yes No snooper regexes "firefox.*,.*chrome.*,.*chromium.*,terminator" Panel icon "ibus-keyboard" Enable surrounding-text yes Enable Emoji dict yes (enabled, use --disable-emoji-dict to disable) Unicode Emoji directory /usr/local/share/unicode/emoji CLDR annotation directory /usr/local/share/unicode/cldr/common/annotations Enable Unicode dict yes (enabled, use --disable-unicode-dict to disable) UCD directory /usr/local/share/unicode/ucd Socket directory "unix:tmpdir=$XDG_CACHE_HOME/ibus" Run test cases yes Install tests no (disabled, use --enable-install-tests to enable) # ===============Rebuild for python2.7=================== # configure --with-python=/usr/local/bin/python2 # load python-dev, be caucious for python3 script # replace the shebang in file engine/gensimple.py # #!/usr/local/bin/python3 # replace links for python2 # /usr/bin/python /usr/bin/python2.5 # ===============using different link==================== tce-load -i python-dev.tcz sed -i '1 s:^.*$:#!/usr/local/bin/python3:' engine/gensimple.py sudo rm -f /usr/bin/python /usr/bin/python2.5 sudo ln -s /usr/local/bin/python2.7 /usr/bin/python sudo ln -s /usr/local/bin/python2.7 /usr/bin/python2.5 ./configure --prefix=/usr/local \ --sysconfdir=/usr/local/etc \ --libdir=/usr/local/lib \ --libexecdir=/usr/local/lib/ibus \ --datarootdir=/usr/local/share \ --enable-vala=yes \ --enable-python-library \ --enable-wayland \ --enable-static \ --enable-shared \ --disable-gtk-doc \ --with-python=/usr/local/bin/python2 \ --with-unicode-emoji-dir=/usr/local/share/unicode/emoji \ --with-emoji-annotation-dir=/usr/local/share/unicode/cldr/common/annotations \ --with-ucd-dir=/usr/local/share/unicode/ucd