From patchwork Tue Sep 28 19:18:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 33403 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3A2B127BBE3; Tue, 28 Sep 2021 20:19:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0339527BBE1 for ; Tue, 28 Sep 2021 20:19:28 +0100 (BST) Received: from localhost ([::1]:34108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVIdT-0002x0-2y for patchwork@mira.cbaines.net; Tue, 28 Sep 2021 15:19:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVId5-0002bX-Ap for guix-patches@gnu.org; Tue, 28 Sep 2021 15:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVId5-0007cb-3A for guix-patches@gnu.org; Tue, 28 Sep 2021 15:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVId4-0005vm-SU for guix-patches@gnu.org; Tue, 28 Sep 2021 15:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50876] [PATCH] gnu: ocaml-ctypes: Update to 0.19.1. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Sep 2021 19:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50876 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50876@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163285671922752 (code B ref -1); Tue, 28 Sep 2021 19:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Sep 2021 19:18:39 +0000 Received: from localhost ([127.0.0.1]:47033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVIch-0005uu-Bw for submit@debbugs.gnu.org; Tue, 28 Sep 2021 15:18:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:36710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVIcf-0005um-It for submit@debbugs.gnu.org; Tue, 28 Sep 2021 15:18:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVIcf-0002OS-DQ for guix-patches@gnu.org; Tue, 28 Sep 2021 15:18:37 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:55472 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVIcd-0007C1-Qn for guix-patches@gnu.org; Tue, 28 Sep 2021 15:18:37 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1632856712; bh=ud8NXNKADv1Kp4L9ZaSCNXS3nVZrFEkDCypUJKFw9CU=; h=From:To:Subject:Date; b=X0HRtNR95zeuL2Zf8E/SkOBvIZ0lr96pxWn8tnIAGnojSj3oGKWlNVK0qLxPvcE28 dNTUoScD+RWsYktUvDWphrGKW9KOFnHVKahLtoVjB9UuvyJzPiZZfQpeWlHiQgAOAc WvTt+hcN0UC13u1xUSnTMa7wI7LgFwdFEO1CW2Fo= Date: Tue, 28 Sep 2021 21:18:32 +0200 Message-ID: <875yuk33w7.fsf@yoctocell.xyz> MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 39 X-Spam_score: 3.9 X-Spam_bar: +++ X-Spam_report: (3.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.229, PDS_OTHER_BAD_TLD=1.999, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TO_NO_BRKTS_DYNIP=2.299 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml.scm (ocaml-ctypes): Update to 0.19.1. [arguments]<#:tests?>: Enable. <#phases>{make-writable}: Simplify. [inputs]: Remove ocaml-topkg and opam. Move ocaml-ounit and ocaml-lwt to ... [native-inputs]: ... here. --- gnu/packages/ocaml.scm | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) base-commit: 8c6c33a2a5bf385e1589b405ee7f842684ed80c1 diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index e30bd2f613..6577a38167 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -4012,7 +4012,7 @@ (define-public ocaml-integers (define-public ocaml-ctypes (package (name "ocaml-ctypes") - (version "0.18.0") + (version "0.19.1") (home-page "https://github.com/ocamllabs/ocaml-ctypes") (source (origin (method git-fetch) @@ -4022,34 +4022,27 @@ (define-public ocaml-ctypes (file-name (git-file-name name version)) (sha256 (base32 - "03zrbnl16m67ls0yfhq7a4k4238x6x6b3m456g4dw2yqwc153vks")))) + "1xi1a486gssrb23zln3sf7zn0rmyl1k684bdf9iqkhgpz607fq6s")))) (build-system ocaml-build-system) (arguments - `(#:tests? #f; require an old lwt - #:make-flags + `(#:make-flags (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)")) #:phases (modify-phases %standard-phases (add-after 'unpack 'make-writable (lambda _ - (for-each - (lambda (file) - (let ((stat (stat file))) - (chmod file (+ #o200 (stat:mode stat))))) - (find-files "." ".")) - #t)) + (for-each make-file-writable + (find-files ".")))) (delete 'configure)))) (native-inputs - `(("pkg-config" ,pkg-config))) + `(("pkg-config" ,pkg-config) + ("ounit" ,ocaml-ounit) + ("lwt" ,ocaml-lwt))) (propagated-inputs `(("bigarray-compat" ,ocaml-bigarray-compat) ("integers" ,ocaml-integers))) (inputs - `(("libffi" ,libffi) - ("ounit" ,ocaml-ounit) - ("lwt" ,ocaml-lwt) - ("topkg" ,ocaml-topkg) - ("opam" ,opam))) + `(("libffi" ,libffi))) (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