unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#71748] [PATCH 0/3] gnu: frama-c: Update to 29.0.
@ 2024-06-24 11:55 Jean-Pierre De Jesus DIAZ
  2024-06-24 11:58 ` [bug#71748] [PATCH 1/3] " Jean-Pierre De Jesus DIAZ
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-06-24 11:55 UTC (permalink / raw)
  To: 71748
  Cc: Jean-Pierre De Jesus DIAZ, Andreas Enge, Eric Bavier,
	Sharlatan Hellseher

This updates Frama-C to the latest version (29.0 Copper) and fixes
problems with the search paths so that Frama-C can be used without
the OCaml compiler in the profile[1][2].

[1]: <https://issues.guix.gnu.org/54094>.
[2]: <https://issues.guix.gnu.org/69996>.

Jean-Pierre De Jesus DIAZ (3):
  gnu: frama-c: Update to 29.0.
  gnu: frama-c: Use G-Expressions.
  gnu: frama-c: Add wrap-programs phase.

 gnu/packages/maths.scm | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)


base-commit: c5fc11488c7bf6d9cf35513a43a40c61e5b8e1cd
-- 
2.45.1





^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#71748] [PATCH 1/3] gnu: frama-c: Update to 29.0.
  2024-06-24 11:55 [bug#71748] [PATCH 0/3] gnu: frama-c: Update to 29.0 Jean-Pierre De Jesus DIAZ
@ 2024-06-24 11:58 ` Jean-Pierre De Jesus DIAZ
  2024-06-24 11:58 ` [bug#71748] [PATCH 2/3] gnu: frama-c: Use G-Expressions Jean-Pierre De Jesus DIAZ
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-06-24 11:58 UTC (permalink / raw)
  To: 71748
  Cc: Jean-Pierre De Jesus DIAZ, Andreas Enge, Eric Bavier,
	Sharlatan Hellseher

* gnu/packages/maths.scm (frama-c): Update to 29.0.

Change-Id: Ifca4712bc1d75b0c8837ac04151fa9a83ae95bbe
---
 gnu/packages/maths.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 02d8c704d8..90edd8a6e1 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -9534,14 +9534,14 @@ (define-public why3
 (define-public frama-c
   (package
     (name "frama-c")
-    (version "28.1")
+    (version "29.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://frama-c.com/download/frama-c-"
-                                  version "-Nickel.tar.gz"))
+                                  version "-Copper.tar.gz"))
               (sha256
                (base32
-                "14zmwghwhcryvri7k91vc1yampvxvhg36vwjxf64d8kx7dsbq802"))))
+                "14vlvynp3yfmnkixm676c1ip0jlkiqjzmrp9f9c990zzs2wb7yyj"))))
     (build-system dune-build-system)
     (arguments
       `(#:phases
-- 
2.45.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#71748] [PATCH 2/3] gnu: frama-c: Use G-Expressions.
  2024-06-24 11:55 [bug#71748] [PATCH 0/3] gnu: frama-c: Update to 29.0 Jean-Pierre De Jesus DIAZ
  2024-06-24 11:58 ` [bug#71748] [PATCH 1/3] " Jean-Pierre De Jesus DIAZ
@ 2024-06-24 11:58 ` Jean-Pierre De Jesus DIAZ
  2024-06-24 11:58 ` [bug#71748] [PATCH 3/3] gnu: frama-c: Add wrap-programs phase Jean-Pierre De Jesus DIAZ
  2024-06-24 20:05 ` bug#71748: [PATCH 0/3] gnu: frama-c: Update to 29.0 jgart via Guix-patches via
  3 siblings, 0 replies; 5+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-06-24 11:58 UTC (permalink / raw)
  To: 71748
  Cc: Jean-Pierre De Jesus DIAZ, Andreas Enge, Eric Bavier,
	Sharlatan Hellseher

* gnu/packages/maths.scm (frama-c) <arguments>: Use G-Expressions.

Change-Id: I25670a3d7e735e001aba63628c2f046be07fc643
---
 gnu/packages/maths.scm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 90edd8a6e1..1df9931c69 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -9544,11 +9544,11 @@ (define-public frama-c
                 "14vlvynp3yfmnkixm676c1ip0jlkiqjzmrp9f9c990zzs2wb7yyj"))))
     (build-system dune-build-system)
     (arguments
-      `(#:phases
-        (modify-phases %standard-phases
-          (add-before 'build 'set-env
-            (lambda _
-              (setenv "CC" "gcc"))))))
+     (list #:phases
+           #~(modify-phases %standard-phases
+             (add-before 'build 'set-env
+               (lambda _
+                 (setenv "CC" "gcc"))))))
     (inputs
      (list gmp zlib))
     (propagated-inputs (list
-- 
2.45.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#71748] [PATCH 3/3] gnu: frama-c: Add wrap-programs phase.
  2024-06-24 11:55 [bug#71748] [PATCH 0/3] gnu: frama-c: Update to 29.0 Jean-Pierre De Jesus DIAZ
  2024-06-24 11:58 ` [bug#71748] [PATCH 1/3] " Jean-Pierre De Jesus DIAZ
  2024-06-24 11:58 ` [bug#71748] [PATCH 2/3] gnu: frama-c: Use G-Expressions Jean-Pierre De Jesus DIAZ
@ 2024-06-24 11:58 ` Jean-Pierre De Jesus DIAZ
  2024-06-24 20:05 ` bug#71748: [PATCH 0/3] gnu: frama-c: Update to 29.0 jgart via Guix-patches via
  3 siblings, 0 replies; 5+ messages in thread
From: Jean-Pierre De Jesus DIAZ @ 2024-06-24 11:58 UTC (permalink / raw)
  To: 71748
  Cc: Jean-Pierre De Jesus DIAZ, Andreas Enge, Eric Bavier,
	Sharlatan Hellseher

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:

- <https://issues.guix.gnu.org/54094> (fixes it).
- <https://issues.guix.gnu.org/69996> (only Frama-C fixed from this one).

* gnu/packages/maths.scm (frama-c) <arguments>: 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





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#71748: [PATCH 0/3] gnu: frama-c: Update to 29.0.
  2024-06-24 11:55 [bug#71748] [PATCH 0/3] gnu: frama-c: Update to 29.0 Jean-Pierre De Jesus DIAZ
                   ` (2 preceding siblings ...)
  2024-06-24 11:58 ` [bug#71748] [PATCH 3/3] gnu: frama-c: Add wrap-programs phase Jean-Pierre De Jesus DIAZ
@ 2024-06-24 20:05 ` jgart via Guix-patches via
  3 siblings, 0 replies; 5+ messages in thread
From: jgart via Guix-patches via @ 2024-06-24 20:05 UTC (permalink / raw)
  To: 71748-done; +Cc: Jean-Pierre De Jesus DIAZ

Applied! Thanks.

--
jgart




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-24 20:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 11:55 [bug#71748] [PATCH 0/3] gnu: frama-c: Update to 29.0 Jean-Pierre De Jesus DIAZ
2024-06-24 11:58 ` [bug#71748] [PATCH 1/3] " Jean-Pierre De Jesus DIAZ
2024-06-24 11:58 ` [bug#71748] [PATCH 2/3] gnu: frama-c: Use G-Expressions Jean-Pierre De Jesus DIAZ
2024-06-24 11:58 ` [bug#71748] [PATCH 3/3] gnu: frama-c: Add wrap-programs phase Jean-Pierre De Jesus DIAZ
2024-06-24 20:05 ` bug#71748: [PATCH 0/3] gnu: frama-c: Update to 29.0 jgart via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).