From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yCIkMvtfeWajxAAA62LTzQ:P1 (envelope-from ) for ; Mon, 24 Jun 2024 12:00:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yCIkMvtfeWajxAAA62LTzQ (envelope-from ) for ; Mon, 24 Jun 2024 14:00:59 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=iP4INVDv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foundation.xyz (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719230459; 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=WtIWV1tvDS6LEJLXzda/9hKr0fTktwopZzjjh45ZORY=; b=bwC45GuNCoaQEHkglAxM0JKX0y4XAGsvEkK6zQqpbaCs2X/MACXHdLC4ad1rHkV8jBswBb BzqHJf2N8nK4JLiK4rPBhAkfN7ZFKjfHrVBpPTYd4x537Qhg9ew9s6Tnbmpyq4VFOpQetv HbpYlTmLYiiSwlFjFphk6iRaQFlzez5Pq9iplP6twxPI1j1htgpggbniNyjDggq06LvpFS 7AvVxQrPHjw+pLR381yRVsbtlb1BiIWbYVZKn5l3Han2bx4Hp+KsRLhwBg0hYn403HwmGp ssUa0HAlJZ579XspORbVzY0daAGY0nlM1+JPzsYVk3OwhYAAkbRfh85HfC6XUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719230459; a=rsa-sha256; cv=none; b=LcrzUa55w7YIXlv3o+Z+BDauL5ZzRMPE+Uo/BLc1GJBD+MueqVosSb1C1RdJpY+JsK/nyZ dW6WcYQWM0mGCvBGRRTzHtkN2SN0BEnXvE/udRcAhwxjJ47w18rbNY3fbKYd8XvIn6HQwH 061EbcfJZFP/dJ1Aan/YzdaZGv/vXBrGnpgDRmLueumBZxog5YaW1Kx1q5tYshY0x+8SAP 9epzmn7LIn2kN8+m7p2PydsgpJcNgAuCOJCheqfBx7YV6k9U3d8HuvDMt/hmk6UJ1e1evk Oca6Gwpw8MK3trn1VacPciabcwAerI2Sp+feHZNeM6tiK6ElJTYvFZ0asg5WKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundation.xyz header.s=google header.b=iP4INVDv; dmarc=fail reason="SPF not aligned (relaxed)" header.from=foundation.xyz (policy=none); 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" 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 ACBE83F78A for ; Mon, 24 Jun 2024 14:00:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLiMj-0002Co-56; Mon, 24 Jun 2024 08:00:09 -0400 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 1sLiMg-0002CH-De for guix-patches@gnu.org; Mon, 24 Jun 2024 08:00:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLiMg-0005fJ-2n for guix-patches@gnu.org; Mon, 24 Jun 2024 08:00:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLiMf-0000CV-1V; Mon, 24 Jun 2024 08:00:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71748] [PATCH 3/3] gnu: frama-c: Add wrap-programs phase. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Mon, 24 Jun 2024 12:00:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71748 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71748@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 71748-submit@debbugs.gnu.org id=B71748.1719230377623 (code B ref 71748); Mon, 24 Jun 2024 12:00:05 +0000 Received: (at 71748) by debbugs.gnu.org; 24 Jun 2024 11:59:37 +0000 Received: from localhost ([127.0.0.1]:54318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLiMC-00009x-Kc for submit@debbugs.gnu.org; Mon, 24 Jun 2024 07:59:37 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:60768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLiM7-00009B-57 for 71748@debbugs.gnu.org; Mon, 24 Jun 2024 07:59:31 -0400 Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42198492353so35233655e9.1 for <71748@debbugs.gnu.org>; Mon, 24 Jun 2024 04:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1719230304; x=1719835104; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WtIWV1tvDS6LEJLXzda/9hKr0fTktwopZzjjh45ZORY=; b=iP4INVDv7j/4nL5h3UvddNuEsE+TmPOPEYnlsgNZL3O5xjH9Yre772IvVb0C79jX5n +d0kt07BhkUy1kx1kZPEllUo3tNq9vseb9/LOLNy9BwPcnUHdht+n0W0MLB7SaSE1R8X dbwFVFtJVuTnkQonZIw0VGqoCP3c9FprdVi/HFT6qLnLMuu5l0kwbv+zCIwhqYGUUtiU w9TXulzr/rXk0sXkOf4yrerPVj0ZLFfM7rzlOM7ojatIKBFxq/7X5RHWq3WQK+zdwdo9 wlB42Xkq3YiBMSovKdOnqJ83SIfZg91E+xKSNXTH3V9Bp3LqWHasmPmWj0rmoWckyeHC x+dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719230304; x=1719835104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WtIWV1tvDS6LEJLXzda/9hKr0fTktwopZzjjh45ZORY=; b=ndoBSmsqLMkwbUrKabx8uw2h4k8edKI9Ijj41WBynXU5cw/eg9Bi2h63GBXVf/T3ML IGtKdu6d6IvK5Cqyb2EpuAbuAVF6VkfupODTe/X+KapRsWbx+TAg9Z+LX5yTSEABJh4e cht9Ae2eU91SyGIqdck+CpfdFW6KPjgTZCkR5uxlcoORe0cSaHbVo71Ny3wXDVarxWbm R60v4xQIAGE/3BveHb3+Kt6jyEGxJIUFyFr45ep7PZLGBJc+mWvL3nDxCNWs1SfnOvhb pt20AfjOyhR/CswgpV7fYpprRZ0X7WLQMKuOVzNNG0AFI19KNFwhkMBKx71Zo6nmwbq8 5WwA== X-Gm-Message-State: AOJu0Yz7dhNEbnQ8doB1iaiJm7+oCUlV67wtvQrOc9hyJOYRutdqX3Fs 0tun2ucI5l/P+OPdDdATCGXUiUxqO/W9Yb1NuF0GrVFkPJbHhh9F1ftrCSVy42Om/9xivre7l4K A X-Google-Smtp-Source: AGHT+IHJ+DO8UHtQxKduKfNxZUMb0TeMVcuy4NTCkSFn2fF/dG7g/Pvi9BfoLqnjEn4zI1rWSVxtZg== X-Received: by 2002:a5d:5591:0:b0:362:2111:4816 with SMTP id ffacd0b85a97d-366e95e7178mr3066042f8f.55.1719230304077; Mon, 24 Jun 2024 04:58:24 -0700 (PDT) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3667c2fd7fbsm9526091f8f.89.2024.06.24.04.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 04:58:23 -0700 (PDT) From: Jean-Pierre De Jesus DIAZ Date: Mon, 24 Jun 2024 13:58:17 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 In-Reply-To: References: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.76 X-Spam-Score: -0.76 X-Migadu-Queue-Id: ACBE83F78A X-Migadu-Scanner: mx11.migadu.com X-TUID: we0KwdUzLUpM Frama-C needs the OCAMLPATH variable to be defined to load libraries, so define it using the OCAMLPATH variable generated during build time. Related issues: - (fixes it). - (only Frama-C fixed from this one). * gnu/packages/maths.scm (frama-c) : Add wrap-programs phase. Change-Id: Icc8a0be5fed6678b71649da2e39a83caaaee9df2 --- gnu/packages/maths.scm | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1df9931c69..858e7e75cc 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -9548,9 +9548,20 @@ (define-public frama-c #~(modify-phases %standard-phases (add-before 'build 'set-env (lambda _ - (setenv "CC" "gcc")))))) + (setenv "CC" "gcc"))) + (add-after 'install 'wrap-programs + (lambda _ + (let ((ocamlpath + `(,(string-append #$output "/lib/ocaml/site-lib") + ,@(search-path-as-string->list + (getenv "OCAMLPATH"))))) + (for-each + (lambda (program) + (wrap-program (string-append #$output "/bin/" program) + `("OCAMLPATH" ":" prefix ,ocamlpath))) + '("frama-c" "frama-c-gui")))))))) (inputs - (list gmp zlib)) + (list bash-minimal gmp zlib)) (propagated-inputs (list graphviz lablgtk3 -- 2.45.1