Date: Wed, 20 Aug 2003 17:00:27 -0700 (PDT) From: Simon Barner <barner@in.tum.de> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/55638: [PATCH] www/rt2 marked broken Message-ID: <200308210000.h7L00RdN019975@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/55638; it has been noted by GNATS. From: Simon Barner <barner@in.tum.de> To: freebsd-gnats-submit@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) - -@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile dropdb - @cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile install + -@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308210000.h7L00RdN019975>