[rt-devel] [ckolar@imsa.edu: [rt-users] 208->209 upgrade returns error]

Phil Homewood pdh at moreton.com.au
Thu Nov 15 17:21:07 EST 2001


Re: the problem below. This is not the first time someone's reported
this one.

Suggested patch attached. I've tested the theory against the case
below interactively, but not from the Makefile...


----- Forwarded message from Christopher Kolar <ckolar at imsa.edu> -----

To: rt-users at lists.fsck.com
From: Christopher Kolar <ckolar at imsa.edu>
Subject: [rt-users] 208->209 upgrade returns error
X-BeenThere: rt-users at lists.fsck.com
X-Mailman-Version: 2.0beta5
List-Id: For users of RT: Request Tracker <rt-users.lists.fsck.com>

Hi everyone.  I have had 2.0.8 up and running for two days and I am trying 
to do the upgrade to 2.0.9 this morning.  I have set up the Makefile but 
when I make upgrade I get the following error message:

----------------------------------------
        mv //var/rt2/etc/config.pm //var/rt2/etc/config.pm.old && \
        chmod 000 //var/rt2/etc/config.pm.old
cp -rp ./etc/config.pm //var/rt2/etc/config.pm
/usr/bin/perl -p -i -e "\
s'!!DB_TYPE!!'"mysql"'g;\
s'!!DB_HOST!!'"localhost"'g;\
s'!!DB_PORT!!'""'g;\
s'!!DB_RT_PASS!!'"mypassword "'g;\
s'!!DB_RT_USER!!'"rt_user"'g;\
s'!!DB_DATABASE!!'"rt2"'g;\
s'!!MASON_HTML_PATH!!'"/var/rt2/WebRT/html"'g;\
s'!!MASON_LOCAL_HTML_PATH!!'"/var/rt2/local/WebRT/html"'g;\
s'!!MASON_SESSION_PATH!!'"/var/rt2/WebRT/sessiondata"'g;\
s'!!MASON_DATA_PATH!!'"/var/rt2/WebRT/data"'g;\
s'!!RT_LOG_PATH!!'"/tmp"'g;\
s'!!RT_VERSION!!'"2.0.9"'g;\
" //var/rt2/etc/config.pm
Substitution replacement not terminated at -e line 1.
make: *** [config-replace] Error 255
[root at iti currenttt]#
--------------------------------

I took a look around the Makefile, but I do not know enough about perl to 
make good sense of that is happening.  Any help would be much appreciated.

Cheers,

--chris



/////\\\\\/////\\\\\
Christopher G. Kolar
   Coordinator of Information Technology Integration
   Illinois Mathematics and Science Academy
 ckolar at imsa.edu  --  www.imsa.edu/~ckolar
        [PGP Public Key ID: 0xC6492C72]

----- End forwarded message -----
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /raid/cvsroot/rt/Makefile,v
retrieving revision 1.90.2.261
diff -u -r1.90.2.261 Makefile
--- Makefile	2001/10/01 06:42:29	1.90.2.261
+++ Makefile	2001/11/15 22:19:08
@@ -288,7 +288,7 @@
 			      INSTALLMAN3DIR=$(DESTDIR)/$(RT_MAN_PATH)/man3 \
 	    && make \
 	    && make test \
-	    && $(PERL) -p -i -e " s'!!RT_VERSION!!'$(RT_VERSION)'g;" blib/lib/RT.pm ;\
+	    && $(PERL) -p -i -e ' s"!!RT_VERSION!!"$(RT_VERSION)"g;' blib/lib/RT.pm ;\
 	    make install \
 			   INSTALLSITEMAN1DIR=$(DESTDIR)/$(RT_MAN_PATH)/man1 \
 			   INSTALLSITEMAN3DIR=$(DESTDIR)/$(RT_MAN_PATH)/man3 \
@@ -311,12 +311,12 @@
 
 acls:
 	cp etc/acl.$(DB_TYPE) '$(DESTDIR)/$(RT_ETC_PATH)/acl.$(DB_TYPE)'
-	$(PERL) -p -i -e " s'!!DB_TYPE!!'"$(DB_TYPE)"'g;\
-				s'!!DB_HOST!!'"$(DB_HOST)"'g;\
-				s'!!DB_RT_PASS!!'"$(DB_RT_PASS)"'g;\
-				s'!!DB_RT_HOST!!'"$(DB_RT_HOST)"'g;\
-				s'!!DB_RT_USER!!'"$(DB_RT_USER)"'g;\
-				s'!!DB_DATABASE!!'"$(DB_DATABASE)"'g;" $(DESTDIR)/$(RT_ETC_PATH)/acl.$(DB_TYPE)
+	$(PERL) -p -i -e ' s"!!DB_TYPE!!"$(DB_TYPE)"g;\
+				s"!!DB_HOST!!"$(DB_HOST)"g;\
+				s"!!DB_RT_PASS!!"$(DB_RT_PASS)"g;\
+				s"!!DB_RT_HOST!!"$(DB_RT_HOST)"g;\
+				s"!!DB_RT_USER!!"$(DB_RT_USER)"g;\
+				s"!!DB_DATABASE!!"$(DB_DATABASE)"g;' $(DESTDIR)/$(RT_ETC_PATH)/acl.$(DB_TYPE)
 	bin/initacls.$(DB_TYPE) '$(DB_HOME)' '$(DB_HOST)' '$(DB_PORT)' '$(DB_DBA)' '$(DB_DBA_PASSWORD)' '$(DB_DATABASE)' '$(DESTDIR)/$(RT_ETC_PATH)/acl.$(DB_TYPE)' 
 
 
@@ -338,8 +338,8 @@
 insert-install:
 	cp -rp ./tools/insertdata \
 		 $(DESTDIR)/$(RT_ETC_PATH)
-	$(PERL) -p -i -e " s'!!RT_ETC_PATH!!'$(RT_ETC_PATH)'g;\
-		           s'!!RT_LIB_PATH!!'$(RT_LIB_PATH)'g;"\
+	$(PERL) -p -i -e ' s"!!RT_ETC_PATH!!"$(RT_ETC_PATH)"g;\
+		           s"!!RT_LIB_PATH!!"$(RT_LIB_PATH)"g;'\
 		$(DESTDIR)/$(RT_ETC_PATH)/insertdata
 
 bin-install:
@@ -350,11 +350,11 @@
 	cp -p ./bin/mason_handler.fcgi $(DESTDIR)/$(RT_FASTCGI_HANDLER)
 	cp -p ./bin/mason_handler.scgi $(DESTDIR)/$(RT_SPEEDYCGI_HANDLER)
 
-	$(PERL) -p -i -e "s'!!RT_PATH!!'"$(RT_PATH)"'g;\
-				s'!!PERL!!'"$(PERL)"'g;\
-			      	s'!!RT_VERSION!!'"$(RT_VERSION)"'g;\
-				s'!!RT_ETC_PATH!!'"$(RT_ETC_PATH)"'g;\
-				s'!!RT_LIB_PATH!!'"$(RT_LIB_PATH)"'g;"\
+	$(PERL) -p -i -e ' s"!!RT_PATH!!"$(RT_PATH)"g;\
+				s"!!PERL!!"$(PERL)"g;\
+			      	s"!!RT_VERSION!!"$(RT_VERSION)"g;\
+				s"!!RT_ETC_PATH!!"$(RT_ETC_PATH)"g;\
+				s"!!RT_LIB_PATH!!"$(RT_LIB_PATH)"g;'\
 		$(DESTDIR)/$(RT_MODPERL_HANDLER) \
 		$(DESTDIR)/$(RT_FASTCGI_HANDLER) \
 		$(DESTDIR)/$(RT_SPEEDYCGI_HANDLER) \
@@ -368,20 +368,20 @@
 		mv $(DESTDIR)/$(RT_CONFIG) $(DESTDIR)/$(RT_CONFIG).old && \
 	 	chmod 000 $(DESTDIR)/$(RT_CONFIG).old
 	cp -rp ./etc/config.pm $(DESTDIR)/$(RT_CONFIG)
-	$(PERL) -p -i -e "\
-	s'!!DB_TYPE!!'"$(DB_TYPE)"'g;\
-	s'!!DB_HOST!!'"$(DB_HOST)"'g;\
-	s'!!DB_PORT!!'"$(DB_PORT)"'g;\
-	s'!!DB_RT_PASS!!'"$(DB_RT_PASS)"'g;\
-	s'!!DB_RT_USER!!'"$(DB_RT_USER)"'g;\
-	s'!!DB_DATABASE!!'"$(DB_DATABASE)"'g;\
-	s'!!MASON_HTML_PATH!!'"$(MASON_HTML_PATH)"'g;\
-	s'!!MASON_LOCAL_HTML_PATH!!'"$(MASON_LOCAL_HTML_PATH)"'g;\
-	s'!!MASON_SESSION_PATH!!'"$(MASON_SESSION_PATH)"'g;\
-	s'!!MASON_DATA_PATH!!'"$(MASON_DATA_PATH)"'g;\
-	s'!!RT_LOG_PATH!!'"$(RT_LOG_PATH)"'g;\
-	s'!!RT_VERSION!!'"$(RT_VERSION)"'g;\
-	" $(DESTDIR)/$(RT_CONFIG)
+	$(PERL) -p -i -e '\
+	s"!!DB_TYPE!!"$(DB_TYPE)"g;\
+	s"!!DB_HOST!!"$(DB_HOST)"g;\
+	s"!!DB_PORT!!"$(DB_PORT)"g;\
+	s"!!DB_RT_PASS!!"$(DB_RT_PASS)"g;\
+	s"!!DB_RT_USER!!"$(DB_RT_USER)"g;\
+	s"!!DB_DATABASE!!"$(DB_DATABASE)"g;\
+	s"!!MASON_HTML_PATH!!"$(MASON_HTML_PATH)"g;\
+	s"!!MASON_LOCAL_HTML_PATH!!"$(MASON_LOCAL_HTML_PATH)"g;\
+	s"!!MASON_SESSION_PATH!!"$(MASON_SESSION_PATH)"g;\
+	s"!!MASON_DATA_PATH!!"$(MASON_DATA_PATH)"g;\
+	s"!!RT_LOG_PATH!!"$(RT_LOG_PATH)"g;\
+	s"!!RT_VERSION!!"$(RT_VERSION)"g
+	' $(DESTDIR)/$(RT_CONFIG)
 
 
 commit:


More information about the Rt-devel mailing list