mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libbytesize: update to 2.10.
This commit is contained in:
parent
337bddf1a0
commit
e4394ad101
2 changed files with 3 additions and 20 deletions
|
@ -1,17 +0,0 @@
|
||||||
diff --git a/tests/locale_utils.py b/tests/locale_utils.py
|
|
||||||
index 7e4f369..c16f1bd 100644
|
|
||||||
--- a/tests/locale_utils.py
|
|
||||||
+++ b/tests/locale_utils.py
|
|
||||||
@@ -4,7 +4,11 @@ import subprocess
|
|
||||||
"""Helper functions, decorators,... for working with locales"""
|
|
||||||
|
|
||||||
def get_avail_locales():
|
|
||||||
- return {loc.decode(errors="replace").strip() for loc in subprocess.check_output(["locale", "-a"]).split()}
|
|
||||||
+ try:
|
|
||||||
+ return {loc.decode(errors="replace").strip() for loc in subprocess.check_output(["locale", "-a"]).split()}
|
|
||||||
+ except FileNotFoundError:
|
|
||||||
+ # musl and some other libc's don't support locales beyond what POSIX requires.
|
|
||||||
+ return {"C.UTF-8"}
|
|
||||||
|
|
||||||
|
|
||||||
def missing_locales(required, available):
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libbytesize'
|
# Template file for 'libbytesize'
|
||||||
pkgname=libbytesize
|
pkgname=libbytesize
|
||||||
version=2.8
|
version=2.10
|
||||||
revision=3
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config gettext python3"
|
hostmakedepends="pkg-config gettext python3"
|
||||||
makedepends="mpfr-devel pcre2-devel"
|
makedepends="mpfr-devel pcre2-devel"
|
||||||
|
@ -12,7 +12,7 @@ license="LGPL-2.1-or-later"
|
||||||
homepage="https://github.com/storaged-project/libbytesize"
|
homepage="https://github.com/storaged-project/libbytesize"
|
||||||
changelog="https://raw.githubusercontent.com/storaged-project/libbytesize/master/NEWS.rst"
|
changelog="https://raw.githubusercontent.com/storaged-project/libbytesize/master/NEWS.rst"
|
||||||
distfiles="https://github.com/storaged-project/libbytesize/releases/download/${version}/libbytesize-${version}.tar.gz"
|
distfiles="https://github.com/storaged-project/libbytesize/releases/download/${version}/libbytesize-${version}.tar.gz"
|
||||||
checksum=d87aef5a37e189b1cc827530e0feafa6529331fcbe2aabf330a01ad8ec95e1a0
|
checksum=1d1ce3be8ac59fd59511d0794c7327d5cf33f1e83496837b17e19ac49400cad1
|
||||||
|
|
||||||
pre_check() {
|
pre_check() {
|
||||||
# Requires python3-pocketlint, which is not packaged yet.
|
# Requires python3-pocketlint, which is not packaged yet.
|
||||||
|
|
Loading…
Add table
Reference in a new issue