diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-07-13 17:21:32 +0200 | 
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-07-13 17:21:32 +0200 | 
| commit | 15406013fe63f2ab238eec2d7a8adbc586806ac8 (patch) | |
| tree | 8377d7c70a925f7c5ea4c04473c4eb547610b64b /gnu/packages/patches/ibus-anthy-fix-tests.patch | |
| parent | a3ac317ab4a90f66ac65055fa26dee58ed2367b8 (diff) | |
| parent | dd4c1992103a65b8fbdc80fe07a9fe9be822769a (diff) | |
Merge branch 'master' into emacs-team
Diffstat (limited to 'gnu/packages/patches/ibus-anthy-fix-tests.patch')
| -rw-r--r-- | gnu/packages/patches/ibus-anthy-fix-tests.patch | 49 | 
1 files changed, 49 insertions, 0 deletions
| diff --git a/gnu/packages/patches/ibus-anthy-fix-tests.patch b/gnu/packages/patches/ibus-anthy-fix-tests.patch new file mode 100644 index 0000000000..6934358980 --- /dev/null +++ b/gnu/packages/patches/ibus-anthy-fix-tests.patch @@ -0,0 +1,49 @@ +Submitted upstream: https://github.com/ibus/ibus-anthy/pull/35 + +diff --git a/tests/test-build.sh b/tests/test-build.sh +index e83b78f..a0efe32 100755 +--- a/tests/test-build.sh ++++ b/tests/test-build.sh +@@ -63,26 +63,27 @@ parse_args() +     done; + } +  ++maybe_install_pycotap() { ++    # Check if pycotap is already available. ++    python3 -m pycotap >/dev/null && return 0 ++ ++    # Red Hat specific hint. ++    if test -f /etc/redhat-release ; then ++        if ! rpm -q --quiet python3-pycotap; then ++            echo "Please install python3-pycotap" ++            exit -1 ++        fi ++    fi; ++} ++ + init_environment() + { +     if test x$FORCE_TEST != x ; then +         RUN_ARGS="$RUN_ARGS --force"; +     fi; +-    HAS_TAP=0; +-    if test -f /etc/redhat-release ; then +-        rpm -q --quiet python3-pycotap +-        if test $? -ne 0 ; then +-            echo "Not found python3-pycotap"; +-            exit -1; +-	fi; +-        HAS_TAP=1; +-    fi; +-    TAP_DIR=`python -m site --user-site`/pycotap; +-    if test $HAS_TAP -ne 1 && \ +-       test x"$TAP_DIR" != x && test ! -d "$TAP_DIR" ; then +-            echo "pip install pycotap --user"; +-            pip install pycotap --user; +-    fi; ++ ++    maybe_install_pycotap ++ +     if test ! -f $BUILDDIR/../data/$ANTHY_SCHEMA_FILE ; then +         echo "Not found $BUILDDIR/../data/$ANTHY_SCHEMA_FILE"; +         exit -1; | 
