From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aLaqGABynGM/3wAAbAwnHQ (envelope-from ) for ; Fri, 16 Dec 2022 14:26:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GPfSGABynGONowAA9RJhRA (envelope-from ) for ; Fri, 16 Dec 2022 14:26:24 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 366D63E8EB for ; Fri, 16 Dec 2022 14:26:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Aj9-0005w2-CP; Fri, 16 Dec 2022 08:26:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Aj6-0005rh-0i for guix-patches@gnu.org; Fri, 16 Dec 2022 08:26:12 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6Aj5-0007C1-Ht for guix-patches@gnu.org; Fri, 16 Dec 2022 08:26:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6Aj5-00036S-CT for guix-patches@gnu.org; Fri, 16 Dec 2022 08:26:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60120] [PATCH 17/28] gnu: Add ocaml5.0-ctypes Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Dec 2022 13:26:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60120@debbugs.gnu.org Cc: pukkamustard Received: via spool by 60120-submit@debbugs.gnu.org id=B60120.167119716711842 (code B ref 60120); Fri, 16 Dec 2022 13:26:11 +0000 Received: (at 60120) by debbugs.gnu.org; 16 Dec 2022 13:26:07 +0000 Received: from localhost ([127.0.0.1]:49314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Aj0-00034f-7p for submit@debbugs.gnu.org; Fri, 16 Dec 2022 08:26:07 -0500 Received: from mout01.posteo.de ([185.67.36.65]:56757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Ain-00030q-RB for 60120@debbugs.gnu.org; Fri, 16 Dec 2022 08:25:54 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7C8C3240028 for <60120@debbugs.gnu.org>; Fri, 16 Dec 2022 14:25:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671197153; bh=1nWCi+yAb2UUZWIFfMgL7LL6CdpwiXA2wiEX8jrW7N0=; h=From:To:Cc:Subject:Date:From; b=lFe9S/lWN8wmJpqaW23zWLSzlt2n8WpaX5rUVakrlgUjMINyMYxDW7VK5lfbs93kY M1BTM20YWsRyLpFOeGHfv2so3ePCKATWJfEM+RkE4Xt0ei8Fjxq/ZaViHwmmIhpMFr F/Tw1MZSYnPzR2pJmm7HHHHRkRV3QTID/sMjPOvFf3mGiLvN/z7Qray9G1c90MiwAf +c7f1GWlbcB1U0y8Q/SAlGlrhFzBEwUbY6QOg8FsyK4NT1HxTEeO34ijg9SZt+B4nT cpNCMS8gPg7XJRgD78sA4eP5ltHxTfGiSx4VnOGaBd8YqE/BoHi+KLbloZruaFk4pb b61cizmV/yAUg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NYVGn0N8lz6tmc; Fri, 16 Dec 2022 14:25:53 +0100 (CET) From: pukkamustard Date: Fri, 16 Dec 2022 13:25:16 +0000 Message-Id: <20221216132527.2539-17-pukkamustard@posteo.net> In-Reply-To: <20221216132527.2539-1-pukkamustard@posteo.net> References: <20221216132224.2229-1-pukkamustard@posteo.net> <20221216132527.2539-1-pukkamustard@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671197184; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=otQOn/SpuZlJJG8JTyxiv+eKLfZ/RlFBkVInpRCSKgs=; b=cwynkk+pA3v1tfTjTFvpy9/C9j/t48ZvqseUI+Cip+RWDhYyWWgroXZ3193xRwe6csXU+H met2rbqe0r8CF6J6COwzYGaIIX6UkVkTxyAhlg19tjtKRkVafWq3nXGE6O5++Sy+s0TJ7R h77jfE//6rBw2iccDwx/eF8BZ34ZJeTxegv0203HPAZ6ok0nj66vWtK69pKRt2xQrUSi5d FoZ/7jz/HolNGuT9lIzDNvk3OXEFZ/8vxYEK1xeP4WF9oo6UBSwqiO9x6JnVwBZZPRC5Ti eCcfxNF84erW2MgTWzZ3jsrUPdUQQoMirv609ENzRkhlTRoI3pAe/P63xSDi9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="lFe9S/lW"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671197184; a=rsa-sha256; cv=none; b=PM9UV2mZz3L7KB+e9KAYlositxuUVRjtL9fSfE7uKkdpniVz5RWpAWa3tnRahK5CYLxHwP sNYG8atjObewInI0OVZgRJ2gWX4WnCBrwVsdiPlJeo4wyjM8ZUSGDsYe7tXBychjXKQp29 vrT0hj51lXJR7rcUTQIKc5kGXQgfUY56m50lPkqguubZBnpjXLkeyuyMUkuyv8DvHEdhNE JomXyBQ59uQI+U45s1L7uwfIghIJk2UuyRiweGqvLOCpVPHwocmdcV8kW+dfm1q5Y/VaRo O9jsSSQQ5DlWChaqXuy7FI8t5u/P3XpiJ9+3bkFd1+iV1WswGMyroReate2zcw== X-Migadu-Spam-Score: -1.37 X-Spam-Score: -1.37 X-Migadu-Queue-Id: 366D63E8EB X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="lFe9S/lW"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) X-TUID: g5T6v/x6GOFF * gnu/packages/ocaml.scm (ocaml5.0-ctypes): New variable. --- gnu/packages/ocaml.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index bcd88c8637..7fbaed69ad 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -4797,6 +4797,7 @@ (define-public ocaml-ctypes ("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 @@ -4807,6 +4808,33 @@ (define-public ocaml-ctypes without writing or generating any C!") (license license:expat))) +(define-public ocaml5.0-ctypes + ;; Contains fix to support OCaml 5.0 + ;; (https://github.com/ocamllabs/ocaml-ctypes/pull/709) + (let ((commit "52ff621f47dbc1ee5a90c30af0ae0474549946b4") + (revision "0")) + (package-with-ocaml5.0 + (package + (inherit ocaml-ctypes) + (name "ocaml-ctypes") + (version (git-version "0.20.1" revision commit)) + (home-page "https://github.com/ocamllabs/ocaml-ctypes") + (arguments + (append + ;; Some tests fail. Failure seems to be due to OCaml 5.0. + `(#:tests? #f) + (package-arguments ocaml-ctypes))) + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vyiryqchz0mdfhal7bdivqsk5yhvzzckrqv495rlpbdxzklcp7g")))) + (properties '()))))) + (define-public ocaml-ocb-stubblr (package (name "ocaml-ocb-stubblr") -- 2.38.1