From 925c4096d3ff5e3d9790e03843b08f0480d57b9e Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 31 May 2018 15:14:13 -0300 Subject: [PATCH] libbytesize: fix tests. --- srcpkgs/libbytesize/template | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/srcpkgs/libbytesize/template b/srcpkgs/libbytesize/template index 20c0784b7ed..802990f7671 100644 --- a/srcpkgs/libbytesize/template +++ b/srcpkgs/libbytesize/template @@ -1,10 +1,11 @@ # Template file for 'libbytesize' pkgname=libbytesize version=1.3 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="python3" makedepends="mpfr-devel pcre-devel" +checkdepends="python3-six python-six" short_desc="A library for operations with sizes in bytes" maintainer="maxice8 " license="LGPL-2.1-or-later" @@ -12,9 +13,11 @@ homepage="https://github.com/storaged-project/libbytesize" distfiles="https://github.com/storaged-project/libbytesize/releases/download/${version}/libbytesize-${version}.tar.gz" checksum=d1991726a67ee44e4c9b3deaba5bbacd5392d3364439efce08060abc45edf5d0 -do_check() { - # broken, one depends on systemd - : +pre_check() { + # Disable test that depends on unpackaged pocketlint + sed -i 's|canary_tests.sh$||g' tests/Makefile + # Default locale doesn't work + sed -i 's|DEFAULT_LOCALE =.*|DEFAULT_LOCALE = "C"|g' tests/libbytesize_unittest.py } libbytesize-devel_package() {