[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg, symlinks, directories



 ❦ 29 septembre 2012 11:59 CEST, Vincent Bernat <bernat@debian.org> :

> In roundcube package, I am turning existing directories to symlinks and
> symlinks into directories. It seems that dpkg does not like that:
> symlinks are not replaced with the appropriate directories. I didn't
> find anything about this in the documentation. How should I handle such
> cases?

As an illustration, look at roundcube-core 0.3.1-6 (squeeze):

#v+
# dpkg -c roundcube-core_0.3.1-6_all.deb  | grep plugins
drwxr-xr-x root/root         0 2010-10-18 21:18 ./var/lib/roundcube/plugins/
drwxr-xr-x root/root         0 2009-10-31 13:20 ./var/lib/roundcube/plugins/filesystem_attachments/
-rw-r--r-- root/root      5140 2009-10-03 19:12 ./var/lib/roundcube/plugins/filesystem_attachments/filesystem_attachments.php
lrwxrwxrwx root/root         0 2010-10-18 21:18 ./usr/share/roundcube/plugins -> /var/lib/roundcube/plugins
#v-

And for roundcube-core 0.7.1-1~bpo60+1 (squeeze-backports):

#v+
# dpkg -c roundcube-core_0.7.1-1~bpo60+1_all.deb  | grep plugins | remove-some-output-by-hand
drwxr-xr-x root/root         0 2012-04-28 07:39 ./usr/share/roundcube/plugins/
drwxr-xr-x root/root         0 2012-04-28 07:39 ./usr/share/roundcube/plugins/jqueryui/
drwxr-xr-x root/root         0 2012-01-17 07:50 ./usr/share/roundcube/plugins/filesystem_attachments/
-rw-r--r-- root/root      5219 2012-01-17 07:50 ./usr/share/roundcube/plugins/filesystem_attachments/filesystem_attachments.php
drwxr-xr-x root/root         0 2012-04-28 07:39 ./var/lib/roundcube/plugins/
lrwxrwxrwx root/root         0 2012-04-28 07:39 ./var/lib/roundcube/plugins/jqueryui -> /usr/share/roundcube/plugins/jqueryui
lrwxrwxrwx root/root         0 2012-04-28 07:39 ./var/lib/roundcube/plugins/filesystem_attachments -> /usr/share/roundcube/plugins/filesystem_attachments
#v-

But if I install 0.3.1-6, then upgrade to 0.7.1-1~bpo60+1, I get:

#v+
lrwxrwxrwx 1 root root   26 Sep 29 10:36 /usr/share/roundcube/plugins -> /var/lib/roundcube/plugins
drwxr-xr-x 4 root root 4096 Sep 29 10:37 /var/lib/roundcube/plugins
drwxr-xr-x 2 root root 4096 Sep 29 10:37 /var/lib/roundcube/plugins/filesystem_attachments
drwxr-xr-x 3 root root 4096 Sep 29 10:37 /var/lib/roundcube/plugins/jqueryui
#v-

/usr/share/roundcube/plugins was not replaced by the appropriate
directory and everything got installed in /var/lib/roundcube/plugins
instead.
-- 
panic("Tell me what a watchpoint trap is, and I'll then 
deal with such a beast...");
	2.2.16 /usr/src/linux/arch/arch/sparc/kernel/traps.c

Attachment: pgp2sB_6IGDKE.pgp
Description: PGP signature


Reply to: