Commit graph

1362 commits

Author SHA1 Message Date
Eberhard Beilharz
c8a0cc4f4a
fix(linux): Fix debian postinst script
The ibus-keyman post-installation script failed, causing the entire
installation to fail. This change removes `set -e` so that we try
to run the rest of the commands even when one command should fail.
Also accounts for ibus-daemon being started with the full path,
and start ibus-daemon with fill path as well.

(cherry picked from commit 9c1500fe57)
2023-02-22 19:43:57 +01:00
Darcy Wong
786c319fca chore(common): Update Fula strings 2023-02-17 08:54:28 +07:00
Eberhard Beilharz
e4caf4d4f5
chore(linux): Exclude autopkg tests on s390x
We don't build the binaries on s390x so it doesn't make sense trying
to run the autopkg tests on s390x. This change imports the changes
made on Debian in pkg version 16.0.138-4.

Co-authored-by: Gunnar Hjalmarsson <gunnarhj@ubuntu.com>
2023-02-13 17:03:22 +01:00
Eberhard Beilharz
fbcab9afb5
fix(linux): Fix autopkgtests 2023-02-09 12:43:33 +01:00
Darcy Wong
3cc4c8c6b6
Merge pull request #8189 from keymanapp/cherrypick/windows/8182-crowdin-kn-cleanup
cherrypick(common): Cleanup Kannada locale 🍒
2023-02-09 16:38:20 +07:00
Eberhard Beilharz
3c325fe052
Merge branch 'stable-16.0' into chore/linux/changelog 2023-02-09 08:52:31 +01:00
Eberhard Beilharz
69a4a61b55
chore(linux): Update changelog from Debian
This overlaps with PR #8180, but it updates the changelog to a
patched version on Debian, so we still need this change.
2023-02-08 15:47:54 +01:00
Darcy Wong
0dc2d4dac7 cherrypick(common): Cleanup Kannada locale
chore(common): Cleanup Kannada locale
2023-02-08 17:58:02 +07:00
Eberhard Beilharz
71462d9705
fix(linux): Fix autopkgtests
Autopkgtests couldn't find pkg-config, so this change adds that as
test dependency.
2023-02-07 11:19:55 +01:00
Eberhard Beilharz
bd977fc774
Merge pull request #8155 from keymanapp/chore/linux/changelog
chore(linux): Update debian changelog
2023-02-07 08:26:52 +01:00
Eberhard Beilharz
134e084b80
chore(linux): Fix lintian warnings
Also improve upload script to force push changelog branches.
Lintian v2.115 (which is run on Debian servers) still produces
pedantic warnings, but there seems to be a bug - no matter what
pattern I add to `lintian-overrides`, I can't get it to ignore
the files. The following version v2.116 has these rules built in,
so we don't need `lintian-overrides` anymore.
2023-02-02 15:15:46 +01:00
Eberhard Beilharz
3baaf266fb
chore(linux): Update debian changelog 2023-02-02 10:53:26 +01:00
Marc Durdin
cdc661f2d6
Merge branch 'beta' into cherrypick/common/crowdin-cs 2023-01-31 18:02:32 +11:00
Marc Durdin
31fbeec217
Merge branch 'beta' into chore/common/crowdin-sv 2023-01-31 17:59:52 +11:00
Marc Durdin
7fd0c8a39e
Merge branch 'beta' into chore/common/crowdin-uk 2023-01-31 17:56:39 +11:00
Marc Durdin
526aead54f
Merge pull request #8072 from keymanapp/chore/common/crowdin-ru
chore(common): Check in crowdin for Russian
2023-01-31 17:54:21 +11:00
Jelmer Vernooij
96d361adb9
chore(linux): Include packaging path in Vcs-Git header
(cherry picked from commit 7a5df85722)
2023-01-27 16:30:09 +01:00
Darcy Wong
1a4512d0eb chore(common): Add crowdin strings for Czech
chore(common): Add crowdin strings for Czech
2023-01-26 07:31:47 +07:00
Darcy Wong
f2cf341a68
Merge branch 'beta' into chore/common/crowdin-sv 2023-01-25 21:27:09 +07:00
Darcy Wong
dbe3d17b8a
Merge branch 'beta' into chore/common/crowdin-uk 2023-01-25 21:24:01 +07:00
Darcy Wong
1074af1023
Merge branch 'beta' into chore/common/crowdin-ru 2023-01-25 21:19:46 +07:00
Darcy Wong
35dd3b7415
Merge pull request #7970 from keymanapp/chore/common/crowdin-kn
chore(common): Add crowdin strings for Kannada
2023-01-25 21:10:45 +07:00
Darcy Wong
dce46c95ab chore(common): Check in crowdin for Ukrainian 2023-01-24 10:26:15 +07:00
Darcy Wong
0a626a9cb5 chore(common): Check in crowdin for Russian 2023-01-24 10:13:13 +07:00
Darcy Wong
2c02150054 chore(common): Add crowdin for Swedish 2023-01-24 09:33:42 +07:00
Eberhard Beilharz
a085fa244b
fix(linux): Properly set context after changing IP
This change fixes a bug where we the context was wrong after
putting the IP in a new location by mouse-click.

