[Bug 346577] Re: dpkg-source failed to rename file across filesystems
Bug Watch Updater
346577 at bugs.launchpad.net
Thu Aug 11 01:42:30 UTC 2011
** Changed in: dpkg (Debian)
Status: Unknown => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/346577
Title:
dpkg-source failed to rename file across filesystems
Status in “dpkg” package in Ubuntu:
New
Status in “dpkg” package in Debian:
Fix Released
Bug description:
Binary package hint: dpkg
dpkg-source uses rename() perl function which fails when target is
located on another file system. For example, prevu executes it as
`dpkg-source -x -sn file.dsc /var/dest/dir`. On my computer /var
resides on separated file system which leads to error if file.dsc not
under /var:
$ prevu libccrtp_1.7.1-2.dsc
I: Building against currently running distro: intrepid
gpg: Signature made Mon 23 Feb 2009 03:03:18 PM IST using DSA key ID 3D08B612
gpg: Can't check signature: public key not found
dpkg-source: extracting libccrtp in /var/cache/prevu/src/20157/extracted
dpkg-source: info: unpacking libccrtp_1.7.1.orig.tar.gz
dpkg-source: failure: Unable to rename /tmp/test/libccrtp_1.7.1.orig.tar.gz.tmp-extract.AXkZ7/ccrtp-1.7.1 to /var/cache/prevu/src/20157/extracted.orig: Invalid cross-device link
This particular failed rename() is in
/usr/share/perl5/Dpkg/Source/Archive.pm file, but you can grep through
pm modules to find out more. perlfunc(1) suggests to use File::Copy
module or mv utility instead of rename function to handle move across
different file systems.
I'm using dpkg 1.14.20ubuntu6 from Intrepid.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/346577/+subscriptions
More information about the foundations-bugs
mailing list