{"action":"created","issue":{"url":"https://api.github.com/repos/diml/lambda-term/issues/43","repository_url":"https://api.github.com/repos/diml/lambda-term","labels_url":"https://api.github.com/repos/diml/lambda-term/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/diml/lambda-term/issues/43/comments","events_url":"https://api.github.com/repos/diml/lambda-term/issues/43/events","html_url":"https://github.com/diml/lambda-term/issues/43","id":177577580,"number":43,"title":"doing \"opam pin lambda-term --dev-repo\" leads to opam complaining about an error in the opam file","user":{"login":"Reperator","id":10628294,"avatar_url":"https://avatars.githubusercontent.com/u/10628294?v=3","gravatar_id":"","url":"https://api.github.com/users/Reperator","html_url":"https://github.com/Reperator","followers_url":"https://api.github.com/users/Reperator/followers","following_url":"https://api.github.com/users/Reperator/following{/other_user}","gists_url":"https://api.github.com/users/Reperator/gists{/gist_id}","starred_url":"https://api.github.com/users/Reperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reperator/subscriptions","organizations_url":"https://api.github.com/users/Reperator/orgs","repos_url":"https://api.github.com/users/Reperator/repos","events_url":"https://api.github.com/users/Reperator/events{/privacy}","received_events_url":"https://api.github.com/users/Reperator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-17T13:51:41Z","updated_at":"2016-09-17T22:02:02Z","closed_at":"2016-09-17T19:07:51Z","body":"I did `opam pin lambda-term --dev-repo` to use the new features that came after 1.10.1 and now opam complains when updating:\r\n`[ERROR] File \"/Users/my-username/.opam/4.03.0+flambda/packages.dev/lambda-term/opam\", line 9, character 35-36: '-' is not a\r\n        valid token.`\r\n`[WARNING] Errors in opam file from lambda-term source, ignored (fix with 'opam pin edit')`\r\n\r\nI'm thinking this is due to `--disable-examples` not being in quotes but this is a complete guess since I don't know much about opam files and [this link](https://opam.ocaml.org/doc/Packaging.html) doesn't really explain what needs to be in quotes."},"comment":{"url":"https://api.github.com/repos/diml/lambda-term/issues/comments/247810770","html_url":"https://github.com/diml/lambda-term/issues/43#issuecomment-247810770","issue_url":"https://api.github.com/repos/diml/lambda-term/issues/43","id":247810770,"user":{"login":"Reperator","id":10628294,"avatar_url":"https://avatars.githubusercontent.com/u/10628294?v=3","gravatar_id":"","url":"https://api.github.com/users/Reperator","html_url":"https://github.com/Reperator","followers_url":"https://api.github.com/users/Reperator/followers","following_url":"https://api.github.com/users/Reperator/following{/other_user}","gists_url":"https://api.github.com/users/Reperator/gists{/gist_id}","starred_url":"https://api.github.com/users/Reperator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reperator/subscriptions","organizations_url":"https://api.github.com/users/Reperator/orgs","repos_url":"https://api.github.com/users/Reperator/repos","events_url":"https://api.github.com/users/Reperator/events{/privacy}","received_events_url":"https://api.github.com/users/Reperator/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T22:02:02Z","updated_at":"2016-09-17T22:02:02Z","body":"I'm not sure if the issue is ready to be closed just yet. Now opam fails building it with the following message:\r\n```\r\n$ opam pin add lambda-term --dev-repo\r\nlambda-term is now git-pinned to git://github.com/diml/lambda-term.git\r\n\r\n[lambda-term] git://github.com/diml/lambda-term.git updated\r\n[lambda-term] Installing new package description from git://github.com/diml/lambda-term.git\r\n\r\nlambda-term needs to be reinstalled.\r\nThe following actions will be performed:\r\n  ↻  recompile lambda-term 1.10.1*\r\n  ↻  recompile utop        1.19.3             [uses lambda-term]\r\n===== ↻  2 =====\r\nDo you want to continue ? [Y/n] y\r\n\r\n=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 \r\n[utop] Archive in cache\r\n[lambda-term] git://github.com/diml/lambda-term.git already up-to-date\r\n\r\n=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 \r\n⊘  removed   utop.1.19.3\r\n⊘  removed   lambda-term.1.10.1\r\n[ERROR] The compilation of lambda-term failed at \"./configure --prefix /Users/my-username/.opam/4.03.0+flambda\r\n        --disable-examples\".\r\nProcessing  3/4: [lambda-term: ocamlfind remove]\r\n#=== ERROR while installing lambda-term.1.10.1 ================================#\r\n# opam-version 1.2.2\r\n# os           darwin\r\n# command      ./configure --prefix /Users/my-username/.opam/4.03.0+flambda --disable-examples\r\n# path         /Users/fabian/.opam/4.03.0+flambda/build/lambda-term.1.10.1\r\n# compiler     4.03.0+flambda\r\n# exit-code    2\r\n# env-file     /Users/my-username/.opam/4.03.0+flambda/build/lambda-term.1.10.1/lambda-term-8118-865888.env\r\n# stdout-file  /Users/my-username/.opam/4.03.0+flambda/build/lambda-term.1.10.1/lambda-term-8118-865888.out\r\n# stderr-file  /Users/my-username/.opam/4.03.0+flambda/build/lambda-term.1.10.1/lambda-term-8118-865888.err\r\n### stdout ###\r\n# sed '/^#/D' setup.ml > setup_dev.ml\r\n# ocamlfind ocamlopt -o setup-dev.exe -linkpkg -package ocamlbuild,oasis.dynrun setup_dev.ml || \\\r\n# \t  ocamlfind ocamlc -o setup-dev.exe -linkpkg -package ocamlbuild,oasis.dynrun setup_dev.ml || true\r\n# rm -f setup_dev.*\r\n# ./setup-dev.exe -configure --prefix /Users/my-username/.opam/4.03.0+flambda --disable-examples\r\n### stderr ###\r\n# configure options:\r\n# [...]\r\n#   --sbindir dir        System admin executables [$exec_prefix/sbin]\r\n#   --bindir dir         User executables [$exec_prefix/bin]\r\n#   --exec-prefix dir    Install architecture-dependent files in dir [$prefix]\r\n#   --prefix dir         Install architecture-independent files dir [/usr/local]\r\n#   --print-hidden Print even non-printable variable. (debug)  [false]\r\n#   -help                Display this list of options\r\n#   --help               Display this list of options\r\n# \r\n# make: *** [configure] Error 1\r\n\r\n\r\n\r\n=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 \r\nThe following actions were aborted\r\n  ∗  install utop 1.19.3\r\nThe following actions failed\r\n  ∗  install lambda-term 1.10.1\r\nThe following changes have been performed\r\n  ⊘  remove lambda-term 1.10.1\r\n  ⊘  remove utop        1.19.3\r\n[NOTE] Pinning command successful, but your installed packages may be out of sync.\r\n\r\nThe former state can be restored with:\r\n    opam switch import \"~/.opam/4.03.0+flambda/backup/state-20160817214842.export\"\r\n```\r\nI checked wether opam actually has the fixed version:\r\n```\r\n$ cat /Users/my-username/.opam/4.03.0+flambda/build/lambda-term.1.10.1/opam\r\nopam-version: \"1.2\"\r\nmaintainer: \"jeremie@dimino.org\"\r\nauthors: [\"Jérémie Dimino\"]\r\nhomepage: \"https://github.com/diml/lambda-term\"\r\nbug-reports: \"https://github.com/diml/lambda-term/issues\"\r\ndev-repo: \"git://github.com/diml/lambda-term.git\"\r\nlicense: \"BSD3\"\r\nbuild: [\r\n  [\"./configure\" \"--prefix\" prefix \"--disable-examples\"]\r\n  [make]\r\n]\r\ninstall: [[make \"install\"]]\r\nremove: [[\"ocamlfind\" \"remove\" \"lambda-term\"]]\r\ndepends: [\r\n  \"ocamlfind\"\r\n  \"lwt\" {>= \"2.4.0\"}\r\n  \"zed\" {>= \"1.2\"}\r\n  \"react\" {>= \"1.0.0\"}\r\n  \"ocamlbuild\" {build}\r\n]\r\navailable: [ ocaml-version >= \"4.01\" ]\r\n```\r\nAnd looking into the stderr file yields this:\r\n```\r\n$ cat /Users/my-username/.opam/4.03.0+flambda/build/lambda-term.1.10.1/lambda-term-8118-865888.err\r\nnone: unknown option '--disable-examples'.\r\nconfigure options:\r\n  --override var+val   Override any configuration variable.\r\n  --enable-tests       Compile tests executable and library and run them [default: disabled]\r\n  --disable-tests      Compile tests executable and library and run them [default: disabled]\r\n  --enable-docs        Create documentations [default: enabled]\r\n  --disable-docs       Create documentations [default: enabled]\r\n  --enable-profile     Turn ocaml profile flag on [default: disabled]\r\n  --disable-profile    Turn ocaml profile flag on [default: disabled]\r\n  --enable-debug       Turn ocaml debug flag on [default: enabled]\r\n  --disable-debug      Turn ocaml debug flag on [default: enabled]\r\n  --destdir dir        Prepend a path when installing package\r\n  --psdir dir          PS documentation [$docdir]\r\n  --pdfdir dir         PDF documentation [$docdir]\r\n  --dvidir dir         DVI documentation [$docdir]\r\n  --htmldir dir        HTML documentation [$docdir]\r\n  --docdir dir         Documentation root [$datarootdir/doc/$pkg_name]\r\n  --mandir dir         Man documentation [$datarootdir/man]\r\n  --localedir dir      Locale-dependent data [$datarootdir/locale]\r\n  --infodir dir        Info documentation [$datarootdir/info]\r\n  --datadir dir        Read-only architecture-independent data [$datarootdir]\r\n  --datarootdir dir    Read-only arch-independent data root [$prefix/share]\r\n  --libdir dir         Object code libraries [$exec_prefix/lib]\r\n  --localstatedir dir  Modifiable single-machine data [$prefix/var]\r\n  --sharedstatedir dir Modifiable architecture-independent data [$prefix/com]\r\n  --sysconfdir dir     Read-only single-machine data [$prefix/etc]\r\n  --libexecdir dir     Program executables [$exec_prefix/libexec]\r\n  --sbindir dir        System admin executables [$exec_prefix/sbin]\r\n  --bindir dir         User executables [$exec_prefix/bin]\r\n  --exec-prefix dir    Install architecture-dependent files in dir [$prefix]\r\n  --prefix dir         Install architecture-independent files dir [/usr/local]\r\n  --print-hidden Print even non-printable variable. (debug)  [false]\r\n  -help                Display this list of options\r\n  --help               Display this list of options\r\n\r\nmake: *** [configure] Error 1\r\n```\r\nThis is odd since `--disable-examples` should just disable the `examples` flag but apparently oasis doesn't know the option. I'm not sure why that is the case since the definition in the `_oasis` file seems fine to me. I can't come up with any solution unfortunately; I understand too little of oasis and your custom setup for building lambda-term. (Why did you choose to compile the `setup.ml` script?)\r\nSide note: `setup.ml` says it's part of Zed in the comment."}}
{"actor":{"display_login":"Reperator"}}