ports/55638: [PATCH] www/rt2 marked broken

Simon Barner barner at in.tum.de
Thu Aug 21 00:00:28 UTC 2003


The following reply was made to PR ports/55638; it has been noted by GNATS.

From: Simon Barner <barner at in.tum.de>
To: freebsd-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/55638: [PATCH] www/rt2 marked broken
Date: Thu, 21 Aug 2003 01:55:56 +0200

 Here is a modification to that patch. It passes $PERL to the second
 level invocation of make instead of hard coding PERL=/usr/bin/perl in
 the port's Makefile. IMO this is a cleaner solution, since $PERL might
 be something else.
 
 To unbreak the port, apply the following patch (but do not delete the
 first hunk of patch-Makefile as the originator suggested).
 
 --- Makefile.orig	Thu Aug 21 01:46:13 2003
 +++ Makefile	Wed Aug 20 23:08:22 2003
 @@ -41,8 +41,6 @@
  		${SITE_PERL}/CGI/Cookie.pm:${PORTSDIR}/www/p5-CGI.pm \
  		${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
  
 -BROKEN=         "Does not build"
 -
  WRKSRC=		${WRKDIR}/rt-${RT_VERSION}
  RT_VERSION=	${PORTVERSION:C/\./-/g}
  DB_TYPE?=	mysql
 @@ -135,16 +133,16 @@
  .for _NAME in RT_PATH DB_DBA_PASSWORD DB_HOST DB_RT_PASS DB_TYPE
  	@${REINPLACE_CMD} "s!%%${_NAME}%%!${${_NAME}}!g" ${WRKSRC}/Makefile
  .endfor
 -	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile testdeps
 -	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile fixdeps
 +	@cd ${WRKSRC} && ${MAKE} PERL=${PERL} -f ${WRKSRC}/Makefile testdeps
 +	@cd ${WRKSRC} && ${MAKE} PERL=${PERL} -f ${WRKSRC}/Makefile fixdeps
  
  do-install:
  	@${MKDIR} /var/log/rt2
  .if defined(INSTALL_NEW)
 -	- at cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile dropdb
 -	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile install
 +	- at cd ${WRKSRC} && ${MAKE} PERL=${PERL} -f ${WRKSRC}/Makefile dropdb
 +	@cd ${WRKSRC} && ${MAKE} PERL=${PERL} -f ${WRKSRC}/Makefile install
  .else
 -	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile upgrade
 +	@cd ${WRKSRC} && ${MAKE} PERL=${PERL} -f ${WRKSRC}/Makefile upgrade
  .endif
  	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/rt2/README
  	@${CHOWN} -R www /var/log/rt2



More information about the freebsd-ports-bugs mailing list