[Pkg-roundcube-maintainers] Bug#656886: roundcube: problems with symlinks in /var/lib/roundcube/plugins/

Vincent Bernat bernat at debian.org
Mon Feb 6 07:49:30 UTC 2012


OoO  Pendant le repas  du dimanche  05 février  2012, vers  19:50, "Marc
Dequènes (Duck)" <duck at duckcorp.org> disait :

>> The output of ls -l is misleading for this file:
>> lrwxrwxrwx 1 root root 49 janv. 22 12:37
>> /var/lib/roundcube/plugins/jqueryui/js/jquery-ui.min.js ->
>> ../../../../javascript/jquery-ui/jquery-ui.min.js

> Why misleading?

Because    it    would    appear     that    it    tries    to    access
/var/lib/javascript/jquery-ui/jquery-ui.min.js  (which  does not  exist)
while in fact there is an intermediate symlink:
 lrwxrwxrwx 1 root root 37 déc.  26 21:50 /var/lib/roundcube/plugins/jqueryui -> /usr/share/roundcube/plugins/jqueryui

Therefore, the above symlink works.

>> I have:
>> Alias /roundcube /var/lib/roundcube

> I'm using a dedicated vhost, but was using /usr/share/roundcube.

> It seems i missed the change in the changelog in 0.5.1-1 « Rework how
> symlinks work. ». Nevertheless, after changing the directory, it does
> not work better.

The  correct  directory  has   always  been  /var/lib/roundcube  but  we
previously arranged  so that /usr/share/roundcube would work  too but it
was getting quite complicated. I  am unsure when we removed the symlinks
From /usr/share/roundcube  to /var/lib/roundcube.  I would say  this was
for 0.3.

> I had another look at the problem. When building your package i get
> (using debc):
> lrwxrwxrwx root/root         0 2012-02-05 19:06
> ./var/lib/roundcube/plugins/jqueryui ->
> /usr/share/roundcube/plugins/jqueryui
> In my system, it is not a symlink, but a directory. I may have done a
> mistake earlier, so i moved /var/lib/roundcube/plugins/jqueryui away,
> before upgrading to 0.7.1-1. This file is then recreated as a
> directory!

> Looking a bit further, i can see /usr/share/roundcube/plugins should
> be a directory, but in my system is a symlink to
> /var/lib/roundcube/plugins.

> It really seems the migration to the new symlink layout did not work
> correctly on my system :-(.

That's quite surprising because it is the job of dpkg to work with those
symlinks. I will  try to find which version had symlinks  in the old way
and test an upgrade.
-- 
Vincent Bernat ☯ http://vincent.bernat.im

Test input for validity and plausibility.
            - The Elements of Programming Style (Kernighan & Plauger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-roundcube-maintainers/attachments/20120206/2dbd0a13/attachment.pgp>


More information about the Pkg-roundcube-maintainers mailing list