develooper Front page | perl.perl5.porters | Postings from February 2012

Re: Reaction to Redhat/Fedora modified releases

Thread Previous | Thread Next
Dominic Hargreaves
February 3, 2012 11:51
Re: Reaction to Redhat/Fedora modified releases
Message ID:
On Fri, Feb 03, 2012 at 07:19:09PM +0000, Nicholas Clark wrote:
> On Fri, Feb 03, 2012 at 07:46:49PM +0100, Steffen Mueller wrote:
> > On 02/02/2012 11:25 AM, Jerome Quelin wrote:
> > > On 12/02/02 04:02 -0500, David Golden wrote:
> > >> On Thu, Feb 2, 2012 at 2:47 AM, Todd Rinaldo<>  wrote:
> > >>> 1. Exclude anything dual life in my perl-core package that will
> > >>> conflict with a CPAN version. This is mostly bin scripts.
> > >>
> > >> Could you elaborate on why .pm files aren't an issue?  (Are your RPMs
> > >> shadowing the core-installed ones?)
> > >
> > > because perl already splits @INC to core / vendor / site, in different
> > > directories (and that's awesome). there's unfortunately only one bin
> > > directory. :-)
> > 
> > That depends. With the's perl builds, there is a site/bin. 
> > Good solution for us, likely rather bad solution for a linux distro.
> One could solve this by having the "script" installed in /usr/bin be an
> extremely thin dispatcher wrapper, which looks in a "site/bin", "vendor/bin"
> and then "core/bin" for the real thing that it wants to exec.
> One could also use this for something like /usr/bin/perldoc, as a wrapper to
> call it if found in "core/bin", and otherwise print the OS "localised" help
> text for "You need to install the [_1] package to use this program."

For Debian, we solve the dual-lived script program in the general case
by using the packaging system's diversion facility, which lets one
package move a file from another package out of the way.

For perldoc in particular, we do exactly what you've described above;
the 'perl' package installs a perldoc stub which invites the user to
install the 'perl-doc' package for a full implementation (which then
uses the diversion system to replace the stub).

By the way, I am aware that we (Debian perl maintainers) should respond
to some other parts of this thread; unfortunately we haven't yet found
the time to do so.


Dominic Hargreaves |
PGP key 5178E2A5 from (keyserver,web,email)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About