Fixes #8024.
2023-01-16 17:17:43 +01:00
Eberhard Beilharz
318ec2b79e
Merge pull request #8019 from keymanapp/fix/linux/8012_DBusException
fix(linux): Fix crash (un-)installing shared keyboard
2023-01-16 10:56:36 +01:00
Eberhard Beilharz
e958588e96
chore(linux): Don't report KeyboardInterrupt to Sentry
When the user presses Ctrl-C we don't want to create a Sentry
issue. This change ignores that exception.

(cherry picked from commit 5ee9c2ead1)
2023-01-13 18:30:30 +01:00
Eberhard Beilharz
0584db39c3
fix(linux): Fix crash (un-)installing shared keyboard
The reason for the crash is the missing file `dbus-launch` which
gets called when running with `sudo`. This change adds a dependency
to `dbus-x11` which provides `dbus-launch`.

Fixes #8012.
2023-01-13 18:03:12 +01:00
Darcy Wong
3dbd78a0ef chore(common): Add Crowdin strings for Kannada 2023-01-03 11:10:57 +07:00
Eberhard Beilharz
29fe7dae59
fix(linux): Fix dependency of ibus-keyman
When we added the API check we introduced a mis-spelled dependency
which lead to Keyman being uninstallable. This change fixes things.
2022-12-16 16:31:44 +01:00
Eberhard Beilharz
8873ab5bcb
chore(linux): Fix make install
Another attempt to fix #7400.
2022-12-09 12:40:40 +01:00
Eberhard Beilharz
8a14372e0a
chore(linux): Improve package build
During package builds on Debian servers the build often failed
with an error related to X11 when running the tests. This change
skips the tests in `linux/ibus-keyman/src/test` when building
packages, similar to the way we already do it for the tests in
`linux/ibus-keyman/tests`.
2022-12-07 09:00:52 +01:00
Eberhard Beilharz
b42061a732 chore(linux): Update debian changelog
(cherry picked from commit ec46a34509)
2022-12-01 20:41:50 +01:00
Eberhard Beilharz
d0734ceef4
Merge pull request #7833 from keymanapp/chore/linux/DebUploadScript
chore(linux): Fix upload-to-debian script
2022-11-29 10:48:27 +01:00
Eberhard Beilharz
16c91e695a
chore(linux): Use flag for beta phase
This addresses code review comments.
2022-11-29 08:57:41 +01:00
Eberhard Beilharz
e834c3c467
chore(linux): Update debian changelog
(cherry picked from commit 0ecc03dbac)
2022-11-28 12:31:48 +01:00
Eberhard Beilharz
7bec18615f
chore(linux): Fix upload-to-debian script
While we're in beta phase we need to modify `changelog` in beta
branch instead of `master`.
2022-11-28 12:28:01 +01:00
Eberhard Beilharz
1f7d6682a8
chore(linux): Update autotools configuration
This fixes some deprecation warnings:
- "The macro `AC_GNU_SOURCE' is obsolete"
- "The macro `AM_DISABLE_STATIC' is obsolete"
- "The macro `AC_ISC_POSIX' is obsolete"
- "The macro `AC_HEADER_STDC' is obsolete"
- "The macro `AM_PROG_LIBTOOL' is obsolete"
2022-11-23 08:46:41 +01:00
Eberhard Beilharz
a958f1a369
Merge pull request #7792 from keymanapp/fix/linux/7774_buildWithOldIbus
fix(linux): Allow to build without patched ibus version
2022-11-23 08:42:36 +01:00
Eberhard Beilharz
c1871fdd70
fix(linux): Improve compiler warning if ibus not patched
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-11-23 08:42:25 +01:00
Darcy Wong
f69fd9ccfe
Merge pull request #7789 from keymanapp/chore/common/whatsnew-b16s2
chore(common): Update whatsnew for 16.0
2022-11-23 07:39:54 +07:00
Darcy Wong
2001f98d86
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-11-23 07:39:24 +07:00
Eberhard Beilharz
a2ec10d432
Merge pull request #7783 from keymanapp/fix/linux/warning
fix(linux): Revert "fix(linux): Fix a warning"
2022-11-22 19:51:45 +01:00
Eberhard Beilharz
bb54946a8a
fix(linux): Fix warning
Commit acab920de8 didn't really fix
the warning. https://stackoverflow.com/a/2524675/1836776 suggests
to use `%zu` which is what this change does now.
2022-11-22 18:47:11 +01:00
Eberhard Beilharz
da765f1625
fix(linux): Allow to build without patched ibus version
This change makes it possible to compile even when the updated
ibus version is not installed. Of course ordered output won't work
in that case, but at least it will compile and the rest of Keyman
will work.

