Re: [Factor-talk] Factor packaging for Ubuntu

2013-08-28 Thread Gabriel Kerneis
On Wed, Aug 28, 2013 at 05:55:17PM +0200, Björn Lindqvist wrote:
> Interesting! I thought putting binaries outside of bin directories were 
> heavily discouraged. Which is why I choose to rename it. Do you have an 
> example of a package that follows the approach you are suggesting? Then 
> I could just copy that.

At least GNU has a "standard" directory for such binaries: libexecdir.

   libexecdir

   The directory for installing executable programs to be run by other
   programs rather than by users. This directory should normally be
   /usr/local/libexec, but write it as $(exec_prefix)/libexec. (If you
   are using Autoconf, write it as ‘@libexecdir@’.)

   The definition of ‘libexecdir’ is the same for all packages, so you
   should install your data in a subdirectory thereof.  Most packages
   install their data under $(libexecdir)/package-name/, possibly within
   additional subdirectories thereof, such as
   $(libexecdir)/package-name/machine/version

   http://www.gnu.org/prep/standards/html_node/Directory-Variables.html

Also see the following thread about libexecdir and helper scripts in
Debian:

   http://lists.debian.org/debian-mentors/2003/05/msg00195.html

-- 
Gabriel

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Factor packaging for Ubuntu

2013-08-28 Thread Björn Lindqvist
Rupert Swarbrick skrev 2013-08-27 11:20:
> Björn Lindqvist 
> writes:
>> 2013/8/26 Alex Vondrak :
>>> On Mon, Aug 26, 2013 at 12:45 AM, Björn Lindqvist 
>>>  wrote:
 The binary name "factor" was already taken by a program in coreutils
 so I had to change it to "factor-run".
>>>
>>> How about something like "factor-lang" or "factor-listener"?
>>
>> I actually called the binary factor-lang. But then I needed a
>> factor-run bash script too because Factor isn't happy with having the
>> standard library in a different directory from the binary file.
>
> The obvious thing to do, which I think is the standard approach for
> packaging such programs, is the following. Just install Factor, with the
> binary called "factor", into some directory in /usr/share. For example,
> /usr/share/factor would be fine. Then create a symlink or a shell script
> in /usr/bin pointing to /usr/share/factor, which is called factor-lang
> or whatever.

Interesting! I thought putting binaries outside of bin directories were 
heavily discouraged. Which is why I choose to rename it. Do you have an 
example of a package that follows the approach you are suggesting? Then 
I could just copy that.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk