From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 29 06:30:29 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23A0916A4CE for ; Tue, 29 Jun 2004 06:30:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F6EA43D45 for ; Tue, 29 Jun 2004 06:30:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i5T6UNIf010795 for ; Tue, 29 Jun 2004 06:30:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5T6UNMM010750; Tue, 29 Jun 2004 06:30:23 GMT (envelope-from gnats) Resent-Date: Tue, 29 Jun 2004 06:30:23 GMT Resent-Message-Id: <200406290630.i5T6UNMM010750@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, parv@pair.com Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7005116A4CE; Tue, 29 Jun 2004 06:22:14 +0000 (GMT) Received: from mta3.adelphia.net (mta3.adelphia.net [68.168.78.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id E086343D55; Tue, 29 Jun 2004 06:22:13 +0000 (GMT) (envelope-from parv@chvlva.adelphia.net) Received: from default.chvlva.adelphia.net ([69.160.73.175]) by mta13.adelphia.netESMTP <20040629061846.WCFM14365.mta13.adelphia.net@default.chvlva.adelphia.net>; Tue, 29 Jun 2004 02:18:46 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 9338F5876; Tue, 29 Jun 2004 02:20:11 -0400 (EDT) Message-Id: <20040629062011.9338F5876@default.chvlva.adelphia.net> Date: Tue, 29 Jun 2004 02:20:11 -0400 (EDT) From: parv@pair.com To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: perl@FreeBSD.org Subject: ports/68468: PATCH - www/p5-Template-Toolkit: post-patch broken wrt $LOCALBASE is not always /usr/local X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 06:30:29 -0000 >Number: 68468 >Category: ports >Synopsis: PATCH - www/p5-Template-Toolkit: post-patch broken wrt $LOCALBASE is not always /usr/local >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 29 06:30:22 GMT 2004 >Closed-Date: >Last-Modified: >Originator: parv >Release: FreeBSD 4.9-RELEASE-p9 i386 >Organization: >Environment: System: FreeBSD moo.holy.cow 4.9-RELEASE-p9 FreeBSD 4.9-RELEASE-p9 #3: Wed May 26 21:35:51 EDT 2004 root@moo.holy.cow:/misc/src-4.9/sys/BOVINE i386 1. www/p5-Template-Toolkit version: # $FreeBSD: ports/www/p5-Template-Toolkit/Makefile,v 1.13 2004/02/05 # 15:32:08 mat Exp $ 2. /usr/local is symlinked to /misc/local 3. In /etc/make.conf ... USA_RESIDENT= YES DOC_LANG= en_US.ISO8859-1 LOCALBASE= /misc/local X11BASE= /misc/local/X11 PORTSDIR= /misc/ports WRKDIRPREFIX= /work/ports CPUTYPE=i686 COPTFLAGS= -O -pipe CFLAGS= -O -pipe -g CXXFLAGS+= -fmemoize-lookups -fsave-memoized NO_I4B= true # do not build isdn4bsd package NO_SENDMAIL= true # do not build sendmail and related programs NOINFO= true # do not make or install info files NOPERL= true # do not build perl. Disables OpenSSL optimizations NO_PERL= true # do not build perl. Disables OpenSSL optimizations NO_PERL_WRAPPER= yup NOPROFILE= true # Avoid compiling profiled libraries COMPAT1X= yes COMPAT20= yes COMPAT21= yes COMPAT22= yes COMPAT3X= yes BOOT_COMCONSOLE_SPEED= 115200 XFREE86_VERSION= 4 RUBY_VER=1.8 PERL_VER=5.8.4 PERL_VERSION=5.8.4 PERL_ARCH=mach >Description: "post-patch" editing of ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} is broken/insufficient when ${LOCALBASE} is not '/usr/local' (the hard coded value in Template::Toolkit's Makefile.PL). Since the post-patch is useless on this system, port installs the optional (as described by TT) files under /usr/local/tt2 instead of /misc/local/share/tt2, breaking later the packaging of the port. Below is some abbreviated log, w/ BATCH option given for package make-ing, ... ... You can chose any directory for the installation of the additional Template Toolkit components. The proposed default assumes a Unix flavour to your operating system (suggestions for suitable defaults for other platforms welcome). Installation directory [/usr/local/tt2] /usr/local/tt2 ... Installing /misc/local/lib/perl5/5.8.4/man/man3/Template::Tutorial::Datafile.3 Installing /misc/local/lib/perl5/5.8.4/man/man3/Template::Plugin::XML::Simple.3 Installing /misc/local/lib/perl5/5.8.4/man/man3/Template::Plugin::GD::Graph::lines.3 Installing /misc/local/bin/tpage Installing /misc/local/bin/ttree Writing /misc/local/lib/perl5/site_perl/5.8.4/mach/auto/Template/.packlist Installing optional components into /usr/local/tt2 + docs + examples + images + templates Weaving the rainbow: blowing colour into Splash! GIFs src: /usr/local/tt2/images/splash/black dest: /usr/local/tt2/images/splash/* ... Source: /usr/local/tt2/docs/src Destination: /usr/local/tt2/docs/html Include Path: [ /usr/local/tt2/docs/style/splash, /usr/local/tt2/docs/lib, /usr/local/tt2/templates ] Ignore: [ ] Copy: [ ] Accept: [ ] Suffix: [ ] + index.html + Manual/Plugins.html + Manual/Filters.html + Manual/Internals.html ... + Release/INSTALL.html + FAQ/FAQ.html + FAQ/index.html ttree 2.75 (Template Toolkit version 2.13) Source: /usr/local/tt2/examples/src Destination: /usr/local/tt2/examples/html Include Path: [ /usr/local/tt2/examples/lib, /usr/local/tt2/templates ] Ignore: [ ] Copy: [ ] Accept: [ ] Suffix: [ ] + splash/button.html + splash/tab.html + splash/menu.html ... ===> Registering installation for p5-Template-Toolkit-2.13 ===> Building package for p5-Template-Toolkit-2.13 tar: share/tt2/docs/README: Cannot stat: No such file or directory tar: share/tt2/docs/html/FAQ/FAQ.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/FAQ/index.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Library/HTML.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Library/PostScript.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Library/Splash.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Library/index.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Manual/Config.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Manual/Credits.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Manual/Directives.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Manual/Filters.html: Cannot stat: No such file or directory tar: share/tt2/docs/html/Manual/Internals.html: Cannot stat: No such file or directory ... tar: share/tt2/templates/splash/tabset: Cannot stat: No such file or directory tar: share/tt2/templates/splash/text: Cannot stat: No such file or directory tar: share/tt2/templates/splash/ttdotorg: Cannot stat: No such file or directory tar: share/tt2/templates/splash/ttpower: Cannot stat: No such file or directory tar: Error exit delayed from previous errors pkg_create: make_dist: tar command failed with code 512 Creating package /misc/ports/www/p5-Template-Toolkit/p5-Template-Toolkit-2.13.tgz Registering depends: p5-AppConfig-1.56 p5-File-Temp-0.12_1 perl-5.8.4. Creating gzip'd tar ball in '/misc/ports/www/p5-Template-Toolkit/p5-Template-Toolkit-2.13.tgz' *** Error code 1 Stop in /misc/ports/www/p5-Template-Toolkit. >How-To-Repeat: Set $LOCALBASE to something else other than /usr/local, not set $PREFIX, then try to make package. >Fix: As ${LOCALBASE} cannot be always guaranteed to be '/usr/local' -- the hard coded value in Makefile.PL of TT -- change it to the real value. No problem occurred w/ deinstall-ing, reinstall-ing, and packag-ing after the follwing patch for www/p5-Template-Toolkit/Makefile ... --- Makefile.old Tue Jun 29 02:10:06 2004 +++ Makefile Tue Jun 29 02:03:08 2004 @@ -119,7 +119,7 @@ Template::View.3 post-patch: - ${PERL} -pi -e 's,${LOCALBASE}/tt2,${PREFIX}/share/tt2,g' \ + ${PERL} -pi -e 's,/usr/local/tt2,${PREFIX}/share/tt2,g' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .if ${PERL_LEVEL} >= 500800 >Release-Note: >Audit-Trail: >Unformatted: