Re: How to install some script files to sbin?

[email protected] (Eric Wilhelm)
Newsgroups perl.module.build
Message-ID <[email protected]>
# from [email protected]
# on Thursday 22 October 2009 10:17:

>     sbin_files => { 'myapp_admin' => 'sbin/myapp_admin' },
>but it (M::B 0.35) just doesn't install myapp_admin, it doesn't
> mention it, just skips.

No, there isn't an sbin_files property defined, so that parameter is 
ignored.

>So what am I missing here to make it respect sbin?

The trick here is that there's no cross-platform notion of 'sbin', and 
nobody seems keen to invent one either.  I'm thinking that we've seen 
this before and there are probably a few ad-hoc add_build_element() 
overrides on the CPAN that are doing something for sbin, but nothing 
has ever been formalized for Module::Build to support it (and I don't 
see anything in RT about it either.)

Offhand, you're talking about adding process_sbin_files, having 
something in install_sets, and adding 'sbin' to build_elements.  Maybe 
a simple matter of treating it as a 'script' element on any non-unix 
system.  Want to write a patch for that?

--Eric
-- 
"Left to themselves, things tend to go from bad to worse."
--Murphy's Corollary
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.