summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2019-04-14 18:55:22 +0200
committerJulien Lepiller <julien@lepiller.eu>2019-04-25 19:00:25 +0200
commitbbe9915b30c8296cdbc6d3a777965e40d07dbfa3 (patch)
tree2a11091268168ce7066459e55961f16471b91e9f
parentce9a30e6f4a34df45a4a165fea315f61745bb1d3 (diff)
gnu: bap: Update to 1.6.0.
* gnu/packages/ocaml.scm (bap): Update to 1.6.0. (ocaml-frontc): Update to 3.4.1. (ocaml-fileutils, ocaml-cstruct, ocaml-hex, ocaml-ezjsonm, ocaml-uri): New variables. (ocaml4.02-fileutils, ocaml4.02-cstruct, ocaml4.02-hex, ocaml4.02-ezjsonm, ocaml4.02-uri): Remove variables.
-rw-r--r--gnu/packages/ocaml.scm215
1 files changed, 95 insertions, 120 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 92bfc75c78f..633949cf5de 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1255,19 +1255,20 @@ for speed and space economy.")
1255(define-public ocaml-frontc 1255(define-public ocaml-frontc
1256 (package 1256 (package
1257 (name "ocaml-frontc") 1257 (name "ocaml-frontc")
1258 (version "3.4") 1258 (version "3.4.1")
1259 (source (origin 1259 (source (origin
1260 (method url-fetch) 1260 (method git-fetch)
1261 (uri (string-append "https://www.irit.fr/recherches/ARCHI/MARCH/" 1261 (uri (git-reference
1262 "frontc/Frontc-" version ".tgz")) 1262 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1263 (commit (string-append
1264 "V_" (string-join (string-split version #\.) "_")))))
1265 (file-name (git-file-name name version))
1263 (sha256 1266 (sha256
1264 (base32 1267 (base32
1265 "16dz153s92dgbw1rrfwbhscy73did87kfmjwyh3qpvs748h1sc4g")))) 1268 "1dq5nks0c9gsbr1m8k39m1bniawr5hqcy1r8x5px7naa95ch06ak"))))
1266 (build-system ocaml-build-system) 1269 (build-system ocaml-build-system)
1267 (arguments 1270 (arguments
1268 `(#:ocaml ,ocaml-4.02 1271 `(#:phases
1269 #:findlib ,ocaml4.02-findlib
1270 #:phases
1271 (modify-phases %standard-phases 1272 (modify-phases %standard-phases
1272 (delete 'configure) 1273 (delete 'configure)
1273 (add-after 'install 'install-meta 1274 (add-after 'install 'install-meta
@@ -2720,9 +2721,9 @@ language.")
2720can match the question using a regular expression or a timeout.") 2721can match the question using a regular expression or a timeout.")
2721 (license license:lgpl2.1+))) ; with the OCaml static compilation exception 2722 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2722 2723
2723(define-public ocaml4.02-fileutils 2724(define-public ocaml-fileutils
2724 (package 2725 (package
2725 (name "ocaml4.02-fileutils") 2726 (name "ocaml-fileutils")
2726 (version "0.5.3") 2727 (version "0.5.3")
2727 (source (origin 2728 (source (origin
2728 (method url-fetch) 2729 (method url-fetch)
@@ -2731,11 +2732,9 @@ can match the question using a regular expression or a timeout.")
2731 (base32 2732 (base32
2732 "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd")))) 2733 "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd"))))
2733 (build-system ocaml-build-system) 2734 (build-system ocaml-build-system)
2734 (arguments
2735 `(#:ocaml ,ocaml-4.02
2736 #:findlib ,ocaml4.02-findlib))
2737 (native-inputs 2735 (native-inputs
2738 `(("ounit" ,ocaml4.02-ounit))) 2736 `(("ocamlbuild" ,ocamlbuild)
2737 ("ounit" ,ocaml-ounit)))
2739 (home-page "http://ocaml-fileutils.forge.ocamlcore.org") 2738 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2740 (synopsis "Pure OCaml functions to manipulate real file and filename") 2739 (synopsis "Pure OCaml functions to manipulate real file and filename")
2741 (description "Library to provide pure OCaml functions to manipulate real 2740 (description "Library to provide pure OCaml functions to manipulate real
@@ -3904,43 +3903,24 @@ big- and little-endian, with their unsafe counter-parts.")
3904(define-public ocaml4.02-ocplib-endian 3903(define-public ocaml4.02-ocplib-endian
3905 (package-with-ocaml4.02 ocaml-ocplib-endian)) 3904 (package-with-ocaml4.02 ocaml-ocplib-endian))
3906 3905
3907(define-public ocaml4.02-cstruct 3906(define-public ocaml-cstruct
3908 (package 3907 (package
3909 (name "ocaml4.02-cstruct") 3908 (name "ocaml-cstruct")
3910 (version "2.3.1") 3909 (version "4.0.0")
3911 (source (origin 3910 (source (origin
3912 (method url-fetch) 3911 (method git-fetch)
3913 (uri (string-append "https://github.com/mirage/ocaml-cstruct/" 3912 (uri (git-reference
3914 "archive/v" version ".tar.gz")) 3913 (url "https://github.com/mirage/ocaml-cstruct")
3914 (commit (string-append "v" version))))
3915 (sha256 3915 (sha256
3916 (base32 3916 (base32
3917 "15qpdc8421shq4pprdas9jznpva45229wkfqbwcxw9khaiiz7949")) 3917 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
3918 (file-name (string-append name "-" version ".tar.gz")))) 3918 (build-system dune-build-system)
3919 (build-system ocaml-build-system)
3920 (arguments 3919 (arguments
3921 `(#:ocaml ,ocaml-4.02 3920 `(#:package "cstruct"
3922 #:findlib ,ocaml4.02-findlib 3921 #:test-target "."))
3923 #:configure-flags
3924 (list "--enable-lwt" "--enable-async")
3925 #:phases
3926 (modify-phases %standard-phases
3927 (add-after 'install 'link-stubs
3928 (lambda* (#:key outputs #:allow-other-keys)
3929 (let* ((out (assoc-ref outputs "out"))
3930 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
3931 (lib (string-append out "/lib/ocaml/site-lib/cstruct")))
3932 (mkdir-p stubs)
3933 (symlink (string-append lib "/dllcstruct_stubs.so")
3934 (string-append stubs "/dllcstruct_stubs.so"))))))))
3935 (native-inputs 3922 (native-inputs
3936 `(("ounit" ,ocaml4.02-ounit) 3923 `(("ocaml-alcotest" ,ocaml-alcotest)))
3937 ("ppx-tools" ,ocaml4.02-ppx-tools)
3938 ("camlp4" ,camlp4-4.02)))
3939 (propagated-inputs
3940 `(("ocplib-endian" ,ocaml4.02-ocplib-endian)
3941 ("lwt" ,ocaml4.02-lwt)
3942 ("async" ,ocaml4.02-async)
3943 ("sexplib" ,ocaml4.02-sexplib)))
3944 (home-page "https://github.com/mirage/ocaml-cstruct") 3924 (home-page "https://github.com/mirage/ocaml-cstruct")
3945 (synopsis "Access C structures via a camlp4 extension") 3925 (synopsis "Access C structures via a camlp4 extension")
3946 (description "Cstruct is a library and syntax extension to make it easier 3926 (description "Cstruct is a library and syntax extension to make it easier
@@ -3948,33 +3928,34 @@ to access C-like structures directly from OCaml. It supports both reading and
3948writing to these structures, and they are accessed via the Bigarray module.") 3928writing to these structures, and they are accessed via the Bigarray module.")
3949 (license license:isc))) 3929 (license license:isc)))
3950 3930
3951(define-public ocaml4.02-hex 3931(define-public ocaml-hex
3952 (package 3932 (package
3953 (name "ocaml4.02-hex") 3933 (name "ocaml-hex")
3954 (version "1.0.0") 3934 (version "1.4.0")
3955 (source (origin 3935 (source (origin
3956 (method url-fetch) 3936 (method git-fetch)
3957 (uri (string-append "https://github.com/mirage/ocaml-hex/" 3937 (uri (git-reference
3958 "archive/" version ".tar.gz")) 3938 (url "https://github.com/mirage/ocaml-hex")
3939 (commit (string-append "v" version))))
3940 (file-name (git-file-name name version))
3959 (sha256 3941 (sha256
3960 (base32 3942 (base32
3961 "0s63g0b8gfv2xm6fv6xg7bva8h76b5pcjb0zw3f8cygs0lq9072v")) 3943 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
3962 (file-name (string-append name "-" version ".tar.gz")))) 3944 (build-system dune-build-system)
3963 (build-system ocaml-build-system)
3964 (arguments 3945 (arguments
3965 `(#:ocaml ,ocaml-4.02 3946 `(#:test-target "."))
3966 #:findlib ,ocaml4.02-findlib))
3967 (propagated-inputs 3947 (propagated-inputs
3968 `(("cstruct" ,ocaml4.02-cstruct))) 3948 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
3949 ("cstruct" ,ocaml-cstruct)))
3969 (home-page "https://github.com/mirage/ocaml-hex/") 3950 (home-page "https://github.com/mirage/ocaml-hex/")
3970 (synopsis "Minimal library providing hexadecimal converters") 3951 (synopsis "Minimal library providing hexadecimal converters")
3971 (description "Hex is a minimal library providing hexadecimal converters.") 3952 (description "Hex is a minimal library providing hexadecimal converters.")
3972 (license license:isc))) 3953 (license license:isc)))
3973 3954
3974(define-public ocaml4.02-ezjsonm 3955(define-public ocaml-ezjsonm
3975 (package 3956 (package
3976 (name "ocaml4.02-ezjsonm") 3957 (name "ocaml-ezjsonm")
3977 (version "0.4.3") 3958 (version "1.0.0")
3978 (source 3959 (source
3979 (origin 3960 (origin
3980 (method git-fetch) 3961 (method git-fetch)
@@ -3983,19 +3964,17 @@ writing to these structures, and they are accessed via the Bigarray module.")
3983 (commit version))) 3964 (commit version)))
3984 (file-name (git-file-name name version)) 3965 (file-name (git-file-name name version))
3985 (sha256 3966 (sha256
3986 (base32 "1y6p3ga6vj1wx5dyns7hjgd0qgrrn2hnn323a7y5didgci5pybls")))) 3967 (base32 "1dzjqrj7nl15ij921r7439fp0m7jrl3vskkdqb4syihjvsbvq1sj"))))
3987 (build-system ocaml-build-system) 3968 (build-system dune-build-system)
3969 (arguments
3970 `(#:package "ezjsonm"
3971 #:test-target "."))
3988 (native-inputs 3972 (native-inputs
3989 `(("alcotest" ,ocaml4.02-alcotest))) 3973 `(("ocaml-alcotest" ,ocaml-alcotest)))
3990 (propagated-inputs 3974 (propagated-inputs
3991 `(("hex" ,ocaml4.02-hex) 3975 `(("ocaml-hex" ,ocaml-hex)
3992 ("jsonm" ,ocaml4.02-jsonm) 3976 ("ocaml-jsonm" ,ocaml-jsonm)
3993 ("lwt" ,ocaml4.02-lwt) 3977 ("ocaml-sexplib" ,ocaml-sexplib)))
3994 ("sexplib" ,ocaml4.02-sexplib)))
3995 (arguments
3996 `(#:configure-flags (list "--enable-lwt")
3997 #:ocaml ,ocaml-4.02
3998 #:findlib ,ocaml4.02-findlib))
3999 (home-page "https://github.com/mirage/ezjsonm/") 3978 (home-page "https://github.com/mirage/ezjsonm/")
4000 (synopsis "Read and write JSON data") 3979 (synopsis "Read and write JSON data")
4001 (description "Ezjsonm provides more convenient (but far less flexible) input 3980 (description "Ezjsonm provides more convenient (but far less flexible) input
@@ -4004,10 +3983,10 @@ the need to write signal code, which is useful for quick scripts that manipulate
4004JSON.") 3983JSON.")
4005 (license license:isc))) 3984 (license license:isc)))
4006 3985
4007(define-public ocaml4.02-uri 3986(define-public ocaml-uri
4008 (package 3987 (package
4009 (name "ocaml4.02-uri") 3988 (name "ocaml-uri")
4010 (version "1.9.2") 3989 (version "2.2.0")
4011 (source 3990 (source
4012 (origin 3991 (origin
4013 (method git-fetch) 3992 (method git-fetch)
@@ -4016,19 +3995,17 @@ JSON.")
4016 (commit (string-append "v" version)))) 3995 (commit (string-append "v" version))))
4017 (file-name (git-file-name name version)) 3996 (file-name (git-file-name name version))
4018 (sha256 3997 (sha256
4019 (base32 "137pg8j654x7r0d1664iy2zp3l82nki1kkh921lwdrwc5qqdl6jx")))) 3998 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
4020 (build-system ocaml-build-system) 3999 (build-system dune-build-system)
4021 (arguments 4000 (arguments
4022 `(#:ocaml ,ocaml-4.02 4001 `(#:test-target "."))
4023 #:findlib ,ocaml4.02-findlib))
4024 (native-inputs 4002 (native-inputs
4025 `(("ounit" ,ocaml4.02-ounit))) 4003 `(("ocaml-ounit" ,ocaml-ounit)
4004 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)))
4026 (propagated-inputs 4005 (propagated-inputs
4027 `(("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv) 4006 `(("ocaml-re" ,ocaml-re)
4028 ("re" ,ocaml4.02-re) 4007 ("ocaml-sexplib0" ,ocaml-sexplib0)
4029 ("ppx-deriving" ,ocaml4.02-ppx-deriving) 4008 ("ocaml-stringext" ,ocaml-stringext)))
4030 ("sexplib" ,ocaml4.02-sexplib)
4031 ("stringext" ,ocaml4.02-stringext)))
4032 (home-page "https://github.com/mirage/ocaml-uri") 4009 (home-page "https://github.com/mirage/ocaml-uri")
4033 (synopsis "RFC3986 URI/URL parsing library") 4010 (synopsis "RFC3986 URI/URL parsing library")
4034 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.") 4011 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
@@ -4266,50 +4243,52 @@ XML and Protocol Buffers formats.")
4266(define-public bap 4243(define-public bap
4267 (package 4244 (package
4268 (name "bap") 4245 (name "bap")
4269 (version "1.3.0") 4246 (version "1.6.0")
4270 (home-page "https://github.com/BinaryAnalysisPlatform/bap") 4247 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
4271 (source (origin 4248 (source (origin
4272 (method url-fetch) 4249 (method git-fetch)
4273 (uri (string-append home-page "/archive/v" version ".tar.gz")) 4250 (uri (git-reference
4251 (url home-page)
4252 (commit (string-append "v" version))))
4253 (file-name (git-file-name name version))
4274 (sha256 4254 (sha256
4275 (base32 4255 (base32
4276 "0v95v9mp7mg8fj25ry0w7566zd9xp6cs8nnqj4l38q54fb1hfav9")) 4256 "0ryf2xb37pj2f9mc3p5prqgqrylph9qgq7q9jnbx8b03nzzpa6h6"))))
4277 (file-name (string-append name "-" version ".tar.gz"))))
4278 (build-system ocaml-build-system) 4257 (build-system ocaml-build-system)
4279 (native-inputs 4258 (native-inputs
4280 `(("oasis" ,ocaml4.02-oasis) 4259 `(("ocaml-oasis" ,ocaml-oasis)
4281 ("clang" ,clang-3.8) 4260 ("clang" ,clang-3.8)
4282 ("ounit" ,ocaml4.02-ounit))) 4261 ("ocaml-ounit" ,ocaml-ounit)))
4283 (propagated-inputs 4262 (propagated-inputs
4284 `(("core-kernel" ,ocaml4.02-core-kernel) 4263 `(("camlzip" ,camlzip)
4285 ("ppx-driver" ,ocaml4.02-ppx-driver) 4264 ("ocaml-bitstring" ,ocaml-bitstring)
4286 ("bin-prot" ,ocaml4.02-bin-prot) 4265 ("ocaml-cmdliner" ,ocaml-cmdliner)
4287 ("uri" ,ocaml4.02-uri) 4266 ("ocaml-core-kernel" ,ocaml-core-kernel)
4288 ("llvm" ,llvm-3.8) 4267 ("ocaml-ezjsonm" ,ocaml-ezjsonm)
4289 ("gmp" ,gmp) 4268 ("ocaml-fileutils" ,ocaml-fileutils)
4290 ("clang-runtime" ,clang-runtime) 4269 ("ocaml-frontc" ,ocaml-frontc)
4291 ("fileutils" ,ocaml4.02-fileutils) 4270 ("ocaml-graph" ,ocaml-graph)
4292 ("cmdliner" ,ocaml4.02-cmdliner) 4271 ("ocaml-ocurl" ,ocaml-ocurl)
4293 ("zarith" ,ocaml4.02-zarith) 4272 ("ocaml-piqi" ,ocaml-piqi)
4294 ("uuidm" ,ocaml4.02-uuidm) 4273 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
4295 ("camlzip" ,ocaml4.02-camlzip) 4274 ("ocaml-uuidm" ,ocaml-uuidm)
4296 ("frontc" ,ocaml-frontc) 4275 ("ocaml-uri" ,ocaml-uri)
4297 ("ezjsonm" ,ocaml4.02-ezjsonm) 4276 ("ocaml-zarith" ,ocaml-zarith)))
4298 ("ocurl" ,ocaml4.02-ocurl) 4277 (inputs
4299 ("piqi" ,ocaml4.02-piqi) 4278 `(("llvm" ,llvm-3.8)
4300 ("ocamlgraph" ,ocaml4.02-graph) 4279 ("gmp" ,gmp)))
4301 ("bitstring" ,ocaml4.02-bitstring)
4302 ("ppx-jane" ,ocaml4.02-ppx-jane)
4303 ("re" ,ocaml4.02-re)))
4304 (inputs `(("llvm" ,llvm-3.8)))
4305 (arguments 4280 (arguments
4306 `(#:ocaml ,ocaml-4.02 4281 `(#:use-make? #t
4307 #:findlib ,ocaml4.02-findlib
4308 #:use-make? #t
4309 #:phases 4282 #:phases
4310 (modify-phases %standard-phases 4283 (modify-phases %standard-phases
4311 (replace 'configure 4284 (replace 'configure
4312 (lambda* (#:key outputs inputs #:allow-other-keys) 4285 (lambda* (#:key outputs inputs #:allow-other-keys)
4286 ;; add write for user, to prevent a failure in the install phase
4287 (for-each
4288 (lambda (file)
4289 (let ((stat (stat file)))
4290 (chmod file (+ #o200 (stat:mode stat)))))
4291 (find-files "." "."))
4313 (invoke "./configure" "--prefix" 4292 (invoke "./configure" "--prefix"
4314 (assoc-ref outputs "out") 4293 (assoc-ref outputs "out")
4315 "--libdir" 4294 "--libdir"
@@ -4318,11 +4297,7 @@ XML and Protocol Buffers formats.")
4318 "/lib/ocaml/site-lib") 4297 "/lib/ocaml/site-lib")
4319 "--with-llvm-version=3.8" 4298 "--with-llvm-version=3.8"
4320 "--with-llvm-config=llvm-config" 4299 "--with-llvm-config=llvm-config"
4321 "--enable-everything") 4300 "--enable-everything"))))))
4322 (substitute* "plugins/objdump/objdump_main.ml"
4323 (("Re_perl") "Re.Perl"))
4324 (substitute* "oasis/objdump"
4325 (("re.pcre") "re.pcre, re.perl")))))))
4326 (synopsis "Binary Analysis Platform") 4301 (synopsis "Binary Analysis Platform")
4327 (description "Binary Analysis Platform is a framework for writing program 4302 (description "Binary Analysis Platform is a framework for writing program
4328analysis tools, that target binary files. The framework consists of a plethora 4303analysis tools, that target binary files. The framework consists of a plethora