pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ocaml-dune ocaml-dune: fix build on SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e9822d0110e
branches:  trunk
changeset: 375791:6e9822d0110e
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Mar 26 23:19:32 2022 +0000

description:
ocaml-dune: fix build on SunOS

diffstat:

 devel/ocaml-dune/distinfo                                            |   3 +-
 devel/ocaml-dune/patches/patch-src_dune__filesystem__stubs_readdir.c |  24 ++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 98d5b3fc6efb -r 6e9822d0110e devel/ocaml-dune/distinfo
--- a/devel/ocaml-dune/distinfo Sat Mar 26 22:50:18 2022 +0000
+++ b/devel/ocaml-dune/distinfo Sat Mar 26 23:19:32 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.9 2022/03/01 09:33:09 jaapb Exp $
+$NetBSD: distinfo,v 1.10 2022/03/26 23:19:32 tnn Exp $
 
 BLAKE2s (dune-2.9.3.tar.gz) = ac5f47b68db9e3055f112bcff7966b781bf7eaedd904fcc5ea28aa98f400a5de
 SHA512 (dune-2.9.3.tar.gz) = df6e06a9beebf41f3ed375384be781b5c87c7949048995cc0bbad13dd65c96bd8b27415cd41e43b1112bd86524a59a7dd418e14b5c72b4f1f8fd4ac5ca2d1494
 Size (dune-2.9.3.tar.gz) = 1387667 bytes
+SHA1 (patch-src_dune__filesystem__stubs_readdir.c) = 6cd667bfccc81ebcaddd8a36d55728c7e63233fd
diff -r 98d5b3fc6efb -r 6e9822d0110e devel/ocaml-dune/patches/patch-src_dune__filesystem__stubs_readdir.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-dune/patches/patch-src_dune__filesystem__stubs_readdir.c      Sat Mar 26 23:19:32 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_dune__filesystem__stubs_readdir.c,v 1.1 2022/03/26 23:19:32 tnn Exp $
+
+no DT_REG on SunOS
+
+--- src/dune_filesystem_stubs/readdir.c.orig   2022-01-26 15:17:00.000000000 +0000
++++ src/dune_filesystem_stubs/readdir.c
+@@ -18,7 +18,7 @@ typedef struct dirent directory_entry;
+ value val_file_type(int typ) {
+   switch(typ)
+     {
+-#ifndef __HAIKU__     
++#if !defined(__HAIKU__) && !defined(__sun)
+    case DT_REG:
+       return Val_int(0);
+     case DT_DIR:
+@@ -59,7 +59,7 @@ CAMLprim value caml__dune_filesystem_stu
+   v_filename = caml_copy_string(e->d_name);
+   v_tuple = caml_alloc_small(2, 0);
+   Field(v_tuple, 0) = v_filename;
+-#ifndef __HAIKU__
++#if !defined(__HAIKU__) && !defined(__sun)
+   Field(v_tuple, 1) = val_file_type(e->d_type);
+ #else
+   Field(v_tuple, 1) = Val_int(7);



Home | Main Index | Thread Index | Old Index