{"action":"created","issue":{"url":"https://api.github.com/repos/bcpierce00/unison/issues/9","repository_url":"https://api.github.com/repos/bcpierce00/unison","labels_url":"https://api.github.com/repos/bcpierce00/unison/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/bcpierce00/unison/issues/9/comments","events_url":"https://api.github.com/repos/bcpierce00/unison/issues/9/events","html_url":"https://github.com/bcpierce00/unison/issues/9","id":148002262,"number":9,"title":"Unison fails to find proper lablgtk path under an OPAM environment","user":{"login":"ejgallego","id":7192257,"avatar_url":"https://avatars.githubusercontent.com/u/7192257?v=3","gravatar_id":"","url":"https://api.github.com/users/ejgallego","html_url":"https://github.com/ejgallego","followers_url":"https://api.github.com/users/ejgallego/followers","following_url":"https://api.github.com/users/ejgallego/following{/other_user}","gists_url":"https://api.github.com/users/ejgallego/gists{/gist_id}","starred_url":"https://api.github.com/users/ejgallego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejgallego/subscriptions","organizations_url":"https://api.github.com/users/ejgallego/orgs","repos_url":"https://api.github.com/users/ejgallego/repos","events_url":"https://api.github.com/users/ejgallego/events{/privacy}","received_events_url":"https://api.github.com/users/ejgallego/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-13T09:32:04Z","updated_at":"2016-04-13T13:09:15Z","closed_at":null,"body":"Under an OPAM system, Unison fails to find the proper lablgtk2 path, as this recipe:\r\n\r\n```\r\nOCAMLLIBDIR=$(shell ocamlc -v | tail -1 | sed -e 's/.* //g' | tr '\\\\' '/' | tr -d '\\r')\r\n```\r\ndoesn't quite work under OPAM as it uses a different library layout.\r\n\r\nMy preferred solution to locate Ocaml dependencies using `ocamlfind`, however that would add a new dependency to Unison's build.\r\n\r\nIf you'd be willing to accept that new dependency I'd be happy to provide a patch, another solution would be to detect if `ocamlfind` is installed and use it, however, my Make-foo is not so good to implement that reliable."},"comment":{"url":"https://api.github.com/repos/bcpierce00/unison/issues/comments/209431514","html_url":"https://github.com/bcpierce00/unison/issues/9#issuecomment-209431514","issue_url":"https://api.github.com/repos/bcpierce00/unison/issues/9","id":209431514,"user":{"login":"ejgallego","id":7192257,"avatar_url":"https://avatars.githubusercontent.com/u/7192257?v=3","gravatar_id":"","url":"https://api.github.com/users/ejgallego","html_url":"https://github.com/ejgallego","followers_url":"https://api.github.com/users/ejgallego/followers","following_url":"https://api.github.com/users/ejgallego/following{/other_user}","gists_url":"https://api.github.com/users/ejgallego/gists{/gist_id}","starred_url":"https://api.github.com/users/ejgallego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejgallego/subscriptions","organizations_url":"https://api.github.com/users/ejgallego/orgs","repos_url":"https://api.github.com/users/ejgallego/repos","events_url":"https://api.github.com/users/ejgallego/events{/privacy}","received_events_url":"https://api.github.com/users/ejgallego/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T13:09:15Z","updated_at":"2016-04-13T13:09:15Z","body":"Ok, #10 allows to build unison in Linux using OPAM/Ocambuild. Unfortunately I can't test the patch on OSX or Windows."}}