libbytesize: update to 2.10.

This commit is contained in:
Andrew J. Hesford 2024-02-25 16:04:16 -05:00
parent 337bddf1a0
commit e4394ad101
2 changed files with 3 additions and 20 deletions

View File

@ -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):

View File

@ -1,7 +1,7 @@
# Template file for 'libbytesize'
pkgname=libbytesize
version=2.8
revision=3
version=2.10
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config gettext python3"
makedepends="mpfr-devel pcre2-devel"
@ -12,7 +12,7 @@ license="LGPL-2.1-or-later"
homepage="https://github.com/storaged-project/libbytesize"
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"
checksum=d87aef5a37e189b1cc827530e0feafa6529331fcbe2aabf330a01ad8ec95e1a0
checksum=1d1ce3be8ac59fd59511d0794c7327d5cf33f1e83496837b17e19ac49400cad1
pre_check() {
# Requires python3-pocketlint, which is not packaged yet.