From e4394ad101fd5c2a0646595f1b4526a40d26ea36 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sun, 25 Feb 2024 16:04:16 -0500 Subject: [PATCH] libbytesize: update to 2.10. --- srcpkgs/libbytesize/patches/musl-fix-test.diff | 17 ----------------- srcpkgs/libbytesize/template | 6 +++--- 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 srcpkgs/libbytesize/patches/musl-fix-test.diff diff --git a/srcpkgs/libbytesize/patches/musl-fix-test.diff b/srcpkgs/libbytesize/patches/musl-fix-test.diff deleted file mode 100644 index 51877fe6841..00000000000 --- a/srcpkgs/libbytesize/patches/musl-fix-test.diff +++ /dev/null @@ -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): diff --git a/srcpkgs/libbytesize/template b/srcpkgs/libbytesize/template index a2303a5ce7e..173485a41cc 100644 --- a/srcpkgs/libbytesize/template +++ b/srcpkgs/libbytesize/template @@ -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.