onboard: fix SyntaxWarnings and disable tests
- A missing % operator was breaking a c-style format string, causing a SyntaxWarning to be trown twice at package install time (during byte-compilation). - The tests were failing since they try to run 'killall' before executing onboard in xautomation(7), both not being possible in xbps-src.
This commit is contained in:
parent
de7e688ac8
commit
9ef46bf26a
2 changed files with 18 additions and 1 deletions
15
srcpkgs/onboard/patches/fix-brokenformat.patch
Normal file
15
srcpkgs/onboard/patches/fix-brokenformat.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
Fix for https://bugs.launchpad.net/onboard/+bug/1948723
|
||||
|
||||
|
||||
--
|
||||
--- a/Onboard/LayoutLoaderSVG.py
|
||||
+++ b/Onboard/LayoutLoaderSVG.py
|
||||
@@ -445,7 +445,7 @@
|
||||
except KeyError as ex:
|
||||
(strerror) = ex
|
||||
raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \
|
||||
- "definition of %s" (strerror, full_id))
|
||||
+ "definition of %s" % (strerror, full_id))
|
||||
|
||||
value = attributes.get("action")
|
||||
if value:
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'onboard'
|
||||
pkgname=onboard
|
||||
version=1.4.1
|
||||
revision=9
|
||||
revision=10
|
||||
build_style=python3-module
|
||||
hostmakedepends="intltool pkg-config python3-distutils-extra"
|
||||
makedepends="dconf-devel eudev-libudev-devel gtk+3-devel hunspell-devel
|
||||
|
@ -14,3 +14,5 @@ license="GPL-3.0-or-later"
|
|||
homepage="https://launchpad.net/onboard"
|
||||
distfiles="https://launchpad.net/${pkgname}/${version%.*}/${version}/+download/${pkgname}-${version}.tar.gz"
|
||||
checksum=01cae1ac5b1ef1ab985bd2d2d79ded6fc99ee04b1535cc1bb191e43a231a3865
|
||||
# Tries to run onboard in tests, using xautomation(7)
|
||||
make_check=no
|
||||
|
|
Loading…
Add table
Reference in a new issue