Environment variables: epic4-1.1.7, Debian 3.0, x86. Bug (At compiler time):
When attempting to install helpfiles (hey, I was curious at the changes with bind(8) because of the keys.c big rewrite), helpfiles do not exist, so line 185 of epic4-1.1.7/Makefile is excutied incorrectly, copying the contents of epic4-1.1.7/ (including subdirectories) to /usr/local/share/epic/help. Evidence: /home/s/steven/epic4-1.1.7# make installman umask 022; \ ./mkinstalldirs /usr/local/share/epic /usr/local/share/epic/script \ /usr/local/share/epic/help /usr/local/bin /usr/local/libexec \ /usr/local/man/man1 ./bsdinstall -c -m 644 ./doc/epic.1 //usr/local/man/man1/epic.1 /home/s/steven/epic4-1.1.7# ls /usr/local/share/epic/help /home/s/steven/epic4-1.1.7# make installhelp umask 022; \ ./mkinstalldirs /usr/local/share/epic /usr/local/share/epic/script \ /usr/local/share/epic/help /usr/local/bin /usr/local/libexec \ /usr/local/man/man1 (cd ./help; tar cf - .) | (cd /usr/local/share/epic/help; tar xf -) /bin/sh: line 1: cd: ./help: No such file or directory /home/s/steven/epic4-1.1.7# ls BUG_FORM INSTALL Makefile.in VOTES config.cache configure doc mkpatch script test.o COPYRIGHT KNOWNBUGS README acconfig.h config.log configure.in include my_test source CVS Makefile UPDATES bsdinstall config.status contrib mkinstalldirs regress test.c /home/s/steven/epic4-1.1.7# ls /usr/local/share/epic/help BUG_FORM INSTALL Makefile.in VOTES config.cache configure doc mkpatch script test.o COPYRIGHT KNOWNBUGS README acconfig.h config.log configure.in include my_test source CVS Makefile UPDATES bsdinstall config.status contrib mkinstalldirs regress test.c /home/s/steven/epic4-1.1.7# rm -r /usr/local/share/epic/help/* /home/s/steven/epic4-1.1.7# make installhelp umask 022; \ ./mkinstalldirs /usr/local/share/epic /usr/local/share/epic/script \ /usr/local/share/epic/help /usr/local/bin /usr/local/libexec \ /usr/local/man/man1 (cd ./help; tar cf - .) | (cd /usr/local/share/epic/help; tar xf -) /bin/sh: line 1: cd: ./help: No such file or directory /home/s/steven/epic4-1.1.7# ls /usr/local/share/epic/help BUG_FORM INSTALL Makefile.in VOTES config.cache configure doc mkpatch script test.o COPYRIGHT KNOWNBUGS README acconfig.h config.log configure.in include my_test source CVS Makefile UPDATES bsdinstall config.status contrib mkinstalldirs regress test.c /home/s/steven/epic4-1.1.7# Workaround: 1) Use (well, test) patch supplied. Will exit ``make installhelp'' gracefully. 2) Hash out line 185 in epic4-1.1.7/Makefile 3) Remove option altogether until helpfiles can be written 4) Supply help files Versions effected: I'd assume it effects versions EPIC4pre1.034 and above, but I've only looked at the source in EPIC4-1.1.4+. Thanks, Steven sisko on efnet, ozorg
--- Makefile 2002-08-20 18:30:53.000000000 +1000 +++ Makefile.fixed 2002-08-20 18:59:58.000000000 +1000 @@ -182,7 +182,10 @@ helpdir = $(epicdir)/help installhelp: installdirs - (cd ./help; tar cf - .) | (cd $(IP)$(helpdir); tar xf -) + if ./my_test -d ./help; then \ + (cd ./help; tar cf - .) | (cd $(IP)$(helpdir); tar xf -); \ + else echo "No help files to install."; \ + fi installman: installdirs $(INSTALL_DATA) ./doc/epic.1 $(IP)/$(mandir)/man1/$(epic).1