From 66b89561f9d12fcb225aa169eee24fdadae90d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 25 May 2024 13:33:10 -0300 Subject: [PATCH] bogofilter: rebuild for gsl --- srcpkgs/bogofilter/patches/test-musl.patch | 21 +++++++++++++++++++++ srcpkgs/bogofilter/template | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/bogofilter/patches/test-musl.patch diff --git a/srcpkgs/bogofilter/patches/test-musl.patch b/srcpkgs/bogofilter/patches/test-musl.patch new file mode 100644 index 00000000000..7829a6d4e77 --- /dev/null +++ b/srcpkgs/bogofilter/patches/test-musl.patch @@ -0,0 +1,21 @@ +The reason this won't affect glibc is that the default locale is `C` +so this is a no-op, but on musl the default locale is `C.UTF-8`. + +The actual test failure is some `grep` is piped some binary that is +not valid utf8. This can be seen in glibc with: + + $ echo -e 'A\xa4' | LC_ALL=C.UTF-8 grep A + grep: (standard input): binary file matches + +--- a/src/tests/t.frame 2019-10-10 17:04:33.000000000 -0300 ++++ b/src/tests/t.frame 2024-06-10 22:46:07.546991269 -0300 +@@ -88,6 +88,9 @@ + unset LANG || : + unset LC_COLLATE || : + unset LC_ALL || : ++# we set LC_ALL=C because this is what is really wanted; on musl libc, ++# the default is C.UTF-8 which breaks t.dump.load and t.nonascii.replace ++export LC_ALL=C + i=0 + INSERT=. + while [ $i -lt 3 ] ; do diff --git a/srcpkgs/bogofilter/template b/srcpkgs/bogofilter/template index 32e283f57aa..b91c70935eb 100644 --- a/srcpkgs/bogofilter/template +++ b/srcpkgs/bogofilter/template @@ -1,7 +1,7 @@ # Template file for 'bogofilter' pkgname=bogofilter version=1.2.5 -revision=3 +revision=4 build_style=gnu-configure configure_args="--sysconfdir=/etc/${pkgname} --with-database=sqlite" hostmakedepends="perl"