From nobody@FreeBSD.org  Thu Oct  5 19:56:01 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BDAB316A4EC
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Oct 2006 19:56:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8EA1843DE0
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Oct 2006 19:55:36 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k95JtZdn066960
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 5 Oct 2006 19:55:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k95JtZwB066959;
	Thu, 5 Oct 2006 19:55:35 GMT
	(envelope-from nobody)
Message-Id: <200610051955.k95JtZwB066959@www.freebsd.org>
Date: Thu, 5 Oct 2006 19:55:35 GMT
From: jan grant <jan.grant@bristol.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/stunnel pkg-deinstall doesn't work in batch mode
X-Send-Pr-Version: www-2.3

>Number:         104028
>Category:       ports
>Synopsis:       security/stunnel pkg-deinstall doesn't work in batch mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    roam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 05 20:00:40 GMT 2006
>Closed-Date:    Sun Oct 08 18:28:45 GMT 2006
>Last-Modified:  Sun Oct 08 18:28:45 GMT 2006
>Originator:     jan grant
>Release:        6-stable
>Organization:
university of bristol
>Environment:
FreeBSD tribble.ilrt.bris.ac.uk 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Oct  4 01:31:17 BST 2006 jan@bris.ac.uk:/external/usr.obj/usr/src/sys/JAN  i386
(essentially GENERIC)
>Description:
/usr/ports/security/stunnel/pkg-deinstall says:

[[[
    if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
        read -p "${question} [${default}]? " answer
    fi
]]]

Neither environment variable is typically set. In particular, BATCH=yes may be a _make_ variable (and my pkgtools.conf has this:)

[[[
  MAKE_ARGS = {
       '*/*' => 'BATCH=yes',
]]]

which works with every other port. I don't know if there is actually an environment variable you might make use of, but this behaviour could do with documenting.
>How-To-Repeat:
portupgrade -f security/stunnel
>Fix:
Well, a workaround is to supply an appropriate environment as well as the makevar in pkgtools.conf; don't know if this could be engineered to occur in a makefile; I document this in case anyone else bumps into it.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->roam 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Oct 5 20:01:06 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/104028: commit references a PR
Date: Sun,  8 Oct 2006 18:07:41 +0000 (UTC)

 roam        2006-10-08 18:06:54 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/stunnel     Makefile 
   Removed files:
     security/stunnel     pkg-deinstall 
   Log:
   Fix the problem with unattended deinstallation by not even attempting
   to remove the stunnel user and group at all - just kill the package
   deinstall script.
   
   PR:             104028
   Reported by:    jan grant <jan.grant@bristol.ac.uk>,
                   Stephen Hurd <shurd@sasktel.net> (in private mail a while ago),
                   and, I think, many others
   
   Revision  Changes    Path
   1.75      +1 -0      ports/security/stunnel/Makefile
   1.3       +0 -63     ports/security/stunnel/pkg-deinstall (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Sun Oct 8 18:27:05 UTC 2006 
State-Changed-Why:  
I just committed a change to the stunnel port - now it will no longer 
try to remove the stunnel user and group, ever. 
Thanks for reporting this - actually long-standing - problem! 

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