Fixes #7774.
2022-11-22 18:05:46 +01:00
Darcy Wong
c584f0cb45 chore(common): Add notes about bugfixes 2022-11-22 10:50:21 +07:00
Eberhard Beilharz
812c7c33b9
fix(linux): Revert "fix(linux): Fix a warning"
This reverts commit acab920de8.

I'm confused - now we're getting the same warning again - claiming
that `size_t` is defined as `long unsigned int` and so we have to
use `%lu`!? Is this related to the platform we're compiling on?
This time, the warning we get is when compiling for x86_64:

```
engine.c: In function ‘get_current_context_text’:
engine.c:224:15: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
  224 |     g_message("%s: current context is:%u:%lu:%s:", __FUNCTION__, km_kbp_context_length(context), buf_size, current_context_utf8);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                  |
      |                                                                  size_t {aka long unsigned int}
engine.c:224:40: note: format string is defined here
  224 |     g_message("%s: current context is:%u:%lu:%s:", __FUNCTION__, km_kbp_context_length(context), buf_size, current_context_utf8);
      |                                       ~^
      |                                        |
      |                                        unsigned int
      |                                       %lu

```

Reverting the previous fix for now.
2022-11-21 16:12:00 +01:00
Eberhard Beilharz
9891239cf0
feat(linux): Add symbols file
Debian/lintian recommends to add a symbols file which allows to
check for API changes. The package build on Jenkins now has an
additional build step that will compare the API of the newly
built package with the committed symbols file and will fail the
build if the API changed and we didn't update the symbols file
yet. The current symbols file gets stored as build artifact, so
it can easily be copied from Jenkins.

During the build of the binary package this check is also run but
won't fail the build.
2022-11-21 12:38:23 +01:00
Darcy Wong
cd27527646
Merge branch 'beta' into chore/common/crowdin-update-zhcn 2022-11-18 16:47:28 +07:00