Re: rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)

2012-09-29 Thread martin f krafft
also sprach Nikolaus Rath [2012.09.30.0056 +0200]: > > preinst script by 'rm -rf /usr/include/libfm' and I thought yet > > that was a right step since upgrade 1.0.1 -> 1.0.2 went smooth. > > Somehow that sounds like a really bad idea to me. Admittedly > manually placing some file in /usr/include/

Re: rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)

2012-09-29 Thread Andrej N. Gritsenko
Hello! I have written on Sunday, 30 September, at 2:12: >Nikolaus Rath has written on Saturday, 29 September, at 18:56: >>"Andrej N. Gritsenko" writes: >>> I've solved that in the >>> preinst script by 'rm -rf /usr/include/libfm' and I thought yet that was >>> a right step since upgrade 1.0.

Re: rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)

2012-09-29 Thread Andrej N. Gritsenko
Hello! Nikolaus Rath has written on Saturday, 29 September, at 18:56: >"Andrej N. Gritsenko" writes: >> I've solved that in the >> preinst script by 'rm -rf /usr/include/libfm' and I thought yet that was >> a right step since upgrade 1.0.1 -> 1.0.2 went smooth. >Somehow that sounds like a re

rm -rf /usr/somedir in maintainer scripts? (was: dpkg, symlinks, directories)

2012-09-29 Thread Nikolaus Rath
"Andrej N. Gritsenko" writes: > I've solved that in the > preinst script by 'rm -rf /usr/include/libfm' and I thought yet that was > a right step since upgrade 1.0.1 -> 1.0.2 went smooth. Somehow that sounds like a really bad idea to me. Admittedly manually placing some file in /usr/include/libfm

Re: dpkg, symlinks, directories

2012-09-29 Thread Bastian Blank
On Sat, Sep 29, 2012 at 05:31:40PM +0200, Vincent Bernat wrote: > In my case, this is quite complicated. I have done all this to allow a > user to install its own plugin in /var/lib/roundcube/plugins but if he > did install some plugins in /usr/share/roundcube/plugins because of the > symlink probl

Re: dpkg, symlinks, directories

2012-09-29 Thread David Prévot
Hi, Le 29/09/2012 11:17, Andrej N. Gritsenko a écrit : > I supposedly not much understand how dpkg does this but my question > is - isn't it simpler to delete directory in preinst? There are corner cases where it simply doesn't work as expected (and some symlinked files are deleted, e.g. #68

Re: dpkg, symlinks, directories

2012-09-29 Thread Andrej N. Gritsenko
Hello! Vincent Bernat has written on Saturday, 29 September, at 17:31: > ❦ 29 septembre 2012 17:17 CEST, "Andrej N. Gritsenko"  : >>>This is indeed intentional, that dpkg never replaces directories with >>>symlinks if directory is present, see [1] and [2] (under 4.). >> >>> [1]: http://bugs.d

Re: dpkg, symlinks, directories

2012-09-29 Thread Vincent Bernat
❦ 29 septembre 2012 13:01 CEST, Andreas Beckmann  : >> Thanks for the pointers! I now understand why this does not >> work. Fixing in postinst is quite difficult since I have swapped >> symlinks and, from the bug reports, successive installs make the >> situation worst (things got installed in th

Re: dpkg, symlinks, directories

2012-09-29 Thread Vincent Bernat
❦ 29 septembre 2012 17:17 CEST, "Andrej N. Gritsenko"  : >>This is indeed intentional, that dpkg never replaces directories with >>symlinks if directory is present, see [1] and [2] (under 4.). > >> [1]: http://bugs.debian.org/404850 >> [2]: >> http://www.debian.org/doc/debian-policy/ch-maintain

Re: dpkg, symlinks, directories

2012-09-29 Thread Andrej N. Gritsenko
Hello! Salvatore Bonaccorso has written on Saturday, 29 September, at 12:35: >This is indeed intentional, that dpkg never replaces directories with >symlinks if directory is present, see [1] and [2] (under 4.). > [1]: http://bugs.debian.org/404850 > [2]: > http://www.debian.org/doc/debian-p

Re: dpkg, symlinks, directories

2012-09-29 Thread Andreas Beckmann
On 2012-09-29 12:47, Vincent Bernat wrote: > ❦ 29 septembre 2012 12:35 CEST, Salvatore Bonaccorso : > >>> 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 appropria

Re: dpkg, symlinks, directories

2012-09-29 Thread Vincent Bernat
❦ 29 septembre 2012 12:35 CEST, Salvatore Bonaccorso  : >> 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 th

Re: dpkg, symlinks, directories

2012-09-29 Thread Vincent Bernat
❦ 29 septembre 2012 11:59 CEST, Vincent Bernat  : > 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

Re: dpkg, symlinks, directories

2012-09-29 Thread Salvatore Bonaccorso
Hi Vincent On Sat, Sep 29, 2012 at 11:59:38AM +0200, Vincent Bernat wrote: > 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 any

dpkg, symlinks, directories

2012-09-29 Thread Vincent Bernat
Hi! 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? -- Make