retitle 639229 dpkg: Make readlink assert output more useful
thanks

On Thu, 2011-08-25 at 13:54:18 +0200, Matthias Cramer wrote:
> I made a strace on dpkg -i and at the end I see the following
> 
> readlink("/usr/lib/libreoffice/basis3.3/program/classes/sdbc_hsqldb.jar", 
> "\302\f\20"...,
> 148) = 3
> write(2, "dpkg: ../../src/archives.c:824: "..., 81dpkg:
> ../../src/archives.c:824: tarobject: Assertion `r == stab.st_size' failed.

> an ls to that:
> 
> # ls -la /usr/lib/libreoffice/basis3.3/program/classes/sdbc_hsqldb.jar
> lrwxrwxrwx 1 root root 73 Aug 16 09:04
> /usr/lib/libreoffice/basis3.3/program/classes/sdbc_hsqldb.jar -> ???

Ah, so a size discrepancy of 3 vs 73.

> and a file command to that:
> 
> # file /usr/lib/libreoffice/basis3.3/program/classes/sdbc_hsqldb.jar
> /usr/lib/libreoffice/basis3.3/program/classes/sdbc_hsqldb.jar: broken
> symbolic link to `\302\020
> 
> seams that here is something broken on the file system ...

Right.

> removing that symlink solves my problem ...
> 
> probably it would be nice, if dpkg would tell which file/symlink is
> broken...

Indeed, and as I mentioned I've prepared a fix for that, will be
included in my next push. Given that the bug report was of local
nature, I've gone ahead and retitled it to improve the error message
instead.

thanks,
guillem



-- 
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