From nobody@FreeBSD.org  Fri Nov 22 09:02:32 2013
Return-Path: <nobody@FreeBSD.org>
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 8109721A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Nov 2013 09:02:32 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 700AC2381
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Nov 2013 09:02:32 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAM92W4V096058
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Nov 2013 09:02:32 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAM92WGs096056;
	Fri, 22 Nov 2013 09:02:32 GMT
	(envelope-from nobody)
Message-Id: <201311220902.rAM92WGs096056@oldred.freebsd.org>
Date: Fri, 22 Nov 2013 09:02:32 GMT
From: Tatsuki Makino <tatsuki_makino@hotmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/perl5.16 is not uninstalled cleanly after /etc/periodic/weekly/320.whatis is run.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184164
>Category:       ports
>Synopsis:       lang/perl5.16 is not uninstalled cleanly after /etc/periodic/weekly/320.whatis is run.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    perl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 22 09:10:00 UTC 2013
>Closed-Date:    Sat Nov 30 17:29:08 UTC 2013
>Last-Modified:  Sat Nov 30 17:30:01 UTC 2013
>Originator:     Tatsuki Makino
>Release:        FreeBSD 9.2-STABLE i386
>Organization:
>Environment:
FreeBSD T0.test 9.2-STABLE FreeBSD 9.2-STABLE #0 r258360M: Wed Nov 20 13:42:36 UTC 2013     root@T0.test:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The Perl adds OPTIONAL_MANPATH to /etc/manpath.config.
/etc/periodic/weekly/320.whatis makes whatis database files under manpath of the Perl.
It interferes with the deletion of the directory.

Perhaps, lang/perl5.18, lang/perl5.14 and lang/perl5.12 have same problem.
>How-To-Repeat:
portmaster lang/perl5.12
periodic weekly # or wait Saturday's 4:15am
portmaster -o lang/perl5.16 lang/perl5.12
find /usr/local/lib/perl5/ -name whatis

This is a example of result:
% find /usr/local/lib/perl5/ -name 'whatis'
/usr/local/lib/perl5/5.12.4/perl/man/whatis
/usr/local/lib/perl5/5.12.4/man/whatis
/usr/local/lib/perl5/5.16/perl/man/whatis
/usr/local/lib/perl5/5.16/man/whatis
>Fix:
fix pkg-plist or do_cleanup_manpath() in files/use.perl.
remove whatis database file in there.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Nov 22 09:10:07 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184164 
State-Changed-From-To: open->closed 
State-Changed-By: mat 
State-Changed-When: Sat Nov 30 17:28:52 UTC 2013 
State-Changed-Why:  
Taken care of in r335309. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184164: commit references a PR
Date: Sat, 30 Nov 2013 17:28:59 +0000 (UTC)

 Author: mat
 Date: Sat Nov 30 17:28:44 2013
 New Revision: 335309
 URL: http://svnweb.freebsd.org/changeset/ports/335309
 
 Log:
   Take care of whatis database.
   - remove on deinstall
   - create on install
   
   PR:		ports/184164
   Submitted by:	Tatsuki Makino
 
 Modified:
   head/lang/perl5.12/Makefile
   head/lang/perl5.12/pkg-plist
   head/lang/perl5.14/Makefile
   head/lang/perl5.14/pkg-plist
   head/lang/perl5.16/Makefile
   head/lang/perl5.16/pkg-plist
   head/lang/perl5.18/Makefile
   head/lang/perl5.18/pkg-plist
 
 Modified: head/lang/perl5.12/Makefile
 ==============================================================================
 --- head/lang/perl5.12/Makefile	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.12/Makefile	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	perl
  PORTVERSION=	${PERL_VERSION}
 -PORTREVISION=	2
 +PORTREVISION=	3
  CATEGORIES=	lang devel perl5
  MASTER_SITES=	CPAN \
  		${MASTER_SITE_LOCAL:S/$/:local/} \
 
 Modified: head/lang/perl5.12/pkg-plist
 ==============================================================================
 --- head/lang/perl5.12/pkg-plist	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.12/pkg-plist	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3181,6 +3181,8 @@ man/man1/xsubpp.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/App
  @dirrm lib/perl5/%%PERL_VER%%/pod
  @dirrm lib/perl5/%%PERL_VER%%/perl/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/perl/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl
  @dirrm lib/perl5/%%PERL_VER%%/overload
 @@ -3190,6 +3192,8 @@ man/man1/xsubpp.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/autodie/exception
  @dirrm lib/perl5/%%PERL_VER%%/autodie
  @dirrmtry lib/perl5/%%PERL_VER%%/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%
  @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
 
 Modified: head/lang/perl5.14/Makefile
 ==============================================================================
 --- head/lang/perl5.14/Makefile	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.14/Makefile	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	perl
  PORTVERSION=	${PERL_VERSION}
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	lang devel perl5
  MASTER_SITES=	CPAN \
  		${MASTER_SITE_LOCAL:S/$/:local/} \
 
 Modified: head/lang/perl5.14/pkg-plist
 ==============================================================================
 --- head/lang/perl5.14/pkg-plist	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.14/pkg-plist	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3331,6 +3331,8 @@ man/man1/xsubpp.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/App
  @dirrm lib/perl5/%%PERL_VER%%/pod
  @dirrm lib/perl5/%%PERL_VER%%/perl/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/perl/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl
  @dirrm lib/perl5/%%PERL_VER%%/overload
 @@ -3340,6 +3342,8 @@ man/man1/xsubpp.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/autodie/exception
  @dirrm lib/perl5/%%PERL_VER%%/autodie
  @dirrmtry lib/perl5/%%PERL_VER%%/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%
  @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
 
 Modified: head/lang/perl5.16/Makefile
 ==============================================================================
 --- head/lang/perl5.16/Makefile	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.16/Makefile	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	perl
  PORTVERSION=	${PERL_VERSION}
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	lang devel perl5
  MASTER_SITES=	CPAN \
  		${MASTER_SITE_LOCAL:S/$/:local/} \
 
 Modified: head/lang/perl5.16/pkg-plist
 ==============================================================================
 --- head/lang/perl5.16/pkg-plist	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.16/pkg-plist	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3234,6 +3234,8 @@ man/man1/zipdetails.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/App
  @dirrm lib/perl5/%%PERL_VER%%/pod
  @dirrm lib/perl5/%%PERL_VER%%/perl/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/perl/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl
  @dirrm lib/perl5/%%PERL_VER%%/overload
 @@ -3243,6 +3245,8 @@ man/man1/zipdetails.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/autodie/exception
  @dirrm lib/perl5/%%PERL_VER%%/autodie
  @dirrmtry lib/perl5/%%PERL_VER%%/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%
  @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
 
 Modified: head/lang/perl5.18/Makefile
 ==============================================================================
 --- head/lang/perl5.18/Makefile	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.18/Makefile	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	perl
  PORTVERSION=	${PERL_VERSION}
 -PORTREVISION=	3
 +PORTREVISION=	4
  CATEGORIES=	lang devel perl5
  MASTER_SITES=	CPAN \
  		${MASTER_SITE_LOCAL:S/$/:local/} \
 
 Modified: head/lang/perl5.18/pkg-plist
 ==============================================================================
 --- head/lang/perl5.18/pkg-plist	Sat Nov 30 17:26:30 2013	(r335308)
 +++ head/lang/perl5.18/pkg-plist	Sat Nov 30 17:28:44 2013	(r335309)
 @@ -3256,6 +3256,8 @@ man/man1/zipdetails.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/App
  @dirrm lib/perl5/%%PERL_VER%%/pod
  @dirrm lib/perl5/%%PERL_VER%%/perl/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/perl/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl/man
  @dirrm lib/perl5/%%PERL_VER%%/perl
  @dirrm lib/perl5/%%PERL_VER%%/overload
 @@ -3265,6 +3267,8 @@ man/man1/zipdetails.1.gz
  @dirrm lib/perl5/%%PERL_VER%%/autodie/exception
  @dirrm lib/perl5/%%PERL_VER%%/autodie
  @dirrmtry lib/perl5/%%PERL_VER%%/man/man3
 +@unexec /bin/rm -f %D/lib/perl5/%%PERL_VER%%/man/whatis
 +@exec /usr/bin/makewhatis %D/lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%/man
  @dirrmtry lib/perl5/%%PERL_VER%%
  @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/sys
 _______________________________________________
 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"
 
>Unformatted:
