[Pkg-pascal-devel] Lazarus help style file
Paul Gevers
elbrus at debian.org
Thu Nov 5 12:14:56 UTC 2015
Hi Abou,
On 02-11-15 17:46, Abou Al Montacir wrote:
>> Let's try to do it one time right. I don't really like these in between
>> steps when they are not serving a real purpose. I propose we move the
>> other doc files right now as well. It is really trivial (with the right
>> lazarus-ide-<version>.intstall and lazarus-ide-<version>.links files).
> I've tried what you proposed but have an issue with update. It wil not
> remove the directory and replace it with link but rather end with an
> empty directory. If you remove and reinstall it works.
>
> Can you please help on that?
Two solutions:
1) wait with fixing this until we move to 1.4.4 (e.g. move now, I will
see what I can do today)
2) add the following block to lazarus-ide.postinst
# In 1.4.0+dfsg-6 we moved the documentation files in
# /usr/lib/lazarus/<version>/docs to
/usr/share/doc/lazarus/<version>/docs and
# added a symlink from the former to the latter. However conform Policy¹
# old directories are never replaced by symlinks by dpkg, so we need to
do it
# manually. This code can be removed when we have a new upstream version.
#
¹https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase
DOCDIR=/usr/lib/lazarus/1.4.0/docs
if [ -d $DOCDIR -a ! -h $DOCDIR ] ; then
rmdir $DOCDIR
ln -s /usr/share/doc/lazarus/1.4.0/docs $DOCDIR
fi
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-pascal-devel/attachments/20151105/a27f1927/attachment.sig>
More information about the Pkg-pascal-devel
mailing list