{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/459","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/459/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/459/events","html_url":"https://github.com/haskell/cabal/issues/459","id":4726406,"number":459,"title":"datadir does not follow prefix on windows (for libs)","user":{"login":"bos","id":23374,"avatar_url":"https://avatars2.githubusercontent.com/u/23374?v=4","gravatar_id":"","url":"https://api.github.com/users/bos","html_url":"https://github.com/bos","followers_url":"https://api.github.com/users/bos/followers","following_url":"https://api.github.com/users/bos/following{/other_user}","gists_url":"https://api.github.com/users/bos/gists{/gist_id}","starred_url":"https://api.github.com/users/bos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bos/subscriptions","organizations_url":"https://api.github.com/users/bos/orgs","repos_url":"https://api.github.com/users/bos/repos","events_url":"https://api.github.com/users/bos/events{/privacy}","received_events_url":"https://api.github.com/users/bos/received_events","type":"User","site_admin":false},"labels":[{"id":5625691,"url":"https://api.github.com/repos/haskell/cabal/labels/Cabal:%20other","name":"Cabal: other","color":"fbca04","default":false},{"id":5625689,"url":"https://api.github.com/repos/haskell/cabal/labels/platform:%20windows","name":"platform: windows","color":"f9d0c4","default":false},{"id":1389138,"url":"https://api.github.com/repos/haskell/cabal/labels/type:%20bug","name":"type: bug","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/5","html_url":"https://github.com/haskell/cabal/milestone/5","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/5/labels","id":123212,"number":5,"title":"⊥","description":"These features will not happen unless someone steps up and implements them.","creator":{"login":"bos","id":23374,"avatar_url":"https://avatars2.githubusercontent.com/u/23374?v=4","gravatar_id":"","url":"https://api.github.com/users/bos","html_url":"https://github.com/bos","followers_url":"https://api.github.com/users/bos/followers","following_url":"https://api.github.com/users/bos/following{/other_user}","gists_url":"https://api.github.com/users/bos/gists{/gist_id}","starred_url":"https://api.github.com/users/bos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bos/subscriptions","organizations_url":"https://api.github.com/users/bos/orgs","repos_url":"https://api.github.com/users/bos/repos","events_url":"https://api.github.com/users/bos/events{/privacy}","received_events_url":"https://api.github.com/users/bos/received_events","type":"User","site_admin":false},"open_issues":185,"closed_issues":140,"state":"open","created_at":"2012-05-24T04:38:13Z","updated_at":"2018-02-07T05:11:40Z","due_on":"2038-12-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2012-05-24T05:24:41Z","updated_at":"2018-02-07T05:11:40Z","closed_at":"2018-02-07T05:11:40Z","author_association":"CONTRIBUTOR","body":"(Imported from [Trac #466](http://hackage.haskell.org/trac/hackage/ticket/466), reported by @dcoutts on 2009-01-19)\n\nOn Windows the <tt>--datadir</tt> is set independently of the <tt>--prefix</tt> (at least for libraries). This is actually quite annoying because it's not discoverable and when you do discover it you've got to set the datadir along with the prefix on the command line or in the config file.\n\nThe problem is to do with relocatable packages and data files.\n\nSuppose you have a library that has data files. For a hypothetical example how about some Unicode library that uses data files of character traits. Now we want to use that library in a program and we want to have that program be relocatable. That means that at runtime the library needs to be able to locate its data files. But the place where the library was installed is completely independent of where the .exe is being run from.\n\nOne way to make this appear to work is for the library data directory to not really be relocatable, then it looks like we can relocate the .exe and have it still work. Of course the .exe is not very re-locatable, in particular it cannot be relocated to another machine. This is often the use case for relocatable packages on Windows.\n\nPerhaps another solution would be to place the burden of finding the data files on the executable, or at least on the process of preparing the relocatable executable. If we made the process of generating a relocatable package more explicit we could include in that process checking for dependent library packages that use data files. We could then inform the packager and/or copy/link the necessary data files into a place where the library code will be able to find them relative to the executable. See #469.\n"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/363659327","html_url":"https://github.com/haskell/cabal/issues/459#issuecomment-363659327","issue_url":"https://api.github.com/repos/haskell/cabal/issues/459","id":363659327,"user":{"login":"gbaz","id":1125849,"avatar_url":"https://avatars3.githubusercontent.com/u/1125849?v=4","gravatar_id":"","url":"https://api.github.com/users/gbaz","html_url":"https://github.com/gbaz","followers_url":"https://api.github.com/users/gbaz/followers","following_url":"https://api.github.com/users/gbaz/following{/other_user}","gists_url":"https://api.github.com/users/gbaz/gists{/gist_id}","starred_url":"https://api.github.com/users/gbaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbaz/subscriptions","organizations_url":"https://api.github.com/users/gbaz/orgs","repos_url":"https://api.github.com/users/gbaz/repos","events_url":"https://api.github.com/users/gbaz/events{/privacy}","received_events_url":"https://api.github.com/users/gbaz/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T05:11:40Z","updated_at":"2018-02-07T05:11:40Z","author_association":"COLLABORATOR","body":"Whatever remains of this ticket should be closed in favor of #3305 imho."}}
{"actor":{"display_login":"gbaz"}}