I have identified an installation problem in the latest releases of vpopmail
on Solaris 2.7

the install program used by the Makefile does not support installing
multiple files in one run, and it does not error when told to install
multiple files -- it simply installs the first in the list, and exits.

this yields 'make install' not copying config.h, vauth.h, nor vlimits.h to
~vpopmail/include/

needless to say, this makes things _very_ confusing, when vuserinfo works,
but when programs like qmailadmin dont work (because they are using include
files from an older vpopmail series that were not overwritten)


the following patch fixes the problem (use patch -d vpopmail-5.4.8 <
vpopmail-5.4.8-kisterfix):

--- Makefile.am.orig 2004-12-09 00:29:58.222616000 -0500
+++ Makefile.am   2004-12-09 00:31:00.863282000 -0500
@@ -151,9 +151,9 @@
   $(INSTALL) -o root -m 0444 \
     config.h $(DESTDIR)@vpopmaildir@/include/vpopmail_config.h

-  $(INSTALL) -o root -m 0444 \
-    vpopmail.h config.h vauth.h vlimits.h \
-    $(DESTDIR)@vpopmaildir@/include/
+  for include in vpopmail.h config.h vauth.h vlimits.h ; do \
+     $(INSTALL) -o root -m 0444 $$include $(DESTDIR)@vpopmaildir@/include/
; \
+  done

   $(INSTALL) -d $(DESTDIR)@vpopmaildir@/doc/man_html
   $(INSTALL) -d $(DESTDIR)@vpopmaildir@/doc/doc_html
--- Makefile.in.orig 2004-12-09 00:30:02.552653000 -0500
+++ Makefile.in   2004-12-09 00:30:30.282952000 -0500
@@ -829,9 +829,9 @@
   $(INSTALL) -o root -m 0444 \
     config.h $(DESTDIR)@vpopmaildir@/include/vpopmail_config.h

-  $(INSTALL) -o root -m 0444 \
-    vpopmail.h config.h vauth.h vlimits.h \
-    $(DESTDIR)@vpopmaildir@/include/
+  for include in vpopmail.h config.h vauth.h vlimits.h ; do \
+     $(INSTALL) -o root -m 0444 $$include $(DESTDIR)@vpopmaildir@/include/
; \
+  done

   $(INSTALL) -d $(DESTDIR)@vpopmaildir@/doc/man_html
   $(INSTALL) -d $(DESTDIR)@vpopmaildir@/doc/doc_html


--

Jeremy Kister
http://jeremy.kister.net/

Reply via email to