On Fri, 28 Nov 2008, Raphael Geissert wrote:
> Package: dpkg-dev
> Version: 1.14.22
>
> $ cd /var/tmp
> $ apt-get source -d xsoldier
> [...]
> Download complete and in download only mode
> $ dpkg-source -x xsoldier_1.4-1.1.dsc /tmp/xsoldier
> dpkg-source: extracting xsoldier in /tmp/xsoldier
> dpkg-source: info: unpacking xsoldier_1.4.orig.tar.gz
> dpkg-source: failure: Unable to rename
> /var/tmp/xsoldier_1.4.orig.tar.gz.tmp-extract.yPGU6/xsoldier-1.4
> to /tmp/xsoldier.orig: Invalid cross-device link
>
> $ strace dpkg-source -x xsoldier_1.4-1.1.dsc /tmp/xsoldier 2>&1 | grep
> rename\(
> read(3, "\") if $?;\n }\n\n\trename($exp"..., 4096) = 4096
> rename("/var/tmp/xsoldier_1.4.orig.tar.gz.tmp-extract.Pp5Wz/xsoldier-1.4",
> "/tmp/xsoldier.orig")
> = -1 EXDEV (Invalid cross-device link)
>
> Dpkg::Source should be smarter and extract directly on the output-dir if CWD
> is not on the same mounted filesystem or use/do something to workaround
> rename(2)'s inability to do its job, instead of failing miserably.
Do you know that if we fix 507217, this one will be automatically be fixed?
Hence this second bug report is kind of useless. The right thing to do is of
course to _always_ extract in parent dir of target dir (in that case /tmp).
This fixes both bugs.
Cheers,
--
Raphaël Hertzog
Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]