Created attachment 256129 [details] Patch for libunistring * Adjust Makefile layout to closer follow Porters Handbook Compile and runtime tested on FreeBSD 14.1-RELEASE (amd64) (make, make check-plist, make test) Poudriere testport OK 13.4-RELEASE (amd64) Poudriere testport OK 14.2-RELEASE (amd64) Tested with following consumers in Poudriere on 13.4-RELEASE (amd64): audio/owntone biology/ncbi-toolkit cad/lepton-eda cad/opencascade deskutils/gnome-characters devel/notcurses dns/libidn2 dns/libpsl editors/rehex ftp/wget graphics/podofo09 lang/guile2 lang/guile3 mail/mailutils mail/mutt misc/boxes net/pacemaker2 (fails, unrelated plist-issue) net/zmap security/gnutls security/sssd security/sssd2 sysutils/libdnf www/lagrange x11/lxhotkey ----- One unit test fails (this also fails on 1.2): FAIL test-u8-strncpy (exit status: 139) Can you please have a look and if possible upstream a patch and/or report upstream?
Created attachment 256686 [details] libunistring-1.3.patch (In reply to Daniel Engberg from comment #0) 14.2-RELEASE AMD64 Test succeeds.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=80697b29aed2fb08eadfbf5742d5a0ed991e2185 commit 80697b29aed2fb08eadfbf5742d5a0ed991e2185 Author: takefu <takefu@airport.fm> AuthorDate: 2025-01-15 19:24:40 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2025-01-15 19:42:17 +0000 devel/libunistring: Update to 1.3 Committers note: Add a few more sections in port Makefile to make it easier to follow and to follow Porters Handbook more closely Changelog: https://savannah.gnu.org/news/?id=10682 PR: 283588 devel/libunistring/Makefile | 7 ++++--- devel/libunistring/distinfo | 6 +++--- .../files/patch-lib_unistr_u8-strncpy.c (new) | 16 ++++++++++++++++ devel/libunistring/pkg-plist | 3 +-- 4 files changed, 24 insertions(+), 8 deletions(-)
Committed, thanks!
Hi, Following up here which looks like the correct place to r4each everyone involved. This new version of libunistring breaks mail/courier-imap at runtime. It starts failing to access files on disk in Maildirs and simply reports errors for any operations. I'm not blaming anyone and this could be an issue in how courier uses this library. I still have to investigate. The only certainty I have is that downgrading back to libunistring 1.2 fixed it for me. I'll also be writing to he courier author shortly about this and investigating which changes in libunistring are influencing this. If you have any suggestions please contact me! Thanks in advance!
(In reply to Guido Falsi from comment #4) When I tried it, the standard install didn't produce any errors or core dumps. If you could tell me the conditions under which the problem occurs, I might be able to help you troubleshoot. It might be a good idea to issue a new sendpr. The environment I used for testing was as follows: 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64 cheers :-)