On Mon, May 03, 2004 at 09:09:21PM +0200, Frank Küster wrote: > Branden Robinson <branden@debian.org> wrote: > > Hmm, that's bad. Both are plain directories, and neither is a symlink. > > > > You might need directory-to-symlink migration logic like I have in XFree86. > > Hm, yes, for upgrades from potato probably. I'm not sure, we'll have to > check the potato package and check this. But it seems we need to check > this if we missed it upon the potato-to-woody upgrade. > > Can you point me to where exactly you use this directory-to-symlink > migration logic - I guess in one of the preinst scripts? Sure. twm did this, so I'm attaching its preinst, postinst, and postrm scripts. > >> Both should be installed from woody's tetex-bin (they are in it, not > >> created by some maintainer script). No idea what has happened. By the > >> way, if you just press enter on the hanging postinst, will it proceed (I > >> guess no)? > > > > It proceeds to fail: > > That's its only choice if fmtutil.cnf cannot be found. It's only this > dialog vs. debconf problem that it doesn't even fail, but just hang. As > I said, this has been fixed in unstable. Okay. -- G. Branden Robinson | We either learn from history or, Debian GNU/Linux | uh, well, something bad will branden@debian.org | happen. http://people.debian.org/~branden/ | -- Bob Church
#!/bin/sh # Debian twm package pre-installation script # Copyright 1998-2001 Branden Robinson. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. # Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava. set -e THIS_PACKAGE=twm THIS_SCRIPT=preinst #INCLUDE_SHELL_LIB# if [ "$1" = "install" -o "$1" = "upgrade" ]; then # twm dir moved to /etc/X11 in 4.x if [ -e /usr/X11R6/lib/X11/twm -a ! -L /usr/X11R6/lib/X11/twm ]; then observe "removing obsolete /usr/X11R6/lib/X11/twm directory" mv /usr/X11R6/lib/X11/twm /usr/X11R6/lib/X11/twm.moved-by-preinst fi check_symlinks_and_warn /usr/X11R6/lib/X11/twm fi #DEBHELPER# exit 0 # vim:set ai et sts=2 sw=2 tw=0:
#!/bin/sh # Debian twm package post-installation script # Copyright 1998-2001 Branden Robinson. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. # Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava. set -e THIS_PACKAGE=twm THIS_SCRIPT=postinst #INCLUDE_SHELL_LIB# check_symlinks_and_bomb /usr/X11R6/lib/X11/twm # now safe to remove old twm dir if [ -e /usr/X11R6/lib/X11/twm.moved-by-preinst -a -L /usr/X11R6/lib/X11/twm ]; then rm -r /usr/X11R6/lib/X11/twm.moved-by-preinst fi #DEBHELPER# # clean up after older alternative that used different path update-alternatives --remove x-window-manager /usr/bin/X11/twm update-alternatives --install /usr/bin/x-window-manager x-window-manager /usr/X11R6/bin/twm 40 \ --slave /usr/share/man/man1/x-window-manager.1.gz x-window-manager.1.gz /usr/X11R6/man/man1/twm.1x.gz exit 0 # vim:set ai et sts=2 sw=2 tw=0:
#!/bin/sh # Debian twm package post-removal script # Copyright 1998-2001 Branden Robinson. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. # Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava. set -e THIS_PACKAGE=twm THIS_SCRIPT=postrm #INCLUDE_SHELL_LIB# if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ]; then if [ -d /usr/X11R6/lib/X11/twm.moved-by-preinst -a -L /usr/X11R6/lib/X11/twm ]; then rm /usr/X11R6/lib/X11/twm mv /usr/X11R6/lib/X11/twm.moved-by-preinst /usr/X11R6/lib/X11/twm fi fi #DEBHELPER# if [ "$1" = "purge" ]; then if [ -d /etc/X11/twm ]; then rm -r /etc/X11/twm fi fi exit 0 # vim:set ai et sts=2 sw=2 tw=0:
Attachment:
signature.asc
Description: Digital signature