Commit graph

1330 commits

Author SHA1 Message Date
Darcy Wong
fded9721e2 chore(common): Merge branch 'beta' into chore/common/beta-b16s2 2022-11-25 07:58:23 +07:00
Eberhard Beilharz
5da4f17dd1
refactor(linux): Don't free consts
(cherry picked from commit b0b605709a)
2022-11-23 18:21:01 +01:00
Eberhard Beilharz
0f0ab06f53
refactor(linux): Use consts instead of strings
This refactoring makes use of the already defined strings.
It also simplifies setting the values by directly specifying an
UTF-16 string.

Motivated by the changes in PR #7667.

(cherry picked from commit 31340b5b51)
2022-11-23 18:20:52 +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
Eberhard Beilharz
363e41c98f
Merge pull request #7746 from keymanapp/fix/linux/warning
fix(linux): Fix a warning
2022-11-18 08:42:02 +01:00
Eberhard Beilharz
a4abcdb831
Merge pull request #7730 from keymanapp/fix/linux/7722_replaceSharedKeyboard
fix(linux): Fix installation if shared kbd already installed
2022-11-18 08:41:46 +01:00
Darcy Wong
53debd015b
Merge pull request #7715 from keymanapp/chore/common/crowdin-update-ff-ng
chore(common): Update crowin strings for Fulfulde
2022-11-18 14:20:54 +07:00
Eberhard Beilharz
acab920de8
fix(linux): Fix a warning
`size_t` is defined as `unsigned int`, not as a long.
2022-11-17 19:26:28 +01:00
Eberhard Beilharz
a2ce5e50d8
fix(linux): Output warning if keyboard already installed in shared
This change outputs a warning if the user tries to install a
keyboard (to his home directory) and the keyboard is already
installed in the shared area, and vice versa.
2022-11-17 16:45:11 +01:00
Eberhard Beilharz
c670977779
Merge pull request #7731 from keymanapp/feat/linux/7725_bcp47tag
feat(linux): Add optional bcp47 parameter to km-package-install
2022-11-17 15:43:25 +01:00
Eberhard Beilharz
5c63d58978
feat(linux): Add -l as short version of --bcp47 parameter 2022-11-17 10:23:11 +01:00
Eberhard Beilharz
960e579e3f
Merge pull request #7733 from keymanapp/fix/linux/lintian
fix(linux): Fix lintian warnings
2022-11-17 10:14:43 +01:00
Eberhard Beilharz
b71f5ba143
fix(linux): Remove autom4te.cache from source package
This directory is unnecessary as it contains log files and cached
files, and it produces several lintian warnings.
2022-11-16 19:25:07 +01:00
Eberhard Beilharz
108e849459
fix(linux): Fix lintian warnings 2022-11-16 18:45:34 +01:00
Eberhard Beilharz
f9b8766f3a
fix(linux): Ignore dbus exception when testing for fcitx
Fixes KEYMAN-LINUX-3H.
2022-11-16 16:08:25 +01:00
Eberhard Beilharz
fd6083fd43
feat(linux): Add optional bcp47 parameter to km-package-install
This change adds a `--bcp47 <TAG>` parameter to km-package-install.
This allows to specify a language tag which will be used to install
the keyboard for that language.

Closes #7725.
2022-11-16 16:00:32 +01:00
Eberhard Beilharz
1d5b169aca
fix(linux): Allow to install local kbd if shared installed
This is similar to PR #7730 but implements things for
km-package-install.
2022-11-16 15:59:39 +01:00
Eberhard Beilharz
d16d29dccd
Merge pull request #7728 from keymanapp/fix/linux/7723_CrashBcp47
fix(linux): Don't crash if `und` is specified without `fonipa`
2022-11-16 15:38:43 +01:00
Eberhard Beilharz
309d68375b
fix(linux): Fix installation if shared kbd already installed
Fixes #7722.
2022-11-16 12:26:18 +01:00
Eberhard Beilharz
632ac34120
Merge pull request #7727 from keymanapp/fix/linux/7724_pkgversion
fix(linux): set DEB_VERSION
2022-11-16 08:40:48 +01:00
Eberhard Beilharz
1ce21e8ef2
fix(linux): Don't crash if und is specified without fonipa
Fixes #7723.
2022-11-15 18:30:23 +01:00
Eberhard Beilharz
4f502d1024
fix(linux): set DEB_VERSION
DEB_VERSION is used to set `pkgversion` in the
`override_dh_auto_build` build step. When we moved to the
consolidated source package and thus could no longer use the
default debhelper build tools we lost the automatic setting of
DEB_VERSION, so this change adds the relevant definitions.

