GNU bug report logs - #76649
[PATCH] gnu: ocaml-ctypes: update to 0.23.0

Previous Next

Package: guix-patches;

Reported by: Erwan Jahier <erwan.jahier <at> univ-grenoble-alpes.fr>

Date: Fri, 28 Feb 2025 17:37:04 UTC

Severity: normal

Tags: patch

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 76649 in the body.
You can then email your comments to 76649 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#76649; Package guix-patches. (Fri, 28 Feb 2025 17:37:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Erwan Jahier <erwan.jahier <at> univ-grenoble-alpes.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 28 Feb 2025 17:37:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Erwan Jahier <erwan.jahier <at> univ-grenoble-alpes.fr>
To: guix-patches <at> gnu.org
Cc: Erwan Jahier <erwan.jahier <at> univ-grenoble-alpes.fr>
Subject: [PATCH] gnu: ocaml-ctypes: update to 0.23.0
Date: Fri, 28 Feb 2025 17:53:23 +0100
commit bb7c5f2a15296ee0541807d3abe6ce15edea09a3
Author: erwan <erwan.jahier <at> univ-grenoble-alpes.fr>

    gnu: ocaml-ctypes: update to 0.23.0
    
    * gnu/packages/ocaml.scm (ocaml-ctypes):  update to  0.23.0 and switch  to the
    dune building system.

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index f265aee249..16ab7c1e44 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5643,10 +5643,10 @@ (define-public ocaml-integers
 
 (define-public ocaml-ctypes
   (package
-   (name "ocaml-ctypes")
-   (version "0.20.1")
-   (home-page "https://github.com/ocamllabs/ocaml-ctypes")
-   (source (origin
+    (name "ocaml-ctypes")
+    (version "0.23.0")
+    (home-page "https://github.com/yallop/ocaml-ctypes")
+    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url home-page)
@@ -5654,35 +5654,25 @@ (define-public ocaml-ctypes
              (file-name (git-file-name name version))
              (sha256
               (base32
-               "0ilzq9qzvwv9rc08cc9wchsx636zp870i7qvqmbigaa2qb812m0z"))))
-   (build-system ocaml-build-system)
-   (arguments
-    `(#:phases
-      (modify-phases %standard-phases
-        (add-after 'unpack 'make-writable
-          (lambda _
-            (for-each make-file-writable
-                      (find-files "."))))
-        (delete 'configure))))
-   (native-inputs
-    `(("pkg-config" ,pkg-config)
-      ("ounit" ,ocaml-ounit)
-      ("lwt" ,ocaml-lwt)))
-   (propagated-inputs
-    `(("bigarray-compat" ,ocaml-bigarray-compat)
-      ("integers" ,ocaml-integers)))
-   (inputs
-    (list libffi))
-   (properties `((ocaml5.0-variant . ,(delay ocaml5.0-ctypes))))
-   (synopsis "Library for binding to C libraries using pure OCaml")
-   (description "Ctypes is a library for binding to C libraries using pure
-OCaml.  The primary aim is to make writing C extensions as straightforward as
-possible.  The core of ctypes is a set of combinators for describing the
-structure of C types -- numeric types, arrays, pointers, structs, unions and
-functions.  You can use these combinators to describe the types of the
-functions that you want to call, then bind directly to those functions -- all
-without writing or generating any C!")
-   (license license:expat)))
+               "16dxz2r070vlrkbqhza0c5y6izxpjn080vqmxj47i919wfqd75vx"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-integers dune-configurator
+                             ocaml-bigarray-compat ocaml-odoc))
+    (native-inputs (list ocaml-ounit2 libffi pkg-config))
+    (synopsis "Combinators for binding to C libraries without writing any C")
+    (description
+     "ctypes is a library for binding to C libraries using pure OCaml.  The primary
+aim is to make writing C extensions as straightforward as possible.  The core of
+ctypes is a set of combinators for describing the structure of C types --
+numeric types, arrays, pointers, structs, unions and functions.  You can use
+these combinators to describe the types of the functions that you want to call,
+then bind directly to those functions -- all without writing or generating any
+C! To install the optional `ctypes-foreign` interface (which uses `libffi` to
+provide dynamic access to foreign libraries), you will need to also install the
+`ctypes-foreign` package.  opam install ctypes-foreign This will make the
+`ctypes-foreign` ocamlfind subpackage available.")
+    (license license:expat)))
+
 
 (define-public ocaml5.0-ctypes
   ;; Contains fix to support OCaml 5.0




Reply sent to Andreas Enge <andreas <at> enge.fr>:
You have taken responsibility. (Thu, 21 Aug 2025 15:12:02 GMT) Full text and rfc822 format available.

Notification sent to Erwan Jahier <erwan.jahier <at> univ-grenoble-alpes.fr>:
bug acknowledged by developer. (Thu, 21 Aug 2025 15:12:02 GMT) Full text and rfc822 format available.

Message #10 received at 76649-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Erwan Jahier <erwan.jahier <at> univ-grenoble-alpes.fr>
Cc: 76649-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: ocaml-ctypes: update to 0.23.0
Date: Thu, 21 Aug 2025 17:11:40 +0200
Ah, sorry for your bad experience! This is being handled through
Codeberg now, so I am closing the issue here.

Andreas





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 19 Sep 2025 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 74 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.