From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kHwoMif30mACMAEAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 10:56:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wNtULSf30mB2FwAA1q6Kng (envelope-from ) for ; Wed, 23 Jun 2021 08:56:07 +0000 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 C4803FEA2 for ; Wed, 23 Jun 2021 10:56:06 +0200 (CEST) Received: from localhost ([::1]:39380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvyg1-000067-Op for larch@yhetil.org; Wed, 23 Jun 2021 04:56:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvyd3-0003sM-TQ for guix-patches@gnu.org; Wed, 23 Jun 2021 04:53:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvyd3-0002Dg-Lw for guix-patches@gnu.org; Wed, 23 Jun 2021 04:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvyd3-00053f-LR for guix-patches@gnu.org; Wed, 23 Jun 2021 04:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49183] [PATCH] gnu: ocaml-dose3: Fix tests. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Jun 2021 08:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49183 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49183@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162443837619430 (code B ref -1); Wed, 23 Jun 2021 08:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2021 08:52:56 +0000 Received: from localhost ([127.0.0.1]:40393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvycx-00053J-S1 for submit@debbugs.gnu.org; Wed, 23 Jun 2021 04:52:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:48444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvycv-00053B-SA for submit@debbugs.gnu.org; Wed, 23 Jun 2021 04:52:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvycv-0003s8-GS for guix-patches@gnu.org; Wed, 23 Jun 2021 04:52:53 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:41364 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 1lvyct-0001vp-Oc for guix-patches@gnu.org; Wed, 23 Jun 2021 04:52:53 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1624438359; bh=nes3S8BfN1230rp216rZygKoNvsiHsA+jh/j58d2WbY=; h=From:To:Subject:Date; b=VI4g2T0OjnP9B7q0x9AoPvcjsnWeg3cY/+f7XJm/mH/GKjfIlpBXhMncJlMO84Uj9 PDN5fq8LfDj7WeuMRWCKHFjurEycM5uNEqIE8YseRUUO7KnKCHxZEVrXQXvRGWwyME /md//JnMvnXaYUr5WIXZsuPQypnl8iTm4wAsvWS8= Message-Id: <4598abb91f7f610e062f34931fe988d04b5d43c1.1624438202.git.public@yoctocell.xyz> Date: Wed, 23 Jun 2021 10:52:38 +0200 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 29 X-Spam_score: 2.9 X-Spam_bar: ++ X-Spam_report: (2.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.5, FROM_SUSPICIOUS_NTLD_FP=1.489, PDS_OTHER_BAD_TLD=1.999, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624438567; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=GtQM4cyYISztpF62+WEcOkGyB5yqieI6iPSb+HC8OhI=; b=rEPhj1rHI/1XDBrBtTEyE8GRBC0+BuPbqnOItdFc8oTrNSp77t16PPGaDWC/4Lnshvziy5 0cubq37GwMZ6h4HGc6WAYRkAXlDxojBmM/9g5IRspeIqQu5CK2BhIW+Putlpc/HEXk6RCT jO/+5y2yhiJF/uK63KbHHqZER/kJ6GAZ2P67iS9XyRJkb7udg5Cthe81Fdn8HCyGwfXfz9 ea0H2f/KzvEofDApSO6cmz9PKEGJA71NjIwMaRBS8mz6vNH3YPqo23qcKgl60zxMadoM4c 1LU7XwhikTWI55N63/pdrdy2RdnyBtjHdkNqbomHnghHxcAQTLUwpzhPOgwOjQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624438567; a=rsa-sha256; cv=none; b=RzdHXBH/Vp2tkJGenez7FK78gGkDNSXxh+1p1JC5wJnSrUkctKuxaUFUCKHZVovS64lohx AbRmD1Yx/W4+FpoMcDqtxsTjX4gJUhzjka45I/qi+UvyKT25/Vl3OCTSWI5XAalmsrbMHw nhqc31gV7Tcj+tVbBZeoIblPcqE0Dif+RG5BRorD+OmzzBQAClNuTd4Uabt/g2DsJr8ID9 9+4ZNQvBCbyqxTarvZDg1Q8SDgcyCvU4c3vfuC3WCaL1m/FHzs/IgAssZ/CgBohKUzfBtl CDDTM84naCEt6z0N+LpTtq6ETqJaR9X3fE5naPe4/7J3RLsWCAfw3aj5cNSiUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=VI4g2T0O; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=VI4g2T0O; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C4803FEA2 X-Spam-Score: -0.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: SnKpArpFEEYX * gnu/packages/ocaml.scm (ocaml-dose3)[arguments]<#:phases>: Add phase to patch tests script. --- The test script was failing to run without this, which also caused emacs-tuareg to not build. No idea why one would use Python to test OCaml code... gnu/packages/ocaml.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index dd30f4cc97..1262c0e303 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -647,7 +647,14 @@ underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.") #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out") - "/lib/ocaml/site-lib")))) + "/lib/ocaml/site-lib")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-test-script + (lambda _ + (substitute* "applications/dose-tests.py" + (("warning\\(") + "from warnings import warn\nwarn("))))))) (propagated-inputs `(("ocaml-graph" ,ocaml-graph) ("ocaml-cudf" ,ocaml-cudf) base-commit: 4605ea1a780ff5889b7273d27a255294d7a08327 -- 2.32.0