[cl-debian] Bug#448431: clisp: dpkg warning: unable to delete old directory `/usr/lib/clisp...

Package: clisp Version: 1:2.42-3 Severity: normal Hello, I think the title and the output below speaks for himself: ===== luca@gismo:~$ sudo apt-get install clisp [...] Selecting previously deselected package libsigsegv0. (Reading database ... 94277 files and directories currently installed.) Unpacking libsigsegv0 (from .../libsigsegv0_2.4-4_amd64.deb) ... Preparing to replace clisp 1:2.41-2 (using .../clisp_1%3a2.42-3_amd64.deb) ... Unpacking replacement clisp ... dpkg: warning - unable to delete old directory `/usr/lib/clisp/full': Directory not empty dpkg: warning - unable to delete old directory `/usr/lib/clisp': Directory not empty Setting up libsigsegv0 (2.4-4) ... Setting up clisp (1:2.42-3) ... Installing clc... ;; Loading file /usr/lib/clisp-2.42/install-clc.lisp ... ;; Loading file /usr/share/common-lisp/source/common-lisp-controller/common-lisp-controller.lisp ... ;; Loaded file /usr/share/common-lisp/source/common-lisp-controller/common-lisp-controller.lisp ;; Loading file /var/cache/common-lisp-controller/0/clisp/common-lisp-controller/common-lisp-controller.fas ... ;; Loaded file /var/cache/common-lisp-controller/0/clisp/common-lisp-controller/common-lisp-controller.fas ;; Loading file /var/cache/common-lisp-controller/0/clisp/asdf/asdf.fas ... ;; Loaded file /var/cache/common-lisp-controller/0/clisp/asdf/asdf.fas ;; Loading file /var/cache/common-lisp-controller/0/clisp/asdf/wild-modules.fas ... ;; Loaded file /var/cache/common-lisp-controller/0/clisp/asdf/wild-modules.fas ;; Loading file /var/cache/common-lisp-controller/0/clisp/common-lisp-controller/post-sysdef-install.fas ... ;; Loaded file /var/cache/common-lisp-controller/0/clisp/common-lisp-controller/post-sysdef-install.fas ;; Loaded file /usr/lib/clisp-2.42/install-clc.lisp created /usr/lib/clisp-2.42/full/lispinit.mem as expected. -rw-r--r-- 1 root root 5167424 Oct 28 22:20 /usr/lib/clisp-2.42/full/lispinit.mem luca@gismo:~$ ls /usr/lib/ | grep clisp clisp clisp-2.42 luca@gismo:~$ ls -R /usr/lib/clisp /usr/lib/clisp: full /usr/lib/clisp/full: lispinit.mem luca@gismo:~$ ===== This obviously means that the sysadmin should manually remove the /usr/lib/clisp folder, which should be a policy violation IIRC (but I cannot find the relevant paragraph right now and this is why Severity: is normal). Is there any particular reason for clisp_2.42 to be installed in /usr/lib/clisp-2.42 instead of /usr/lib/clisp? Do we want to support installations of more than one clisp version? Thx, bye, Gismo / Luca -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.23-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages clisp depends on: ii common-lisp-controller 6.12 Common Lisp source and compiler ma ii libc6 2.6.1-6 GNU C Library: Shared libraries ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand ii libreadline5 5.2-3 GNU readline and history libraries ii libsigsegv0 2.4-4 Library for handling page faults i ii libsm6 2:1.0.3-1+b1 X11 Session Management library ii libx11-6 2:1.0.3-7 X11 client-side library ii libxau6 1:1.0.3-2 X11 authorisation library ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar ii libxpm4 1:3.5.7-1 X11 pixmap library clisp recommends no packages. -- no debconf information

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ciao Luca, Luca Capello wrote:
dpkg: warning - unable to delete old directory `/usr/lib/clisp/full': Directory not empty dpkg: warning - unable to delete old directory `/usr/lib/clisp': Directory not empty
Damn. I'll have to think about what I can do about this.
Is there any particular reason for clisp_2.42 to be installed in /usr/lib/clisp-2.42 instead of /usr/lib/clisp? Do we want to support installations of more than one clisp version?
clisp itself changed the location and it was easiest just to follow their lead. Groetjes, Peter - -- signature -at- pvaneynd.mailworks.org http://www.livejournal.com/users/pvaneynd/ "God, root, what is difference?" Pitr | "God is more forgiving." Dave Aronson| -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHJjld11ldN0tyliURAqAfAJ9VsEuTJqgyR9sek47Oon6Grb25DgCaAzdU dtPWxeAE/RCDkcU4ZnUtkmk= =Jy0z -----END PGP SIGNATURE-----

Hi Peter! On Mon, 29 Oct 2007 20:49:53 +0100, Peter Van Eynde wrote:
Luca Capello wrote:
dpkg: warning - unable to delete old directory `/usr/lib/clisp/full': Directory not empty dpkg: warning - unable to delete old directory `/usr/lib/clisp': Directory not empty
Damn. I'll have to think about what I can do about this.
This problem occurs only during upgrade and not if someone remove or purge the package. This because clisp-1:2.41-1 has the following postrm (which is the same as clisp-1:2.42-3): ===== clisp_dir=/usr/lib/clisp mem=$clisp_dir/full/lispinit.mem lisp_run=$clisp_dir/full/lisp.run case "$1" in remove|failed-upgrade|abort-install|abort-upgrade|disappear) rm -f $mem $lisp_run || true ;; purge) rmdir -p --ignore-fail-on-non-empty $clisp_dir/full || true ;; upgrade) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 ;; esac ===== Thus I think that upgrade should have something similar to 'remove plus purge' for /usr/lib/clisp/full (to correct the upgrade path). And maybe we should remove the $clisp_dir/full directly on 'remove' in the new versions, since I don't see the point in keeping the empty folder.
Is there any particular reason for clisp_2.42 to be installed in /usr/lib/clisp-2.42 instead of /usr/lib/clisp? Do we want to support installations of more than one clisp version?
clisp itself changed the location and it was easiest just to follow their lead.
Perfectly reasonable and fully ACK :-) Thx, bye, Gismo / Luca

Your message dated Wed, 19 Dec 2007 16:02:07 +0000 with message-id <E1J51N1-0003Xu-OI@ries.debian.org> and subject line Bug#448431: fixed in clisp 1:2.43-1 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
participants (3)
-
Luca Capello
-
owner@bugs.debian.org
-
Peter Van Eynde