[pkg-firebird-general] Bug#692948: preinst which fixes the issue

Damyan Ivanov dmn at debian.org
Sun Mar 10 18:45:28 UTC 2013


-=| Sebastian Ramacher, 10.03.2013 17:42:49 +0100 |=-
> > Thanks. I have pushed a fix[1] in Git, but haven't tagged the 
> > bugreport accordingly. Sorry about that.
> > 
> >  [1] http://anonscm.debian.org/gitweb/?p=pkg-firebird/2.5.git;a=commitdiff;h=4b23b85
> 
> I checked if the version in the git repo fixes the issue, but sadly it
> doesn't for the Multi-Arch: same packages. migrateDocSymlink computes
> the wrong /usr/share/doc location for these packages. For libfbclient2
> PKG is libfbclient2:<arch>, so the postinst script checks
> /usr/share/doc/libfbclient2:<arch> instead of /usr/share/doc/libfbclient2.
> Please see the attached output produced with DEBIAN_FIREBIRD_DEBUG set.
>> + migrateDocSymlink
> + basename /var/lib/dpkg/info/libfbclient2:amd64.postinst
> + local PKG=libfbclient2:amd64.postinst
> + PKG=libfbclient2:amd64
> + local TARGET=firebird2.5-common-doc
> + local D=/usr/share/doc/libfbclient2:amd64
> + [ ! -L /usr/share/doc/libfbclient2:amd64 -a -d /usr/share/doc/libfbclient2:amd64 ]

Excellent catch!

This seems to be a defect in the code which determines the package 
name from the output of 'basename'. Perhaps it wouldn't be too hard to 
strip optional :arch from the end, for example via some sed script.

Unfortunately I am not sure about when I'd be able to try to fix this, 
so if you feel like it, please go ahead. Thanks!


-- dam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-firebird-general/attachments/20130310/1ae0da9f/attachment.pgp>


More information about the pkg-firebird-general mailing list