Skip to content

Commit

Permalink
chore(linux): Add dependency to build.sh
Browse files Browse the repository at this point in the history
For integration tests ibus-keyman requires keyman-system-service to
be built, so we add this as a dependency.
  • Loading branch information
ermshiperete committed Sep 21, 2023
1 parent 447bc84 commit 3d8cf18
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions linux/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ override_dh_auto_configure:
--wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --libdir=lib/$(DEB_TARGET_MULTIARCH) \
--libexecdir=lib/$(DEB_TARGET_MULTIARCH)
linux/ibus-keyman/build.sh configure -- \
--wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc --localstatedir=/var
linux/keyman-system-service/build.sh configure -- \
--wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc --localstatedir=/var
linux/ibus-keyman/build.sh configure -- \
--wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc --localstatedir=/var
linux/keyman-config/build.sh configure

override_dh_auto_build:
cp linux/keyman-config/resources/keyman.sharedmimeinfo debian/
core/build.sh --no-tests build:arch
linux/ibus-keyman/build.sh build
linux/keyman-system-service/build.sh build
linux/ibus-keyman/build.sh build
linux/keyman-config/build.sh build
cd linux/keyman-config && \
sed -i -e "s/^__pkgversion__ = \"[^\"]*\"/__pkgversion__ = \"$(DEB_VERSION)\"/g" keyman_config/version.py && \
Expand All @@ -49,16 +49,16 @@ override_dh_auto_build:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
core/build.sh --no-tests test:arch
linux/ibus-keyman/build.sh test
linux/keyman-system-service/build.sh test
linux/ibus-keyman/build.sh test
linux/keyman-config/build.sh test
endif

override_dh_auto_install:
install -d $(CURDIR)/debian/tmp
DESTDIR=$(CURDIR)/debian/tmp core/build.sh --no-tests install:arch
DESTDIR=$(CURDIR)/debian/tmp linux/ibus-keyman/build.sh install
DESTDIR=$(CURDIR)/debian/tmp linux/keyman-system-service/build.sh install
DESTDIR=$(CURDIR)/debian/tmp linux/ibus-keyman/build.sh install
# keyman-config
install -d $(CURDIR)/debian/keyman/usr/share/
cp -r linux/keyman-config/locale/ $(CURDIR)/debian/keyman/usr/share/
Expand All @@ -76,8 +76,8 @@ override_dh_missing:

override_dh_auto_clean:
core/build.sh clean
linux/ibus-keyman/build.sh clean
linux/keyman-system-service/build.sh clean
linux/ibus-keyman/build.sh clean
linux/keyman-config/build.sh clean
rm -rf .pybuild/
dh_auto_clean $@
1 change: 1 addition & 0 deletions linux/ibus-keyman/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ builder_describe \
"install install artifacts" \
"uninstall uninstall artifacts" \
"@/core:arch" \
"@../keyman-system-service:service" \
"--no-integration don't run integration tests" \
"--report create coverage report" \
"--coverage capture test coverage"
Expand Down
2 changes: 1 addition & 1 deletion linux/keyman-system-service/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project('keyman-system-service', 'c', 'cpp',
version: run_command('cat', '../../VERSION.md', check: true).stdout().strip(),
license: 'GPL-2+',
meson_version: '>=1.0')
meson_version: '>=0.61')

evdev = dependency('libevdev', version: '>= 1.9')
systemd = dependency('libsystemd')
Expand Down
5 changes: 3 additions & 2 deletions linux/scripts/reconf.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -eu

## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
Expand All @@ -17,13 +17,14 @@ echo "Found tier ${TIER}, version ${VERSION}"
cd ../core
./build.sh --no-tests clean:arch configure:arch build:arch

# Building ibus-keyman will also build dependency keyman-system-service
cd "$BASEDIR/ibus-keyman"
./build.sh clean configure

cd "$BASEDIR/keyman-config"
./build.sh clean

cd keyman_config
cd "$BASEDIR/keyman-config/keyman_config"
sed \
-e "s/_VERSION_/${VERSION}/g" \
-e "s/_VERSIONWITHTAG_/${VERSION_WITH_TAG}/g" \
Expand Down

0 comments on commit 3d8cf18

Please sign in to comment.