Bug#465748: vm: no autoloads are set up

2008-03-04 Thread Sven Joachim
reopen 465748 
thanks

 This is not really a package bug. The package does not contain
  any file called  /etc/emacs*/site-start.d/50vm-init.el; instead, it
  ships /usr/share/emacs/site-lisp/vm/vm-init.el, which is shipped not
  empty. 

 During installation, ucf is called to install the appropriate
  /etc/emacs*/site-start.d/  files; and uses debconf to ask whether or
  not to replace the file. Now, I have no idea why  the init files are
  empty right now on your machine,

I now have it after closely looking at your
/usr/lib/emacsen-common/packages/install/vm script.  Here are the
relevant actions in that script with line numbers:

43: ELDIR=/usr/share/emacs/site-lisp/$PACKAGE
44: ELCDIR=/usr/share/$FLAVOUR/site-lisp/$PACKAGE
48: STARTFILE=$PACKAGE-init.el;
92: cd $ELCDIR;
109:sed -e s|=F|/usr/share/$FLAVOUR/site-lisp/$PACKAGE| \
110:$STARTFILE  $ELCDIR/$STARTFILE;
111:ucf $ELCDIR/$STARTFILE $STARTDIR/50$STARTFILE;

When the shell executes the sed call in lines 109/110, it is in $ELCDIR,
thus $STARTFILE becomes $ELCDIR/$STARTFILE, and sed (and ucf in line
111) gets an empty file as input.

You had better feed sed with $ELDIR/$STARTFILE, I suppose that would
work.

Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#465748: vm: no autoloads are set up

2008-03-04 Thread Sven Joachim
tags 465748 + patch
thanks

On 2008-03-04 10:28 +0100, Sven Joachim wrote:

 I now have it after closely looking at your
 /usr/lib/emacsen-common/packages/install/vm script.  Here are the
 relevant actions in that script with line numbers:

 43: ELDIR=/usr/share/emacs/site-lisp/$PACKAGE
 44: ELCDIR=/usr/share/$FLAVOUR/site-lisp/$PACKAGE
 48: STARTFILE=$PACKAGE-init.el;
 92:   cd $ELCDIR;
 109:  sed -e s|=F|/usr/share/$FLAVOUR/site-lisp/$PACKAGE| \
 110:$STARTFILE  $ELCDIR/$STARTFILE;
 111:  ucf $ELCDIR/$STARTFILE $STARTDIR/50$STARTFILE;

 When the shell executes the sed call in lines 109/110, it is in $ELCDIR,
 thus $STARTFILE becomes $ELCDIR/$STARTFILE, and sed (and ucf in line
 111) gets an empty file as input.

 You had better feed sed with $ELDIR/$STARTFILE, I suppose that would
 work.

I've tested it now, and the rebuilt package works fine.  So here are
diff and changelog entry:

--8---cut here---start-8---
diff -ru vm-8.0.9.old/debian/changelog vm-8.0.9/debian/changelog
--- vm-8.0.9.old/debian/changelog   2008-03-04 12:58:44.0 +0100
+++ vm-8.0.9/debian/changelog   2008-03-04 12:59:21.0 +0100
@@ -1,3 +1,9 @@
+vm (8.0.9-1sven1) unstable; urgency=low
+
+  * debian/emacsen.install: Feed the right file to sed, closes:#465748.
+
+ -- Sven Joachim [EMAIL PROTECTED]  Tue, 04 Mar 2008 12:15:46 +0100
+
 vm (8.0.9-1) unstable; urgency=low
 
   * New upstream release
diff -ru vm-8.0.9.old/debian/emacsen.install vm-8.0.9/debian/emacsen.install
--- vm-8.0.9.old/debian/emacsen.install 2008-03-04 12:58:44.0 +0100
+++ vm-8.0.9/debian/emacsen.install 2008-03-04 12:59:21.0 +0100
@@ -107,7 +107,7 @@
mv $LOG   $ELCDIR/install.log;
 chmod 644 $ELCDIR/install.log;
sed -e s|=F|/usr/share/$FLAVOUR/site-lisp/$PACKAGE| \
-$STARTFILE  $ELCDIR/$STARTFILE;
+$ELDIR/$STARTFILE  $ELCDIR/$STARTFILE;
ucf $ELCDIR/$STARTFILE $STARTDIR/50$STARTFILE;
 
