[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1023340: ibus: Fix build on non-Linux



Package: ibus
Version: 1.5.27-2+b1
Severity: important
Tags: patch

Hello,

ibus currently unconditionally depends on systemd, which is Linux-only.
The attached patch fixes that (and a chmod +x debian/ibus.install is
needed), could you apply it?

Thanks,
Samuel

-- Package-specific info:
ibus is /usr/bin/ibus
ibus-setup is /usr/bin/ibus-setup
im-config -l =>  ibus xim
im-config -m => 'default' 'missing' 'ibus' '' 'ibus'

XMODIFIERS=@im=none
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
WAYLAND_DISPLAY=
XDG_CURRENT_DESKTOP=
XDG_MENU_PREFIX=
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=
XDG_SESSION_ID=1
XDG_SESSION_TYPE=tty

== ls -l /usr/lib/ibus/ibus-* /usr/libexec/ibus-* ==
/bin/ls: cannot access '/usr/lib/ibus/ibus-*': No such file or directory
-rwxr-xr-x 1 root root  22832 Oct 15 22:32 /usr/libexec/ibus-dconf
-rwxr-xr-x 1 root root  14640 Oct 15 22:32 /usr/libexec/ibus-engine-simple
-rwxr-xr-x 1 root root 166192 Oct 15 22:32 /usr/libexec/ibus-extension-gtk3
-rwxr-xr-x 1 root root  18736 Oct 15 22:32 /usr/libexec/ibus-memconf
-rwxr-xr-x 1 root root  92464 Oct 15 22:32 /usr/libexec/ibus-portal
-rwxr-xr-x 1 root root 121144 Oct 15 22:32 /usr/libexec/ibus-ui-emojier
-rwxr-xr-x 1 root root 321904 Oct 15 22:32 /usr/libexec/ibus-ui-gtk3
-rwxr-xr-x 1 root root 100280 Oct 15 22:32 /usr/libexec/ibus-x11

== dpkg-query -l 'ibus*' ==
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version                    Architecture Description
+++-==================-==========================-============-=======================================
ii  ibus               1.5.27-2+b1                amd64        Intelligent Input Bus - core
un  ibus-anthy         <none>                     <none>       (no description available)
un  ibus-array         <none>                     <none>       (no description available)
ii  ibus-braille       0.3-7                      all          Braille input engine for IBus
ii  ibus-clutter:amd64 0.0+git20090728.a936bacf-7 amd64        ibus input method framework for clutter
ii  ibus-data          1.5.27-2                   all          Intelligent Input Bus - data files
un  ibus-doc           <none>                     <none>       (no description available)
un  ibus-el            <none>                     <none>       (no description available)
un  ibus-googlepinyin  <none>                     <none>       (no description available)
ii  ibus-gtk:amd64     1.5.27-2+b1                amd64        Intelligent Input Bus - GTK2 support
ii  ibus-gtk3:amd64    1.5.27-2+b1                amd64        Intelligent Input Bus - GTK3 support
ii  ibus-gtk4:amd64    1.5.27-2+b1                amd64        Intelligent Input Bus - GTK4 support
un  ibus-pinyin        <none>                     <none>       (no description available)

=== gsettings ===
org.freedesktop.ibus.general dconf-preserve-name-prefixes ['/desktop/ibus/engine/pinyin', '/desktop/ibus/engine/bopomofo', '/desktop/ibus/engine/hangul']
org.freedesktop.ibus.general embed-preedit-text true
org.freedesktop.ibus.general enable-by-default false
org.freedesktop.ibus.general engines-order ['xkb:us::eng', 'xkb:fr:oss:fra', 'braille', 'xkb:fr::fra']
org.freedesktop.ibus.general preload-engines ['xkb:us::eng', 'xkb:fr:oss:fra', 'braille', 'xkb:fr::fra']
org.freedesktop.ibus.general switcher-delay-time 400
org.freedesktop.ibus.general use-global-engine true
org.freedesktop.ibus.general use-system-keyboard-layout false
org.freedesktop.ibus.general use-xmodmap true
org.freedesktop.ibus.general version '1.5.21'
org.freedesktop.ibus.general xkb-latin-layouts ['af', 'af(fa-olpc)', 'af(ps-olpc)', 'af(ps)', 'af(uz)', 'af(uz-olpc)', 'am', 'am(eastern)', 'am(eastern-alt)', 'am(phonetic)', 'am(phonetic-alt)', 'am(western)', 'ara', 'ara(azerty)', 'ara(azerty_digits)', 'ara(buckwalter)', 'ara(digits)', 'ara(qwerty)', 'ara(qwerty_digits)', 'az(cyrillic)', 'bd', 'bd(probhat)', 'bg', 'bg(bas_phonetic)', 'bg(phonetic)', 'brai', 'brai(left_hand)', 'brai(right_hand)', 'bt', 'by', 'by(legacy)', 'ca(ike)', 'ca(multi-2gr)', 'cn(tib)', 'cn(tib_asciinum)', 'cn(ug)', 'cz', 'cz(ucw)', 'de(ru)', 'dev', 'et', 'fr(geo)', 'ge', 'ge(os)', 'gr', 'gr(extended)', 'gr(nodeadkeys)', 'gr(polytonic)', 'gr(simple)', 'gur', 'il', 'il(biblical)', 'il(lyx)', 'il(phonetic)', 'in', 'in(ben)', 'in(ben_baishakhi)', 'in(ben_bornona)', 'in(ben_gitanjali)', 'in(ben_inscript)', 'in(ben_probhat)', 'in(bolnagri)', 'in(deva)', 'in(guj)', 'in(guru)', 'in(hin-kagapa)', 'in(hin-wx)', 'in(jhelum)', 'in(kan)', 'in(kan-kagapa)', 'in(mal)', 'in(mal_enhanced)', 'in(mal_lalitha)', 'in(mar-kagapa)', 'in(ori)', 'in(san-kagapa)', 'in(tam)', 'in(tam_tamilnet)', 'in(tam_tamilnet_TAB)', 'in(tam_tamilnet_TSCII)', 'in(tam_tamilnet_with_tam_nums)', 'in(tel)', 'in(tel-kagapa)', 'in(urd-phonetic)', 'in(urd-phonetic3)', 'in(urd-winkeys)', 'iq', 'ir', 'ir(pes_keypad)', 'jp(kana)', 'jp(mac)', 'kg', 'kg(phonetic)', 'kh', 'kz', 'kz(kazrus)', 'kz(ruskaz)', 'la', 'la(stea)', 'lk', 'lk(tam_TAB)', 'lk(tam_unicode)', 'ma', 'ma(tifinagh)', 'ma(tifinagh-alt)', 'ma(tifinagh-alt-phonetic)', 'ma(tifinagh-extended)', 'ma(tifinagh-extended-phonetic)', 'ma(tifinagh-phonetic)', 'me(cyrillic)', 'me(cyrillicalternatequotes)', 'me(cyrillicyz)', 'mk', 'mk(nodeadkeys)', 'mm', 'mn', 'mv', 'np', 'ph(capewell-dvorak-bay)', 'ph(capewell-qwerf2k6-bay)', 'ph(colemak-bay)', 'ph(dvorak-bay)', 'ph(qwerty-bay)', 'pk', 'pk(ara)', 'pk(snd)', 'pk(urd-crulp)', 'pk(urd-nla)', 'pl(ru_phonetic_dvorak)', 'rs', 'rs(alternatequotes)', 'rs(rue)', 'rs(yz)', 'ru', 'ru(bak)', 'ru(chm)', 'ru(cv)', 'ru(dos)', 'ru(kom)', 'ru(legacy)', 'ru(mac)', 'ru(os_legacy)', 'ru(os_winkeys)', 'ru(phonetic)', 'ru(phonetic_winkeys)', 'ru(sah)', 'ru(srp)', 'ru(tt)', 'ru(typewriter)', 'ru(typewriter-legacy)', 'ru(udm)', 'ru(xal)', 'se(rus)', 'se(rus_nodeadkeys)', 'se(swl)', 'sy', 'sy(syc)', 'sy(syc_phonetic)', 'th', 'th(pat)', 'th(tis)', 'tj', 'tj(legacy)', 'tz', 'ua', 'ua(homophonic)', 'ua(legacy)', 'ua(phonetic)', 'ua(rstu)', 'ua(rstu_ru)', 'ua(typewriter)', 'ua(winkeys)', 'us(chr)', 'us(rus)', 'uz']
org.freedesktop.ibus.general.hotkey disable-unconditional @as []
org.freedesktop.ibus.general.hotkey enable-unconditional @as []
org.freedesktop.ibus.general.hotkey next-engine ['Alt+Shift_L']
org.freedesktop.ibus.general.hotkey next-engine-in-menu ['Alt+Shift_L']
org.freedesktop.ibus.general.hotkey prev-engine @as []
org.freedesktop.ibus.general.hotkey previous-engine @as []
org.freedesktop.ibus.general.hotkey trigger ['Control+space', 'Zenkaku_Hankaku', 'Alt+Kanji', 'Alt+grave', 'Hangul', 'Alt+Release+Alt_R']
org.freedesktop.ibus.general.hotkey triggers ['<Control>Tab']
org.freedesktop.ibus.panel auto-hide-timeout 10000
org.freedesktop.ibus.panel custom-font 'Sans 10'
org.freedesktop.ibus.panel custom-icon 'Adwaita'
org.freedesktop.ibus.panel custom-theme 'Adwaita'
org.freedesktop.ibus.panel follow-input-cursor-when-always-shown false
org.freedesktop.ibus.panel lookup-table-orientation 0
org.freedesktop.ibus.panel property-icon-delay-time 500
org.freedesktop.ibus.panel show 2
org.freedesktop.ibus.panel show-icon-on-systray true
org.freedesktop.ibus.panel show-im-name false
org.freedesktop.ibus.panel use-custom-font false
org.freedesktop.ibus.panel use-custom-icon false
org.freedesktop.ibus.panel use-custom-theme false
org.freedesktop.ibus.panel use-glyph-from-engine-lang true
org.freedesktop.ibus.panel x -1
org.freedesktop.ibus.panel xkb-icon-rgba '#51a2da'
org.freedesktop.ibus.panel y -1
org.freedesktop.ibus.panel.emoji favorite-annotations @as []
org.freedesktop.ibus.panel.emoji favorites @as []
org.freedesktop.ibus.panel.emoji font 'Monospace 16'
org.freedesktop.ibus.panel.emoji has-partial-match false
org.freedesktop.ibus.panel.emoji hotkey ['<Super>period']
org.freedesktop.ibus.panel.emoji lang 'en'
org.freedesktop.ibus.panel.emoji load-emoji-at-startup true
org.freedesktop.ibus.panel.emoji load-unicode-at-startup false
org.freedesktop.ibus.panel.emoji partial-match-condition 0
org.freedesktop.ibus.panel.emoji partial-match-length 3
org.freedesktop.ibus.panel.emoji unicode-hotkey ['<Control><Shift>u']

=== localectl status ===
   System Locale: LANG=fr_FR.UTF-8
       VC Keymap: n/a
      X11 Layout: fr,brai
       X11 Model: pc105
     X11 Variant: oss,
     X11 Options: compose:lwin,nbsp:level3n,grp:shift_caps_toggle,grp_led:scroll,terminate:ctrl_alt_bksp,kpdl:kposs

=== /etc/X11/default-display-manager ===
/usr/sbin/lightdm

=== setxkbmap -print ===


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.0.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ibus depends on:
ii  adwaita-icon-theme   43-1
ii  dconf-cli            0.40.0-3
ii  gir1.2-gtk-3.0       3.24.34-3
ii  gir1.2-ibus-1.0      1.5.27-2+b1
ii  ibus-data            1.5.27-2
ii  init-system-helpers  1.65.2
ii  libatk1.0-0          2.46.0-3
ii  libc6                2.35-4
ii  libcairo2            1.16.0-6
ii  libdconf1            0.40.0-3
ii  libgdk-pixbuf-2.0-0  2.42.9+dfsg-1
ii  libglib2.0-0         2.74.0-3
ii  libgtk-3-0           3.24.34-3
ii  libibus-1.0-5        1.5.27-2+b1
ii  libnotify4           0.8.1-1
ii  libpango-1.0-0       1.50.10+ds-1
ii  libpangocairo-1.0-0  1.50.10+ds-1
ii  libx11-6             2:1.8.1-2
ii  libxfixes3           1:6.0.0-2
ii  libxi6               2:1.8-1+b1
ii  python3              3.10.6-1
ii  python3-gi           3.42.2-2
ii  python3-ibus-1.0     1.5.27-2

Versions of packages ibus recommends:
ii  ibus-gtk   1.5.27-2+b1
ii  ibus-gtk3  1.5.27-2+b1
ii  ibus-gtk4  1.5.27-2+b1
ii  im-config  0.52-1

Versions of packages ibus suggests:
ii  ibus-clutter  0.0+git20090728.a936bacf-7
pn  ibus-doc      <none>

-- no debconf information

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
--- debian/control.original	2022-11-02 15:42:45.672349418 +0100
+++ debian/control	2022-11-02 16:28:50.363766525 +0100
@@ -7,6 +7,7 @@
            Osamu Aoki <osamu@debian.org>,
 Build-Depends: dbus-x11 (>= 1.8) <!nocheck>,
                debhelper-compat (= 13),
+               dh-exec,
                desktop-file-utils,
                dh-python,
                gettext (>= 0.19.8),
@@ -29,7 +30,7 @@
                pkg-config (>= 0.16),
                python-gi-dev (>= 3.0.0~),
                python3-all,
-               systemd,
+               systemd [linux-any],
                unicode-cldr-core,
                unicode-data (>= 13.0.0-2),
                valac (>= 0.20),
--- debian/rules.original	2022-11-02 16:05:11.033824809 +0100
+++ debian/rules	2022-11-02 16:11:28.076350098 +0100
@@ -63,9 +63,9 @@
 CONFIGURE_FLAGS += --enable-memconf
 
 ifeq ($(DEB_HOST_ARCH_OS),linux)
-CONFIGURE_FLAGS += --enable-wayland
+CONFIGURE_FLAGS += --enable-wayland --enable-systemd-services
 else
-CONFIGURE_FLAGS += --disable-wayland
+CONFIGURE_FLAGS += --disable-wayland --disable-systemd-services
 endif
 
 override_dh_auto_configure:
--- debian/ibus.install.original	2022-11-02 16:29:14.015970707 +0100
+++ debian/ibus.install	2022-11-02 16:29:20.144023521 +0100
@@ -1,9 +1,10 @@
+#! /usr/bin/dh-exec
 etc/dconf/*
 etc/xdg/Xwayland-session.d/*
 usr/bin/ibus
 usr/bin/ibus-daemon
 usr/bin/ibus-setup
-usr/lib/systemd/user/*
+[linux-any] usr/lib/systemd/user/*
 usr/libexec/ibus-dconf
 usr/libexec/ibus-engine-simple
 usr/libexec/ibus-extension-gtk3

Reply to: