On Tue, Jun 09, 2015 at 02:09:35AM +0200, Guillem Jover wrote:
> Control: tags -1 unreproducible moreinfo
> 
> On Mon, 2015-06-08 at 14:00:28 -0500, Adam Majer wrote:
> > Package: dpkg-dev
> > Version: 1.18.1
> > Severity: normal
> 
> > When unpacking in /tmp, which is a tmpfs,
> > 
> > $ dpkg-source -x ipsec-tools_0.8.2+20140711-3.dsc
> > dpkg-source: info: extracting ipsec-tools in ipsec-tools-0.8.2+20140711
> > dpkg-source: info: unpacking ipsec-tools_0.8.2+20140711.orig.tar.gz
> > dpkg-source: error: unable to rename
> > /tmp/ipsec-tools_0.8.2+20140711.orig.tar.gz.tmp-extract.30RfU/ipsec-tools-0.8.2
> >  to ipsec-tools-0.8.2+20140711: Invalid cross-device link
> 
> I tried this on a system with Linux 4.0.0, with a tmpfs /tmp (with
> mount options: rw,nosuid,nodev,relatime), and I cannot reproduce it.
> So I'd appreciate more details.
> 
> Can you also reproduce it with dpkg-dev 1.17.25? Just to discard if
> this is perhaps a regression, but I doubt it.
> 
> Hmm, is this with some kind of per user tmpfs /tmp, and if yes, does
> it work if you switch to a normal global tmpfs /tmp?

This is not a regression. I upgraded from another version that I had
earlier to make sure it wasn't happening before.

2015-06-08 12:55:47 upgrade dpkg-dev:all 1.17.23 1.18.1

Furthermore, this wasn't a problem in the past so something must have
changed recently (TM) and I'm not sure what.

/tmp is mounted globally

adamm@mira:/tmp$ touch a
adamm@mira:/tmp$ ln a b
adamm@mira:/tmp$ ls -ltr a b
-rw-r--r-- 2 adamm adamm 0 Jun  8 22:57 b
-rw-r--r-- 2 adamm adamm 0 Jun  8 22:57 a


adamm@mira:~$ mount | grep tmpfs | grep /tmp
tmpfs on /tmp type tmpfs (rw)
tmpfs on /srv/wine32/tmp type tmpfs (rw)
tmpfs on /srv/wine32/tmp type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw)

The extra tmpfs is because I bind mount it into a 32-bit chroot.

/tmp is mounted via /etc/default/rcS

   # mount /tmp as a tmpfs
   RAMTMP=yes

Workaround is to create a subdirectory in /tmp to unpack the sources
into.


-- 
Adam Majer
ad...@zombino.com


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to