if test -x /usr/sbin/install-info-altdir; then
--8---cut here---end---8---

Regards,
Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#465748: vm: no autoloads are set up

2008-02-22 Thread Sven Joachim
found 465748 8.0.9-1
thanks

On 2008-02-21 23:13 +0100, Manoj Srivastava wrote:

 ,
 | (zsh)% ls -l /etc/emacs*/site-start.d/50vm-init.el
 | -rw-r--r-- 1 root root 0 Feb  9 11:50 
 /etc/emacs-snapshot/site-start.d/50vm-init.el
 | -rw-r--r-- 1 root root 0 Feb  9 11:50 /etc/emacs21/site-start.d/50vm-init.el
 | -rw-r--r-- 1 root root 0 Feb  9 11:50 /etc/emacs22/site-start.d/50vm-init.el
 | (zsh)% ls -l /usr/share/emacs*/**/vm-autoloads.el
 | -rw-r--r-- 1 root root 1 Feb  9 11:50 
 /usr/share/emacs-snapshot/site-lisp/vm/vm-autoloads.el
 | -rw-r--r-- 1 root root 1 Feb  9 11:50 
 /usr/share/emacs/site-lisp/vm/vm-autoloads.el
 | -rw-r--r-- 1 root root 1 Feb  9 11:50 
 /usr/share/emacs21/site-lisp/vm/vm-autoloads.el
 | -rw-r--r-- 1 root root 1 Feb  9 11:50 
 /usr/share/emacs22/site-lisp/vm/vm-autoloads.el
 `
 __ ls -l /usr/share/emacs*/**/vm-autoloads.el
 -rw-r--r--+ 1 srivasta srivasta 122165 2008-02-18 13:40 
 /usr/share/emacs22/site-lisp/vm/vm-autoloads.el
 -rw-r--r--+ 1 root root  1 2008-02-08 23:14 
 /usr/share/emacs/site-lisp/vm/vm-autoloads.el

 I wonder why it did not compile for you. I'll try and
  investigate. 

Thanks, vm-autoloads contains the autoloads in 8.0.9-1.  However, the
files /etc/emacs*/site-start.d/50vm-init.el are still empty, so the
autoloads are not defined at Emacs startup and M-x vm RET signals No
match.  I had to manually load vm-autoloads to make vm work.

Since this is not what users expect, I've reopened the bug; I think vm
should not transition to testing until the problem with the empty
50vm-init.el files is resolved.

Regards,
Sven



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#465748: vm: no autoloads are set up

2008-02-22 Thread Sven Joachim
On 2008-02-22 15:56 +0100, Manoj Srivastava wrote:

 Hi,
 On Fri, 22 Feb 2008 11:07:19 +0100, Sven Joachim [EMAIL PROTECTED] said: 

 Thanks, vm-autoloads contains the autoloads in 8.0.9-1.  However, the
 files /etc/emacs*/site-start.d/50vm-init.el are still empty, so the
 autoloads are not defined at Emacs startup and M-x vm RET signals No
 match.  I had to manually load vm-autoloads to make vm work.

 Since this is not what users expect, I've reopened the bug; I think vm
 should not transition to testing until the problem with the empty
 50vm-init.el files is resolved.

 This is not really a package bug. The package does not contain
  any file called  /etc/emacs*/site-start.d/50vm-init.el; instead, it
  ships /usr/share/emacs/site-lisp/vm/vm-init.el, which is shipped not
  empty. 

 During installation, ucf is called to install the appropriate
  /etc/emacs*/site-start.d/  files; and uses debconf to ask whether or
  not to replace the file. Now, I have no idea why  the init files are
  empty right now on your machine,

Nor do I. :-(  Maybe it's time for me to install etckeeper¹.

 but it is seen by ucf as a user change
  which must be preserved unless the  user allows the file to be
  replaced -- are you using debconf at a high setting, opting not to see
  the question?

I use medium priority, and I wasn't asked anything in the last two vm
installs (8.0.7-1 and 8.0.9-1).

Now I tried dpkg-reconfigure vm but that failed miserably:

,
| remove/vm: Ignoring emacsen flavor emacs.
| remove/vm: Removing for 
emacs-snapshot.../usr/share/emacs-snapshot/site-lisp/vm/... done.
| remove/vm: Removing for emacs21.../usr/share/emacs21/site-lisp/vm/... done.
| remove/vm: Removing for emacs22.../usr/share/emacs22/site-lisp/vm/... done.
| emacs-package-install: /usr/lib/emacsen-common/packages/install/vm 
emacs-snapshot emacs-snapshot emacs21 emacs22 failed at 
/usr/lib/emacsen-common/emacs-package-install line 30, TSORT line 1.
`

