From thierry@pompo.net  Sun May  4 17:17:57 2014
Return-Path: <thierry@pompo.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 8893BB18;
	Sun,  4 May 2014 17:17:57 +0000 (UTC)
Received: from mx1a.lautre.net (mx1a.lautre.net [80.67.160.71])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "*.lautre.net", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 49F641C84;
	Sun,  4 May 2014 17:17:56 +0000 (UTC)
Received: from graf.pompo.net (graf.pompo.net [78.225.128.39])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: thierry@pompo.net)
	by mx1a.lautre.net (Postfix) with ESMTPSA id 1ED3840E59;
	Sun,  4 May 2014 19:17:54 +0200 (CEST)
Received: by graf.pompo.net (Postfix, from userid 1001)
	id A467F71E43A; Sun,  4 May 2014 19:17:53 +0200 (CEST)
Message-Id: <20140504171753.A467F71E43A@graf.pompo.net>
Date: Sun,  4 May 2014 19:17:53 +0200 (CEST)
From: Thierry Thomas <thierry@FreeBSD.org>
Reply-To: Thierry Thomas <thierry@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: tcltk@FreeBSD.org
Subject: lang/tcl-wrapper: should install the sample configuration file by default
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         189359
>Category:       ports
>Synopsis:       lang/tcl-wrapper: should install the sample configuration file by default
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tcltk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 04 17:20:00 UTC 2014
>Closed-Date:    Mon May 05 14:03:42 UTC 2014
>Last-Modified:  Mon May 05 14:03:42 UTC 2014
>Originator:     Thierry Thomas
>Release:        FreeBSD 10.0-STABLE amd64
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 10.0-STABLE FreeBSD 10.0-STABLE #1 r265158: Wed Apr 30 22:21:59 CEST 2014 thierry@graf.pompo.net:/usr/obj/usr/src/sys/GRAF140430 amd64


	
>Description:
	tclsh is not usable out of the box: it failw with the message

Configuration file not found: /usr/local/etc/tclsh.conf
Please see the sample configuration file for details:
/usr/local/etc/tclsh.conf.sample

	Then, it cannot be used by other ports as a dependency.

>How-To-Repeat:
	Just run tclsh.

>Fix:
	Please install the sample configuration file as the default conf
	if the user has not already one.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->tcltk 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 4 17:20:03 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189359 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/189359: commit references a PR
Date: Mon,  5 May 2014 13:57:44 +0000 (UTC)

 Author: gahr
 Date: Mon May  5 13:57:35 2014
 New Revision: 353003
 URL: http://svnweb.freebsd.org/changeset/ports/353003
 QAT: https://qat.redports.org/buildarchive/r353003/
 
 Log:
   - Use the sample configuration file if the actual one is not available.This
   makes the wrapper usable right after make install.
   
   PR:		189359
   Submitted by:	Thierry Thomas <thierry@FreeBSD.org>
 
 Modified:
   head/lang/tcl-wrapper/Makefile
   head/lang/tcl-wrapper/files/wrapper.in
 
 Modified: head/lang/tcl-wrapper/Makefile
 ==============================================================================
 --- head/lang/tcl-wrapper/Makefile	Mon May  5 13:48:25 2014	(r353002)
 +++ head/lang/tcl-wrapper/Makefile	Mon May  5 13:57:35 2014	(r353003)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	wrapper
  PORTVERSION=	1.1
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	lang tcl
  MASTER_SITES=	# empty
  PKGNAMEPREFIX=	${TX_PORT}-
 
 Modified: head/lang/tcl-wrapper/files/wrapper.in
 ==============================================================================
 --- head/lang/tcl-wrapper/files/wrapper.in	Mon May  5 13:48:25 2014	(r353002)
 +++ head/lang/tcl-wrapper/files/wrapper.in	Mon May  5 13:57:35 2014	(r353003)
 @@ -6,6 +6,10 @@
  %%TX_SHELL_U%%=
  %%TX_SHELL_U%%_CONF=%%TX_CONF_FULL%%
  
 +if [ ! -f "${%%TX_SHELL_U%%_CONF}" ]; then
 +    %%TX_SHELL_U%%_CONF=${%%TX_SHELL_U%%_CONF}.sample
 +fi
 +
  if [ -f "${%%TX_SHELL_U%%_CONF}" ]; then
    . ${%%TX_SHELL_U%%_CONF}
    if [ -n "${%%TX_SHELL_U%%}" ]; then
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: gahr 
State-Changed-When: Mon May 5 14:03:42 UTC 2014 
State-Changed-Why:  
Fixed in a slightly different way. Now, if tclsh.conf doesn't exist, 
tclsh.conf.sample gets sourced instead. Thanks for the report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189359 
>Unformatted:
