help-gnats
[Top][All Lists]
Advanced

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

Install fixes


From: Lars Henriksen
Subject: Install fixes
Date: Wed, 7 Nov 2001 08:47:53 +0100
User-agent: Mutt/1.3.15i

While installing Gnats 4.0 I ran across and fixed some minor bugs, see below.

There is still a problem with INSTALL_INFO in docs/Makefile.in: it's not
called correctly. I don't know much about emacs and info files, but as
far as I can make out, INSTALL_INFO does not install the files, but their
contents in an existing 'dir'. Anyway, there is an argument missing.


Index: Makefile.in
===================================================================
RCS file: /cvs/gnats/gnats/gnats/Makefile.in,v
retrieving revision 1.47
diff -u -p -r1.47 Makefile.in
--- Makefile.in 2001/10/16 15:03:44     1.47
+++ Makefile.in 2001/11/06 17:27:15
@@ -412,15 +412,23 @@ install-gnats-arch-indep: all-gnats inst
           echo "Not putting gnats-databases file in $(GLOBAL_DB_LIST_FILE), 
it's already there." ; \
           true ; \
        else \
-          $(INSTALL_DATA) -o $(GNATS_USER) gnats-databases \
-                $(GLOBAL_DB_LIST_FILE) ; \
+          if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
+            $(INSTALL_DATA) -o $(GNATS_USER) gnats-databases 
$(GLOBAL_DB_LIST_FILE) ; \
+           else \
+            $(INSTALL_DATA) gnats-databases $(GLOBAL_DB_LIST_FILE) ; \
+            echo "*** Warning: Must chown $(GNATS_USER) 
$(GLOBAL_DB_LIST_FILE)" ; \
+          fi \
        fi
        @if [ -f $(GNATSD_HOST_ACCESS_FILE) ]; then \
           echo "Not putting gnats.host_access file in 
$(GNATSD_HOST_ACCESS_FILE), it's already there." ; \
           true ; \
        else \
-          $(INSTALL_DATA) -o $(GNATS_USER) $(srcdir)/gnatsd.host_access \
-                $(GNATSD_HOST_ACCESS_FILE) ; \
+          if [ `whoami` = root -o `whoami` = $(GNATS_USER) ] ; then \
+            $(INSTALL_DATA) -o $(GNATS_USER) $(srcdir)/gnatsd.host_access 
$(GNATSD_HOST_ACCESS_FILE) ; \
+           else \
+            $(INSTALL_DATA) $(srcdir)/gnatsd.host_access 
$(GNATSD_HOST_ACCESS_FILE) ; \
+            echo "*** Warning: Must chown $(GNATS_USER) 
$(GNATSD_HOST_ACCESS_FILE)" ; \
+          fi \
        fi
        @echo "*** If you're a first-time user, you'll want to create a new 
database";
        @echo "*** with $(libexecdir)/gnats/mkdb."
@@ -447,7 +455,7 @@ install-gnats-bin: all-gnats install-too
          chown $(GNATS_USER) $(libexecdir)/gnats/gnatsd ; \
          chmod 555 $(libexecdir)/gnats/gnatsd ; \
        else \
-         echo "*** Warning: must make queue-pr and gen-index suid gnats." ; \
+         echo "*** Warning: must make queue-pr and gen-index suid 
$(GNATS_USER)." ; \
        fi
 
 # regex.c is pretty badly broken, and I don't feel like fixing it.


Index: Makefile.in
===================================================================
RCS file: /cvs/gnats/gnats/doc/Makefile.in,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile.in
--- Makefile.in 2001/09/18 21:59:15     1.6
+++ Makefile.in 2001/11/07 07:36:48
@@ -18,6 +18,7 @@
 # along with GNU GNATS; see the file COPYING.  If not, write to
 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
+prefix = @prefix@
 
 infodir = @infodir@
 srcdir = @srcdir@


reply via email to

[Prev in Thread] Current Thread [Next in Thread]