Bug 184164 - lang/perl5.16 is not uninstalled cleanly after /etc/periodic/weekly/320.whatis is run.
Summary: lang/perl5.16 is not uninstalled cleanly after /etc/periodic/weekly/320.whati...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-perl (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-22 09:10 UTC by Tatsuki Makino
Modified: 2013-11-30 17:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tatsuki Makino 2013-11-22 09:10:00 UTC
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.

Fix: 

fix pkg-plist or do_cleanup_manpath() in files/use.perl.
remove whatis database file in there.
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
Comment 1 Edwin Groothuis freebsd_committer 2013-11-22 09:10:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Mathieu Arnold freebsd_committer 2013-11-30 17:28:52 UTC
State Changed
From-To: open->closed

Taken care of in r335309.
Comment 3 dfilter service freebsd_committer 2013-11-30 17:28:59 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"