Next thing to try was to purge vm which did not work too well either,
it left a bunch of files around:

,
| % ls -l /usr/share/emacs/site-lisp/vm
| total 1684
| -rw-r--r-- 1 root root  12696 Feb 22 18:36 tapestry.elc
| -rw-r--r-- 1 root root  18170 Feb 22 18:36 vcard.elc
| -rw-r--r-- 1 root root691 Feb 22 18:36 vm-autoload.elc
| -rw-r--r-- 1 root root 126410 Feb 22 18:36 vm-autoloads.el
| -rw-r--r-- 1 root root 114472 Feb 22 18:36 vm-autoloads.elc
| -rw-r--r-- 1 root root  35098 Feb 22 18:36 vm-avirtual.elc
| -rw-r--r-- 1 root root  12184 Feb 22 18:36 vm-biff.elc
| -rw-r--r-- 1 root root   4888 Feb 22 18:36 vm-crypto.elc
| -rw-r--r-- 1 root root   2213 Feb 22 10:32 vm-cus-load.el
| -rw-r--r-- 1 root root  12260 Feb 22 18:36 vm-delete.elc
| -rw-r--r-- 1 root root  22190 Feb 22 18:36 vm-digest.elc
| -rw-r--r-- 1 root root  10155 Feb 22 18:36 vm-edit.elc
| -rw-r--r-- 1 root root 108163 Feb 22 18:36 vm-folder.elc
| -rw-r--r-- 1 root root   6489 Feb 22 18:36 vm-grepmail.elc
| -rw-r--r-- 1 root root  55388 Feb 22 18:36 vm-imap.elc
| -rw-r--r-- 1 root root   1587 Feb 22 18:36 vm-license.elc
| -rw-r--r-- 1 root root   3547 Feb 22 18:36 vm-macro.elc
| -rw-r--r-- 1 root root  18530 Feb 22 18:36 vm-mark.elc
| -rw-r--r-- 1 root root  44962 Feb 22 18:36 vm-menu.elc
| -rw-r--r-- 1 root root   5283 Feb 22 18:36 vm-message-history.elc
| -rw-r--r-- 1 root root  23573 Feb 22 18:36 vm-message.elc
| -rw-r--r-- 1 root root 162215 Feb 22 18:36 vm-mime.elc
| -rw-r--r-- 1 root root   8667 Feb 22 18:36 vm-minibuf.elc
| -rw-r--r-- 1 root root  24402 Feb 22 18:36 vm-misc.elc
| -rw-r--r-- 1 root root  14970 Feb 22 18:36 vm-motion.elc
| -rw-r--r-- 1 root root  18395 Feb 22 18:36 vm-mouse.elc
| -rw-r--r-- 1 root root  27703 Feb 22 18:36 vm-page.elc
| -rw-r--r-- 1 root root  44648 Feb 22 18:36 vm-pcrisis.elc
| -rw-r--r-- 1 root root  34405 Feb 22 18:36 vm-pgg.elc
| -rw-r--r-- 1 root root  31464 Feb 22 18:36 vm-pine.elc
| -rw-r--r-- 1 root root  30235 Feb 22 18:36 vm-pop.elc
| -rw-r--r-- 1 root root  13090 Feb 22 18:36 vm-ps-print.elc
| -rw-r--r-- 1 root root  46775 Feb 22 18:36 vm-reply.elc
| -rw-r--r-- 1 root root  67607 Feb 22 18:36 vm-rfaddons.elc
| -rw-r--r-- 1 root root  28021 Feb 22 18:36 vm-save.elc
| -rw-r--r-- 1 root root   4290 Feb 22 18:36 vm-search.elc
| -rw-r--r-- 1 root root  24522 Feb 22 18:36 vm-serial.elc
| -rw-r--r-- 1 root root  17409 Feb 22 18:36 vm-sort.elc
| -rw-r--r-- 1 root root646 Feb 22 18:36 vm-startup.elc
| -rw-r--r-- 1 root root   7479 Feb 22 18:36 vm-summary-faces.elc
| -rw-r--r-- 1 root root  42509 Feb 22 18:36 vm-summary.elc
| -rw-r--r-- 1 root root   6757 Feb 22 18:36 vm-thread.elc
| -rw-r--r-- 1 root root  21651 Feb 22 18:36 vm-toolbar.elc
| -rw-r--r-- 1 root root  17550 Feb 22 18:36 vm-undo.elc
| -rw-r--r-- 1 root root   1771 Feb 22 18:36 vm-user.elc
| -rw-r--r-- 1 root root 216488 Feb 22 18:36 vm-vars.elc
| -rw-r--r-- 1 root root   1866 Feb 22 18:36 vm-vcard.elc
| -rw-r--r-- 1 root root   5310 Feb 22 18:36 vm-version.elc
| -rw-r--r-- 1 root root  20564 

