From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ONKnESxynGMKIwAAbAwnHQ (envelope-from ) for ; Fri, 16 Dec 2022 14:27:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QOKyESxynGO1uAAAauVa8A (envelope-from ) for ; Fri, 16 Dec 2022 14:27:08 +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 2374C1CDA9 for ; Fri, 16 Dec 2022 14:27:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Aiz-0005kD-1b; Fri, 16 Dec 2022 08:26:05 -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 1p6Aiw-0005iT-Rl for guix-patches@gnu.org; Fri, 16 Dec 2022 08:26:03 -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 1p6Aiw-000784-Ch for guix-patches@gnu.org; Fri, 16 Dec 2022 08:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6Aiw-00033L-7r for guix-patches@gnu.org; Fri, 16 Dec 2022 08:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60120] [PATCH 01/28] gnu: Add ocaml-5.0. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Dec 2022 13:26:02 +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.167119714011547 (code B ref 60120); Fri, 16 Dec 2022 13:26:02 +0000 Received: (at 60120) by debbugs.gnu.org; 16 Dec 2022 13:25:40 +0000 Received: from localhost ([127.0.0.1]:49255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Aia-00030B-BW for submit@debbugs.gnu.org; Fri, 16 Dec 2022 08:25:40 -0500 Received: from mout02.posteo.de ([185.67.36.66]:56895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6AiY-0002zz-Bp for 60120@debbugs.gnu.org; Fri, 16 Dec 2022 08:25:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 49B33240104 for <60120@debbugs.gnu.org>; Fri, 16 Dec 2022 14:25:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671197132; bh=JE7pmf//4dSar+IiNFkbuvDwYqVfCGC2Xzfl9h0Wt4s=; h=From:To:Cc:Subject:Date:From; b=kxNzsKbpuWwNHbztbfpW6/rSYlx8h0bJzoPqhrAbem1tGgGtAXPBySmkWgIP4vkHo PmcErPP5zjnev25jJdmtvDvqtS57F0WaUY/+4tGZ3yRTJT3RD7ivbq/d4sxbUrfzVL k7e6PuqQaDvSyR8bQWRH5qtjw9WwXY5mqL3XbtiBHOijDwMiAxBz6eZoYgivvZlXkb i/uieG91FHEFlAQcwrfgn77Uhj96bPWIwluzSRcUcen8oT77p1lTzlpvN+saf0q0Ii wi1+GVsAwiOz95kLpdd3zHIwEBOe4oH87Sp4cmgRZEykBqFzN16O0RLZhsseTfhpsu MCz9tLn7BypuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NYVGM53vjz6tm4; Fri, 16 Dec 2022 14:25:31 +0100 (CET) From: pukkamustard Date: Fri, 16 Dec 2022 13:25:00 +0000 Message-Id: <20221216132527.2539-1-pukkamustard@posteo.net> In-Reply-To: <20221216132224.2229-1-pukkamustard@posteo.net> References: <20221216132224.2229-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=1671197228; 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=H+tpkpiag6eB8K7w+8w3oU63jS7XmxLEfhku193Y4hs=; b=UuGYX8MFkGFMEtWW+1QH2HoKziUZlQ75TG+A50+RNkNPbrFJGX9Aia679+s7cLYNOO3Bik PlSYBlF8uHjbQR459dYihqZ24oBtWbji8CO7JmtXC2hJkqBMVFAWGtKLgXoK4yiD8h97OO 1l/p7jcRvx1hzTGdIVf9WYLv0CftmDdq3M+kMm37hvskYyNZ/AacFMlV4RgziBb4LLox4O ubrSeIXLEDyi82om1SlM3YTH3WLkjj/ZmexRXBkWCYciLVMgMpvNitUVOtaUtnvxlA9b+S QTmTx57WKAUBeAqe354rsNrm0gwtAfZ2RBE1V0d/qs0j/cwQMMhYLWj6LNFi+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=kxNzsKbp; 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=1671197228; a=rsa-sha256; cv=none; b=gmgCu/+y/uHsvGZ1onobBBe2tv6mG6oGSAx8Gsk+wzxgDGJ9DdhEtCgcb9eu3SqGUGKKG3 8bCvc/nJRqieWepF+EHF9tiMEn94wBekto4OCExjwQkDDXFeJ/wIw3IZyZzZ6ff9Pz0Bqm xaq/+zxHAusduaDfpKHlFaVGfWssGITTZpJrhgwiRuX9iTpAoTby/drGGBuGtpjiAyRvWA X09To3Axk7c5tdjjur532hqvr/X1+h6kSb9yVQOLmFoS6GJiX6BiMLSkksThfb6lL8GezB wpWOtl5jGuReHslkh2efEteYjSsrpVgCfnhr36xA8UzA/4HFmEhMm7VKfBTsUA== X-Migadu-Spam-Score: -1.37 X-Spam-Score: -1.37 X-Migadu-Queue-Id: 2374C1CDA9 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=kxNzsKbp; 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: HIpQVsfT8zjJ * gnu/packages/ocaml.scm (ocaml-5.0): New variable. --- gnu/packages/ocaml.scm | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index e0bedf74f9..ae8b0c8ee1 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -185,6 +185,66 @@ (define-public camlboot This package produces a native @command{ocamlc} and a bytecode @command{ocamllex}.") (license license:expat)))) +(define-public ocaml-5.0 + (package + (name "ocaml") + (version "5.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml/ocaml") + (commit version))) + (sha256 + (base32 + "1p0p8wldrnbr61wfy3x4122017g4k5gjvfwlg3mvlqn8r2fxn2m5")))) + (build-system gnu-build-system) + (native-search-paths + (list (search-path-specification + (variable "OCAMLPATH") + (files (list "lib/ocaml" "lib/ocaml/site-lib"))) + (search-path-specification + (variable "CAML_LD_LIBRARY_PATH") + (files (list "lib/ocaml/site-lib/stubslibs" + "lib/ocaml/site-lib/stublibs"))))) + (native-inputs + (list perl pkg-config)) + (inputs + (list libx11 libiberty ;needed for objdump support + zlib)) ;also needed for objdump support + (arguments + `(#:configure-flags '("--enable-ocamltest") + #:test-target "tests" + #:make-flags '("world.opt") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-/bin/sh-references + (lambda* (#:key inputs #:allow-other-keys) + (let* ((sh (search-input-file inputs "/bin/sh")) + (quoted-sh (string-append "\"" sh "\""))) + (with-fluids ((%default-port-encoding #f)) + (for-each + (lambda (file) + (substitute* file + (("\"/bin/sh\"") + (begin + (format (current-error-port) "\ +patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%" + file quoted-sh) + quoted-sh)))) + (find-files "." "\\.ml$"))))))))) + (home-page "https://ocaml.org/") + (synopsis "The OCaml programming language") + (description + "OCaml is a general purpose industrial-strength programming language with +an emphasis on expressiveness and safety. Developed for more than 20 years at +Inria it benefits from one of the most advanced type systems and supports +functional, imperative and object-oriented styles of programming.") + ;; The compiler is distributed under qpl1.0 with a change to choice of + ;; law: the license is governed by the laws of France. The library is + ;; distributed under lgpl2.0. + (license (list license:qpl license:lgpl2.0)))) + + (define-public ocaml-4.14 (package (name "ocaml") -- 2.38.1