You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

opam-version: "2.0"
name: "infer"
version: "1.0.0"
synopsis: "A static analyzer for Java, C, C++, and Objective-C"
maintainer: "the infer team"
authors: "Facebook"
homepage: "https://github.com/facebook/infer"
bug-reports: "https://github.com/facebook/infer/issues"
dev-repo: "git://github.com/facebook/infer.git"
license: "MIT"
build: [
["./autogen.sh"]
["./configure"
"--prefix=%{prefix}%"]
[make "-j" jobs]
[make "-j" jobs "config_tests"] {with-test}
]
install: [
[make "install"]
]
depends: [
"ANSITerminal" {>="0.7"}
"async" {>= "v0.14.0" & < "v0.15"}
"atdgen" {>="2.0.0"}
"base64" {>="3.0.0"}
"cmdliner" {>="1.0.0"}
"core" {>= "v0.14.0" & < "v0.15"}
"conf-autoconf" {build}
[build] add conf-sqlite3 and fix minor script issue Summary: Users missing the development package for libsqlite3 would see only a failure to install "sqlite3". Adding conf-sqlite3 to the dependencies does not improve things that much but there is a bit more information in the console: ``` [ERROR] The compilation of conf-sqlite3 failed at "pkg-config sqlite3". [ERROR] The compilation of sqlite3 failed at "jbuilder build -p sqlite3 -j 4". #=== ERROR while installing conf-sqlite3.1 ====================================# # opam-version 1.2.2 # os linux # command pkg-config sqlite3 # path /home/jul/.opam/infer-4.06.1+flambda/build/conf-sqlite3.1 # compiler 4.06.1+flambda # exit-code 1 # env-file /home/jul/.opam/infer-4.06.1+flambda/build/conf-sqlite3.1/conf-sqlite3-7504-7afd23.env # stdout-file /home/jul/.opam/infer-4.06.1+flambda/build/conf-sqlite3.1/conf-sqlite3-7504-7afd23.out # stderr-file /home/jul/.opam/infer-4.06.1+flambda/build/conf-sqlite3.1/conf-sqlite3-7504-7afd23.err #=== ERROR while installing sqlite3.4.3.2 =====================================# # opam-version 1.2.2 # os linux # command jbuilder build -p sqlite3 -j 4 # path /home/jul/.opam/infer-4.06.1+flambda/build/sqlite3.4.3.2 # compiler 4.06.1+flambda # exit-code 1 # env-file /home/jul/.opam/infer-4.06.1+flambda/build/sqlite3.4.3.2/sqlite3-7504-d2c37b.env # stdout-file /home/jul/.opam/infer-4.06.1+flambda/build/sqlite3.4.3.2/sqlite3-7504-d2c37b.out # stderr-file /home/jul/.opam/infer-4.06.1+flambda/build/sqlite3.4.3.2/sqlite3-7504-d2c37b.err ### stderr ### # -> stdout: # [...] # | ast_impl_magic_number: Caml1999M022 # | ast_intf_magic_number: Caml1999N022 # | cmxs_magic_number: Caml1999D022 # | cmt_magic_number: Caml1999T022 # -> stderr: # Fatal error: exception End_of_file # Raised at file "src/import0.ml" (inlined), line 351, characters 22-32 # Called from file "src/configurator.ml", line 511, characters 13-22 # Called from file "src/config/discover.ml", line 42, characters 2-1023 Exception: Reqs_error (Process_error ("opam install -y ANSITerminal.0.8 atd.1.12.0 atdgen.1.12.0 base.v0.11.0 base64.2.2.0 bin_prot.v0.11.0 biniou.1.2.0 camlp4.4.06+1 camlzip.1.07 cmdliner.1.0.2 conf-aclocal.1.0.0 conf-autoconf.0.1 conf-m4.1 conf-pkg-config.1.0 conf-sqlite3.1 conf-which.1 conf-zlib.1 configurator.v0.11.0 core.v0.11.0 "... (* string length 1469; truncated *), Unix.WEXITED 4)). ``` Also fix some issues with `build-infer.sh`: - fix a problem where `SCRIPT_PATH` should be `SCRIPT_DIR` - add `set -u` and `set -o pipefail` to make sure we don't miss errors in the future - add quotes everywhere - make number of `JOBS` user-configurable instead of hardcoding `$NCPU` Reviewed By: mbouaziz Differential Revision: D8201849 fbshipit-source-id: 19b7c77
7 years ago
"conf-sqlite3" {build}
"conf-zlib" {build}
"ctypes" {>="0.9.2"}
"dune" {build & >="2.0"}
"javalib" {>="3.2.1"}
"mlgmpidl" {>="1.2.12"}
"mtime"
"ocaml" {>="4.09.0"}
"ocamlfind" {build}
"ocamlgraph"
"ounit" {>="2.0.5"}
"parmap" {>="1.0-rc8"}
"ppx_blob"
"ppx_compare" {>= "v0.14.0" & < "v0.15"}
"ppx_deriving" {>="4.1"}
"ppx_enumerate" {>= "v0.14.0" & < "v0.15"}
"ppx_expect" {>= "v0.14.0" & < "v0.15"}
"ppx_fields_conv" {>= "v0.14.0" & < "v0.15"}
"sawja" {>="1.5.8"}
"sqlite3"
"utop" {with-test}
"xmlm" {>="1.2.0"}
"yojson" {>="1.7.0"}
"zarith" {>="1.7"}
]
depexts: [
[ ["ubuntu"] ["default-jdk"] ]
[ ["debian"] ["default-jdk"] ]
]