Fixes #7724.
2022-11-15 17:47:12 +01:00
Eberhard Beilharz
734c543da6
docs(linux): Add example for keyman:// URL format
The help text for `km-config` mentioned a `keyman://` URL but we
nowhere explained how that URL should look like. This change adds
an example keyman:// URL with a bcp47 tag which should make things
clearer.
2022-11-15 17:35:15 +01:00
Eberhard Beilharz
417dcc6bcd
Merge pull request #7686 from keymanapp/refactor/linux/consts
refactor(linux): Use consts instead of strings
2022-11-14 17:20:37 +01:00
Darcy Wong
7ca7cb8d70 chore(common): Update crowin strings for Fulfulde 2022-11-14 10:27:30 +07:00
Darcy Wong
391eb402f3 chore(common): Update crowdin strings for Simplified Chinese 2022-11-14 09:56:52 +07:00
Eberhard Beilharz
b0b605709a
refactor(linux): Don't free consts 2022-11-11 18:44:28 +01:00
Eberhard Beilharz
b3a20f16eb
Merge pull request #7683 from keymanapp/chore/linux/standards
chore(linux): Update Debian standards version
2022-11-11 08:25:56 +01:00
Eberhard Beilharz
f7f2a00f66
Merge pull request #7682 from keymanapp/chore/linux/cherry-pick/beta/changelog
chore(linux): Update debian changelog 🍒
2022-11-11 08:25:44 +01:00
Eberhard Beilharz
31340b5b51
refactor(linux): Use consts instead of strings
This refactoring makes use of the already defined strings.
It also simplifies setting the values by directly specifying an
UTF-16 string.

Motivated by the changes in PR #7667.
2022-11-10 19:56:35 +01:00
Eberhard Beilharz
26516e65d8
chore(linux): Update Debian standards version
This removes a warning on the Debian package page
(https://tracker.debian.org/pkg/keyman).
2022-11-10 18:08:23 +01:00
Eberhard Beilharz
33e59ed40e
chore(linux): Update debian changelog
(cherry picked from commit acdb16fd7e)
2022-11-10 17:42:46 +01:00
Eberhard Beilharz
d030678fa5
chore(linux): Update debian changelog
(cherry picked from commit acdb16fd7e)
2022-11-10 17:39:56 +01:00
Eberhard Beilharz
b0c11a660e
chore(linux): Update debian changelog
(cherry picked from commit 3b3d4e9e7e)
2022-11-10 17:38:19 +01:00
Eberhard Beilharz
053ee52281
fix(linux): Fix keyboard icon in system tray
Show the keyboard specific icon in the system tray on Wasta instead
of the generic keyman one.

Fixes #7547.
2022-11-10 09:11:44 +01:00
Eberhard Beilharz
a780cc47f5
Merge pull request #7492 from keymanapp/chore/linux/cherry-pick/changelog
chore(linux): Update debian changelog 🍒
2022-11-10 09:03:40 +01:00
Darcy Wong
77d43c08aa
Update linux/help/about/whatsnew.md
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2022-11-10 07:35:42 +07:00
Eberhard Beilharz
38557ccb89
chore(linux): Update debian changelog
(cherry picked from commit 3b3d4e9e7e)
2022-11-09 18:32:49 +01:00
Darcy Wong
8b93717206 chore(linux): tweak line about reordering 2022-11-09 09:13:54 +07:00