Package Details: ocaml-stdcompat 21.1-4

Git Clone URL: https://aur.archlinux.org/ocaml-stdcompat.git (read-only, click to copy)
Package Base: ocaml-stdcompat
Description: Compatibility module for OCaml standard library
Upstream URL: https://github.com/thierry-martinez/stdcompat
Licenses: LGPL-2.1-or-later
Submitter: meadow
Maintainer: meadow
Last Packager: meadow
Votes: 1
Popularity: 0.21
First Submitted: 2024-12-10 15:25 (UTC)
Last Updated: 2026-07-07 11:16 (UTC)

Dependencies (2)

Required by (3)

Sources (2)

Latest Comments

meadow commented on 2026-07-07 11:21 (UTC)

@rageltman Thanks for the patch! I merged it all into one patch for clarity/maintainability

rageltman commented on 2026-07-07 01:01 (UTC) (edited on 2026-07-07 02:21 (UTC) by rageltman)

For 5.5 support:

diff --git a/PKGBUILD b/PKGBUILD
index f14cd5e..1d929cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,16 +10,24 @@ url="https://github.com/thierry-martinez/stdcompat"
 license=('LGPL-2.1-or-later')
 source=(
     "$pkgname-$pkgver.tar.gz::https://github.com/thierry-martinez/stdcompat/archive/refs/tags/${pkgver}.tar.gz"
-    "0000-fedora-ocaml-stdcompat-ocaml5.4.1.patch::https://src.fedoraproject.org/rpms/ocaml-stdcompat/raw/rawhide/f/ocaml-stdcompat-ocaml5.4.patch")
+    "0000-fedora-ocaml-stdcompat-ocaml5.4.1.patch::https://src.fedoraproject.org/rpms/ocaml-stdcompat/raw/rawhide/f/ocaml-stdcompat-ocaml5.4.patch"
+    "0001-macports-ocaml-stdcompat-ocaml5.5.patch::https://raw.githubusercontent.com/pguyot/macports-ports/b2c024f6e802810011d3354e6323c9fed5011c80/ocaml/ocaml-stdcompat/files/0004-Add-5.5.0-to-known-OCaml-versions.patch"
+    "0002-macports-ocaml-stdcompat-ocaml5.5.patch::https://raw.githubusercontent.com/pguyot/macports-ports/b2c024f6e802810011d3354e6323c9fed5011c80/ocaml/ocaml-stdcompat/files/0005-Add-OCaml-5.5-support.patch"
+)
 depends=('ocaml')
 makedepends=('dune')
 arch=('x86_64')
 b2sums=('b351696f0aed268cd067e20a7d0917a5580399b43e5de3e60fce0ab30a8093cd1808eda610d5a20eb721033f77c45f9b5c8dabc6d55862b023c363b212a505e8'
-        'cd9bfd478d466382fb16e2aeb629447baed1786284600ad3125fc80f501c9027be0700db49f6757425942b14ef909a3c012e20e9e62b06a4f066185103a70411')
+        'cd9bfd478d466382fb16e2aeb629447baed1786284600ad3125fc80f501c9027be0700db49f6757425942b14ef909a3c012e20e9e62b06a4f066185103a70411'
+        'SKIP' 'SKIP')

 prepare() {
     cd "${srcdir}/${_ocamlname}-${pkgver}"
-    patch --forward --strip=1 --input=../0000-fedora-ocaml-stdcompat-ocaml5.4.1.patch
+    for PATCH in 0000-fedora-ocaml-stdcompat-ocaml5.4.1.patch 0001-macports-ocaml-stdcompat-ocaml5.5.patch 0002-macports-ocaml-stdcompat-ocaml5.5.patch; do
+        echo $PATCH
+        sed -i "s|${_ocamlname}-${pkgver}/||g;s|.orig||g" ../$PATCH
+        patch -Np0 --forward  --input=../$PATCH
+    done
 }

 build() {

... clearly a dirty hack making the patches align, i'm sure someone can do it neater but it does compile now

meadow commented on 2026-05-06 14:43 (UTC)

Done!

RubenKelevra commented on 2026-05-06 14:35 (UTC)

@meadow sure!

meadow commented on 2026-05-06 14:29 (UTC)

Fixed! Thanks for the patch @RubenKelevra. Lmk if you're fine with being added as contributor

RubenKelevra commented on 2026-05-03 15:12 (UTC) (edited on 2026-05-03 17:26 (UTC) by RubenKelevra)

Can you please include the new patch the Fedora project have provided?

https://github.com/ocamllibs/stdcompat/issues/62#issuecomment-3935708388

Because without it, it's not building. Here's the patch to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 49e3839..5d8d62f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,16 +9,16 @@ url="https://github.com/thierry-martinez/stdcompat"
 license=('LGPL-2.1-or-later')
 source=(
     "$pkgname-$pkgver.tar.gz::https://github.com/thierry-martinez/stdcompat/archive/refs/tags/${pkgver}.tar.gz"
-    "0000-fedora-ocaml-stdcompat-ocaml5.4.patch::https://src.fedoraproject.org/rpms/ocaml-stdcompat/raw/2f4345ccea8eda0cd2a4cc33c337a9d92d66eb3c/f/ocaml-stdcompat-ocaml5.4.patch")
+    "0000-fedora-ocaml-stdcompat-ocaml5.4.1.patch::https://src.fedoraproject.org/rpms/ocaml-stdcompat/raw/rawhide/f/ocaml-stdcompat-ocaml5.4.patch")
 depends=('ocaml')
 makedepends=('dune')
 arch=('x86_64')
 b2sums=('b351696f0aed268cd067e20a7d0917a5580399b43e5de3e60fce0ab30a8093cd1808eda610d5a20eb721033f77c45f9b5c8dabc6d55862b023c363b212a505e8'
-        '6e1a1f533977af92a3139a1acb6a8aaeaff2c1b12ca14bccb435d2ffaa8abf427a5da8dff172fc445d4f152e5c8a06d142ada7765a548149fb80d653ec0f8345')
+        'cd9bfd478d466382fb16e2aeb629447baed1786284600ad3125fc80f501c9027be0700db49f6757425942b14ef909a3c012e20e9e62b06a4f066185103a70411')

 prepare() {
     cd "${srcdir}/${_ocamlname}-${pkgver}"
-    patch --forward --strip=1 --input=../0000-fedora-ocaml-stdcompat-ocaml5.4.patch
+    patch --forward --strip=1 --input=../0000-fedora-ocaml-stdcompat-ocaml5.4.1.patch
 }

 build() {

meadow commented on 2025-04-01 09:43 (UTC) (edited on 2025-11-06 13:44 (UTC) by meadow)

Status

Upstream does not support OCaml 5.4 yet https://github.com/ocamllibs/stdcompat/issues/62

Old pinned comments
Ocaml 5.3

I'm waiting for upstream to fix >=5.3 compatibility. https://github.com/ocamllibs/stdcompat/issues/36

meadow commented on 2025-02-19 09:49 (UTC)

Thanks for reporting this also to upstream! I'll integrate the fix the the package as soon as as upstream publishes it

xhpohanka commented on 2025-02-19 09:25 (UTC)

Does not build with ocaml 5.3.0 which is now in repos.