Bug#465748: vm: no autoloads are set up

2008-02-21 Thread Manoj Srivastava
Hi,

 Here are the
relevant (AFAICT) startup files, all empty:

,
| (zsh)% ls -l /etc/emacs*/site-start.d/50vm-init.el
| -rw-r--r-- 1 root root 0 Feb  9 11:50 
/etc/emacs-snapshot/site-start.d/50vm-init.el
| -rw-r--r-- 1 root root 0 Feb  9 11:50 /etc/emacs21/site-start.d/50vm-init.el
| -rw-r--r-- 1 root root 0 Feb  9 11:50 /etc/emacs22/site-start.d/50vm-init.el
| (zsh)% ls -l /usr/share/emacs*/**/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs-snapshot/site-lisp/vm/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs/site-lisp/vm/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs21/site-lisp/vm/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs22/site-lisp/vm/vm-autoloads.el
`
__ ls -l /usr/share/emacs*/**/vm-autoloads.el
-rw-r--r--+ 1 srivasta srivasta 122165 2008-02-18 13:40 
/usr/share/emacs22/site-lisp/vm/vm-autoloads.el
-rw-r--r--+ 1 root root  1 2008-02-08 23:14 
/usr/share/emacs/site-lisp/vm/vm-autoloads.el

I wonder why it did not compile for you. I'll try and
 investigate. 

manoj
-- 
There is no delight the equal of dread.  As long as it is somebody
else's. --Clive Barker
Manoj Srivastava [EMAIL PROTECTED] http://www.golden-gryphon.com/  
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#465748: vm: no autoloads are set up

2008-02-14 Thread Sven Joachim
Package: vm
Version: 8.0.7-1
Severity: grave

VM is unusable, since no autoloads are set up for it.  Here are the
relevant (AFAICT) startup files, all empty:

,
| (zsh)% ls -l /etc/emacs*/site-start.d/50vm-init.el
| -rw-r--r-- 1 root root 0 Feb  9 11:50 
/etc/emacs-snapshot/site-start.d/50vm-init.el
| -rw-r--r-- 1 root root 0 Feb  9 11:50 /etc/emacs21/site-start.d/50vm-init.el
| -rw-r--r-- 1 root root 0 Feb  9 11:50 /etc/emacs22/site-start.d/50vm-init.el
| (zsh)% ls -l /usr/share/emacs*/**/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs-snapshot/site-lisp/vm/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs/site-lisp/vm/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs21/site-lisp/vm/vm-autoloads.el
| -rw-r--r-- 1 root root 1 Feb  9 11:50 
/usr/share/emacs22/site-lisp/vm/vm-autoloads.el
`

Now when I type M-x vm TAB, the only match is vm-rfaddons-infect-vm from
the vm-bonus-el package, which is pretty useless. :-(


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.18
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vm depends on:
ii  emacs-snapshot [emacsen]1:20080209-1 The GNU Emacs editor (development 
ii  emacs-snapshot-gtk [emacsen 1:20080209-1 The GNU Emacs editor (with GTK+ 2.
ii  emacs21 [emacsen]   21.4a+1-5.3  The GNU Emacs editor
ii  emacs22-gtk [emacsen]   22.1+1-2.3   The GNU Emacs editor (with GTK use
ii  ucf 3.004Update Configuration File: preserv

Versions of packages vm recommends:
ii  make  3.81-3 The GNU version of the make util

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#465748: vm: no autoloads are set up

2008-02-14 Thread Jeremiah C. Foster
I can confirm the same thing is happening here.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]