You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cabal already supports a libexec directory, there is just no easy way to get an executable copied there. So I had to write my own custom hooks.
To simplify things, I would like to suggest the option of marking an executable to be installed in the libexec directory. I propose a simple flag 'Is-Helper-Executable: True/False' which could be specified as part of an 'Executable' section. Setting this to True should result in Cabal installing the executable to the libexec directory.
Quick example of why one wants to use the libexec directory in the first place: Bluetile has a number of such helper applications. While having Bluetile packaged for Debian, it turned out that Debian requires a man page for every binary under /usr/bin. So I would have had to write man pages for every helper application or - which seemed like the proper way to do it - have them installed under /usr/lib/bluetile/ (libexec directory).
Yes, we should do this (but with a different field name). It will also need support in the generated Cabal_paths module to find the location of private helper programs.
Activity
bos commentedon May 24, 2012
(Imported comment by @dcoutts on 2010-07-23)
Yes, we should do this (but with a different field name). It will also need support in the generated Cabal_paths module to find the location of private helper programs.
gbaz commentedon Mar 21, 2016
Removing the bottom milestone, as this seems to actually continue to come up for users: c.f. http://stackoverflow.com/q/35746328/371753