little problem here

Neven Has haski at sezampro.yu
Fri Jan 19 08:02:11 PST 2001


On Fri, Jan 19, 2001 at 09:18:59AM -0500, Gerard Beekmans wrote:
> error(move): Unable to move qt-2.2 to /usr/kde/qt: Invalid cross-device link
> Element is in : preconfigure
> Path          : /alfs/package/preconfigure/move
> Full element  :
> <move dir="/home/gerard" source="qt-2.2">/usr/kde/qt</move>

<snip>

> I'm suspecting a perl version problem. That box runs:
> perl --version
>  
> This is perl, version 5.005_03 built for i386-linux                           

No, I successfully reproduced it in both 5.005_03 and 5.6.0.

It happens when your source and destination files are on a different partitions
(/home and /usr in your case).

It seems it's a feature (pretty stupid one IMHO) and I came across the same
problem in one of the Debian programs (dpkg) which they solved by using simple
"mv" if it comes to this. They added a subroutine:

 +sub rename_mv {
 +       return (rename($_[0], $_[1]) || (system(("mv", $_[0], $_[1])) == 0));
 +}

so I'll probably do the same (but for move() of course) for now.

I'll cvs ci latter today along with some other changes (Twig problem, smaller
changes for "use strict" and <textdump> whitespace problem).

Neven







More information about the alfs-discuss mailing list