{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/4049","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/4049/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/4049/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/4049/events","html_url":"https://github.com/haskell/cabal/issues/4049","id":185929987,"number":4049,"title":"Add foreign-library to LD_LIBRARY_PATH during cabal exec","user":{"login":"abooij","id":164426,"avatar_url":"https://avatars.githubusercontent.com/u/164426?v=3","gravatar_id":"","url":"https://api.github.com/users/abooij","html_url":"https://github.com/abooij","followers_url":"https://api.github.com/users/abooij/followers","following_url":"https://api.github.com/users/abooij/following{/other_user}","gists_url":"https://api.github.com/users/abooij/gists{/gist_id}","starred_url":"https://api.github.com/users/abooij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abooij/subscriptions","organizations_url":"https://api.github.com/users/abooij/orgs","repos_url":"https://api.github.com/users/abooij/repos","events_url":"https://api.github.com/users/abooij/events{/privacy}","received_events_url":"https://api.github.com/users/abooij/received_events","type":"User","site_admin":false},"labels":[{"id":470940452,"url":"https://api.github.com/repos/haskell/cabal/labels/cabal-install:%20cmd/exec","name":"cabal-install: cmd/exec","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/40","html_url":"https://github.com/haskell/cabal/milestones/Triaged","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/40/labels","id":1985830,"number":40,"title":"Triaged","description":"It's a real bug, but it's not important enough to block the next release. Needs someone to agree to fix.","creator":{"login":"ezyang","id":13564,"avatar_url":"https://avatars.githubusercontent.com/u/13564?v=3","gravatar_id":"","url":"https://api.github.com/users/ezyang","html_url":"https://github.com/ezyang","followers_url":"https://api.github.com/users/ezyang/followers","following_url":"https://api.github.com/users/ezyang/following{/other_user}","gists_url":"https://api.github.com/users/ezyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ezyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezyang/subscriptions","organizations_url":"https://api.github.com/users/ezyang/orgs","repos_url":"https://api.github.com/users/ezyang/repos","events_url":"https://api.github.com/users/ezyang/events{/privacy}","received_events_url":"https://api.github.com/users/ezyang/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":3,"state":"open","created_at":"2016-09-06T10:20:38Z","updated_at":"2016-10-28T20:31:55Z","due_on":"2038-12-29T00:00:00Z","closed_at":null},"comments":2,"created_at":"2016-10-28T13:58:57Z","updated_at":"2016-10-28T22:46:51Z","closed_at":null,"body":"Thanks for the work on the new `foreign-library` section. I have started using it for one of my projects, and it seems to work!\r\n\r\nMy use case is to reimplement a C library's ABI, and run existing binaries written in C against the Haskell version. At development time, this means building my haskell code as a foreign library, adding the relevant directory to `LD_LIBRARY_PATH`, and then running the existing binaries.\r\n\r\nIt would be convenient if cabal could add the haskell foreign library to `LD_LIBRARY_PATH`. I suppose the `cabal exec` command could be the right place to do this. So instead of\r\n```\r\n$ cabal build\r\n$ LD_LIBRARY_PATH=dist/build/myproject/ /usr/bin/existing-binary\r\n```\r\none would instead simply:\r\n```\r\n$ cabal exec /usr/bin/existing-binary\r\n```"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/257046620","html_url":"https://github.com/haskell/cabal/issues/4049#issuecomment-257046620","issue_url":"https://api.github.com/repos/haskell/cabal/issues/4049","id":257046620,"user":{"login":"abooij","id":164426,"avatar_url":"https://avatars.githubusercontent.com/u/164426?v=3","gravatar_id":"","url":"https://api.github.com/users/abooij","html_url":"https://github.com/abooij","followers_url":"https://api.github.com/users/abooij/followers","following_url":"https://api.github.com/users/abooij/following{/other_user}","gists_url":"https://api.github.com/users/abooij/gists{/gist_id}","starred_url":"https://api.github.com/users/abooij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abooij/subscriptions","organizations_url":"https://api.github.com/users/abooij/orgs","repos_url":"https://api.github.com/users/abooij/repos","events_url":"https://api.github.com/users/abooij/events{/privacy}","received_events_url":"https://api.github.com/users/abooij/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T22:46:51Z","updated_at":"2016-10-28T22:46:51Z","body":"@ezyang That does make sense. And you are able to make more precise what I was somewhat worried about when I proposed this -- thanks for that.\r\n\r\nWe discussed this a bit on IRC and I can try to work on this."}}
{"actor":{"display_login":"abooij"}}