git: 2f0cc612482f - main - converters/hs-dhall-json: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 20 Oct 2026 18:23:55 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2f0cc612482fbb2303c615dee6dd87bac3cca42e

commit 2f0cc612482fbb2303c615dee6dd87bac3cca42e
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-19 09:28:55 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-20 18:23:42 +0000

    converters/hs-dhall-json: fix build on powerpc64
    
    os-string 2.0.2 has the wrong byteSwap16# type in its big-endian branch;
    take the one-line fix from 2.0.2.2.
---
 ...0.2_System_OsString_Data_ByteString_Short_Internal.hs | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/converters/hs-dhall-json/files/patch-__cabal__deps_os-string-2.0.2_System_OsString_Data_ByteString_Short_Internal.hs b/converters/hs-dhall-json/files/patch-__cabal__deps_os-string-2.0.2_System_OsString_Data_ByteString_Short_Internal.hs
new file mode 100644
index 000000000000..bc5154fe0d51
--- /dev/null
+++ b/converters/hs-dhall-json/files/patch-__cabal__deps_os-string-2.0.2_System_OsString_Data_ByteString_Short_Internal.hs
@@ -0,0 +1,16 @@
+Big-endian fix from os-string 2.0.2.2.
+
+--- _cabal_deps/os-string-2.0.2/System/OsString/Data/ByteString/Short/Internal.hs.orig	2001-09-09 01:46:40 UTC
++++ _cabal_deps/os-string-2.0.2/System/OsString/Data/ByteString/Short/Internal.hs
+@@ -311,7 +311,11 @@
+ word16ToLE#, word16FromLE# :: Word# -> Word#
+ #endif
+ #ifdef WORDS_BIGENDIAN
++#if MIN_VERSION_base(4,16,0)
++word16ToLE# w = wordToWord16# (byteSwap16# (word16ToWord# w))
++#else
+ word16ToLE# = byteSwap16#
++#endif
+ #else
+ word16ToLE# w# = w#
+ #endif