Re: Where does /usr/bin/rename come from ?

2007-06-14 Thread Bryan Donlan

On 6/14/07, Russ Allbery [EMAIL PROTECTED] wrote:

Charles Plessy [EMAIL PROTECTED] writes:

 I wanted to use /usr/bin/rename in a rules files, and wondered if it
 would be present in minimal installs and chroots. To my surprise,
 although this program is available on my computer running Etch from a
 fresh install, no Debian package contains rename anymore (it was
 provided by perl in Sarge).

rename is managed by the alternatives system (always the first thing to
check if dpkg -S claims that something isn't provided by a package).  The
only package that I can find that provides the alternative is perl.

 Can I use it safely for building a package since I can not build-depend
 on it and it does not seem to be contained in an essential package ?

You do need a build-depends since prename is provided by perl, not
perl-base.


Moreover, it would be wise to use the prename command name as well -
I've seen (on another distro - possibly gentoo) a rename with very
different functionality (rename searchliteral replacement file ...).


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Where does /usr/bin/rename come from ?

2007-06-14 Thread Charles Plessy
Le Fri, Jun 15, 2007 at 12:11:58AM -0400, Bryan Donlan a écrit :
 
 Moreover, it would be wise to use the prename command name as well -
 I've seen (on another distro - possibly gentoo) a rename with very
 different functionality (rename searchliteral replacement file ...).

That does entirely solve the problem :)

Have a nice day,

-- 
Charles Plessy
http://charles.plessy.org
Wako, Saitama, Japan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Where does /usr/bin/rename come from ?

2007-06-13 Thread Charles Plessy
Dear mentors,

I wanted to use /usr/bin/rename in a rules files, and wondered if it
would be present in minimal installs and chroots. To my surprise,
although this program is available on my computer running Etch from a
fresh install, no Debian package contains rename anymore (it was provided
by perl in Sarge).

Can I use it safely for building a package since I can not build-depend
on it and it does not seem to be contained in an essential package ?

Have a nice day,

-- 
Charles Plessy
http://charles.plessy.org
Wako, Saitama, Japan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Where does /usr/bin/rename come from ?

2007-06-13 Thread Justin Pryzby
On Thu, Jun 14, 2007 at 01:35:50PM +0900, Charles Plessy wrote:
 Dear mentors,
 
 I wanted to use /usr/bin/rename in a rules files, and wondered if it
 would be present in minimal installs and chroots. To my surprise,
 although this program is available on my computer running Etch from a
 fresh install, no Debian package contains rename anymore (it was provided
 by perl in Sarge).
 
 Can I use it safely for building a package since I can not build-depend
 on it and it does not seem to be contained in an essential package ?
I think this says it all?

$ dpkg -S $(readlink -f `which rename`)
perl: /usr/bin/prename


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Where does /usr/bin/rename come from ?

2007-06-13 Thread Russ Allbery
Charles Plessy [EMAIL PROTECTED] writes:

 I wanted to use /usr/bin/rename in a rules files, and wondered if it
 would be present in minimal installs and chroots. To my surprise,
 although this program is available on my computer running Etch from a
 fresh install, no Debian package contains rename anymore (it was
 provided by perl in Sarge).

rename is managed by the alternatives system (always the first thing to
check if dpkg -S claims that something isn't provided by a package).  The
only package that I can find that provides the alternative is perl.

 Can I use it safely for building a package since I can not build-depend
 on it and it does not seem to be contained in an essential package ?

You do need a build-depends since prename is provided by perl, not
perl-base.

-- 
Russ Allbery ([EMAIL PROTECTED])   http://www.eyrie.org/~eagle/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]