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

trouble with emacs-install script



Hi all,

I'd appreciate some shell-script help.

I'm trying to add a `grep' for byte-compilation warnings to
emacs-install scripts.

The file /usr/lib/emacsen-common/packages/install/emacs-goodies-el
would end with:

---
echo ${FLAVOR} ${FLAGS} ${FILES} >> ${LOG}
"${FLAVOR}" ${FLAGS} ${FILES} >> ${LOG} 2>&1
egrep -s -e "While compiling|\*\*" ${LOG}
echo install/${PACKAGE}: Deleting ${LOG}
rm -f path.el ${LOG}

exit 0
---

Adding the line with egrep makes the installation fail on unstable yet
it works on sarge.

$ sudo dpkg -i emacs-goodies-el_25.1-1_all.deb
(Reading database ... 174888 files and directories currently installed.)
Preparing to replace emacs-goodies-el 25.1-1 (using emacs-goodies-el_25.1-1_all.deb) ...
remove/emacs-goodies-el: purging byte-compiled files for emacs-snapshot
remove/emacs-goodies-el: purging byte-compiled files for emacs20
remove/emacs-goodies-el: purging byte-compiled files for emacs21
remove/emacs-goodies-el: purging byte-compiled files for xemacs21
Unpacking replacement emacs-goodies-el ...
Setting up emacs-goodies-el (25.1-1) ...
install/emacs-goodies-el: Handling emacs-snapshot, logged in /tmp/elc_XkCN7p.log
egrep -s -e While compiling|\*\* /tmp/elc_XkCN7p.log
emacs-package-install: /usr/lib/emacsen-common/packages/install/emacs-goodies-el emacs-snapshot emacs-snapshot emacs20 emacs21 xemacs21 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1.
dpkg: error processing emacs-goodies-el (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 emacs-goodies-el


As you can see, even the echo about "Deleting" doesn't appear, nor is
the `rm -f' ever invoked.  The script fails at egrep.

What stupid thing am I doing wrong?

Thanks,
Peter



Reply to: