Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2009 16:50:02 GMT
From:      Steven Kreuzer <skreuzer@exit2shell.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/130425: www/rt38 - Database couldn't be initialized
Message-ID:  <200901221650.n0MGo2T1028914@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/130425; it has been noted by GNATS.

From: Steven Kreuzer <skreuzer@exit2shell.com>
To: bug-followup@FreeBSD.org,
 prehor@gmail.com
Cc:  
Subject: Re: ports/130425: www/rt38 - Database couldn't be initialized
Date: Thu, 22 Jan 2009 11:19:57 -0500

 --Apple-Mail-426-930927078
 Content-Type: text/plain;
 	charset=US-ASCII;
 	format=flowed;
 	delsp=yes
 Content-Transfer-Encoding: 7bit
 
 Attached patch should resolve this issue.
 
 In addition, it will also fix config.layout so that /usr/local is not  
 hardcoded for PREFIX
 
 Thanks
 
 --
 Steven Kreuzer
 http://www.exit2shell.com/~skreuzer
 
 
 --Apple-Mail-426-930927078
 Content-Disposition: attachment;
 	filename=rt-setup-database-patch.txt
 Content-Type: text/plain;
 	x-unix-mode=0644;
 	name="rt-setup-database-patch.txt"
 Content-Transfer-Encoding: 7bit
 
 Index: Makefile
 ===================================================================
 RCS file: /usr/share/cvs/freebsd/ports/www/rt38/Makefile,v
 retrieving revision 1.7
 diff -u -r1.7 Makefile
 --- Makefile	22 Jan 2009 00:31:15 -0000	1.7
 +++ Makefile	21 Jan 2009 16:08:08 -0000
 @@ -15,7 +15,7 @@
  
  PORTNAME=	rt
  PORTVERSION=	3.8.1
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	www
  MASTER_SITES=	http://download.bestpractical.com/pub/rt/release/ \
  		ftp://ftp.eu.uu.net/pub/unix/ticketing/rt/release/
 @@ -30,9 +30,9 @@
  CONFLICTS=	rt-2* rt-3.0* rt-3.2* rt-3.4* rt-3.6*
  LATEST_LINK=	rt38
  
 -OPTIONS=	MYSQL 	"Enable MySQL backend" 		on \
 -		APACHE2		"Enable Apache2 server"		on \
 -		MODPERL2	"Enable mod_perl2 support"	on \
 +OPTIONS=	MYSQL 		"Enable MySQL backend" 		on  \
 +		APACHE2		"Enable Apache2 server"		on  \
 +		MODPERL2	"Enable mod_perl2 support"	on  \
  		POSTGRESQL 	"Enable Postgresql backend"	off \
  		ORACLE		"Enable Oracle backend"		off \
  		SQLITE		"Enable SQLite backend" 	off \
 @@ -194,6 +194,7 @@
  
  post-patch:
  	@${RM} -f ${WRKSRC}/lib/RT.pm.in.orig
 +	@${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!g' ${WRKSRC}/config.layout
  	@${REINPLACE_CMD} -e 's!%%SITE_PERL%%!${SITE_PERL}!g' ${WRKSRC}/config.layout
  
  pre-install:
 Index: pkg-plist
 ===================================================================
 RCS file: /usr/share/cvs/freebsd/ports/www/rt38/pkg-plist,v
 retrieving revision 1.3
 diff -u -r1.3 pkg-plist
 --- pkg-plist	22 Jan 2009 00:31:15 -0000	1.3
 +++ pkg-plist	21 Jan 2009 16:06:27 -0000
 @@ -1051,6 +1051,7 @@
  share/rt38/html/dhandler
  share/rt38/html/index.html
  share/rt38/html/l
 +@dirrm share/rt38/etc
  @dirrm share/rt38/plugins
  @dirrm share/rt38/po
  @dirrm share/rt38/html/Widgets/Form
 @@ -1183,6 +1184,7 @@
  @dirrm share/rt38/html/Admin/CustomFields
  @dirrm share/rt38/html/Admin
  @dirrm share/rt38/html
 +@dirrm share/rt38/lib
  @dirrm share/rt38
  %%PORTDOCS%%@dirrm %%DOCSDIR%%
  @dirrm %%SITE_PERL%%/RT/URI
 Index: files/patch-config.layout
 ===================================================================
 RCS file: /usr/share/cvs/freebsd/ports/www/rt38/files/patch-config.layout,v
 retrieving revision 1.2
 diff -u -r1.2 patch-config.layout
 --- files/patch-config.layout	22 Jan 2009 00:31:16 -0000	1.2
 +++ files/patch-config.layout	21 Jan 2009 15:40:24 -0000
 @@ -1,6 +1,13 @@
 ---- ./config.layout.orig	2008-08-18 11:13:57.000000000 -0400
 -+++ ./config.layout	2008-12-28 23:12:31.000000000 -0500
 -@@ -91,19 +91,20 @@
 +--- config.layout.orig	2008-08-18 11:13:57.000000000 -0400
 ++++ config.layout	2009-01-21 10:35:34.000000000 -0500
 +@@ -85,25 +85,26 @@
 + </Layout>
 + 
 + <Layout FreeBSD>
 +-  prefix:		/usr/local
 ++  prefix:		%%PREFIX%%	
 +   exec_prefix:		${prefix}
 +   bindir:		${exec_prefix}/bin
     sbindir:		${exec_prefix}/sbin
     sysconfdir:		${prefix}/etc+
     mandir:		${prefix}/man
 @@ -8,7 +15,7 @@
  +  libdir:	 	%%SITE_PERL%%	
     datadir:		${prefix}/share+
     htmldir:		${datadir}/html
 -+  sharedir:         ${prefix}/share+
 ++  sharedir:		${prefix}/share+
     manualdir:		${prefix}/share/doc+
     logfiledir:		/var/log
     localstatedir:	/var/run+
 @@ -20,10 +27,10 @@
  -  customlexdir:		${customdir}/local/po
  -  customlibdir:		${customdir}/local/lib
  +  customdir:		${prefix}
 -+  custometcdir:		${customdir}/etc+
 ++  custometcdir:		${datadir}/etc
  +  customhtmldir:	${customdir}/www+
 -+  customlexdir:		${sharedir}/po
 -+  customlibdir:	%%SITE_PERL%%
 ++  customlexdir:		${datadir}/po
 ++  customlibdir:		${datadir}/lib
   </Layout>
   
   <Layout Win32>
 
 --Apple-Mail-426-930927078
 Content-Type: text/plain;
 	charset=US-ASCII;
 	format=flowed
 Content-Transfer-Encoding: 7bit
 
 
 
 
 --Apple-Mail-426-930927078--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901221650.n0MGo2T1028914>