From: Greg Ercolano <erco@(email surpressed)>
Subject: [OSX Admin] 10.9.2 Mavericks: perl ctime.pl missing
   Date: Thu, 06 Mar 2014 15:32:16 -0500
Msg# 2376
View Complete Thread (2 articles) | All Threads
Last Next
	Just noticed this issue with a customer:

$ perl -e 'require "ctime.pl"; print "Hello\n";'
Can't locate ctime.pl in @INC (@INC contains: /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at -e line 1.

	Looks like Apple may have left out ctime.pl in their version of perl
	that comes with Mavericks.

	This might be specific to the 10.9.2 update; I no longer have a version
	of Mavericks that hasn't been updated to test.

	While I don't think any of the default Rush submit scripts
	(in either Rush 102 or Rush 103) use ctime.pl, never the less
	it might be an issue for customized scripts where ctime.pl is added.

	In rush 103, the default mountcheck script (disabled by default)
	does use ctime.pl, so if you migrate to Mavericks and use a modified
	version of the default mountcheck script, you might want to make
	the following changes to avoid its use of ctime.pl until the issue is resolved:

		1) Comment out or remove this line:

require "ctime.pl";

		2) Change this line:

    my $date = ctime(time()); chomp($date);

		   .. to instead read:

    my $date = `date`; chomp($date);

	That's it.

	Perhaps there's an easy way to fix the OS version of perl too.
	I've reported this issue on the apple discussions forum here;
	awaiting feedback: https://discussions.apple.com/thread/5969985

	..if nothing comes up there, I'll report it as a bug to Apple.


   From: Greg Ercolano <erco@(email surpressed)>
Subject: Re: [OSX Admin] 10.9.2 Mavericks: perl ctime.pl missing
   Date: Thu, 06 Mar 2014 16:28:29 -0500
Msg# 2377
View Complete Thread (2 articles) | All Threads
Last Next
On 03/06/14 12:32, Greg Ercolano wrote:
[posted to rush.general]

	Just noticed this issue with a customer:

$ perl -e 'require "ctime.pl"; print "Hello\n";'
Can't locate ctime.pl in @INC (@INC contains: /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at -e line 1.

    Apparently this is a change in perl, not an apple problem.

    Seems in Perl 5.14, ctime.pl and a bunch of other perl4 style files have been dropped unceremoniously.

    The comments in the file have apparently been warning about this since 5.12


;# ctime.pl is a simple Perl emulation for the well known ctime(3C) function.
#
# This library is no longer being maintained, and is included for backward
# compatibility with Perl 4 programs which may require it.
# This legacy library is deprecated and will be removed in a future
# release of perl.


    And on this page, confirmation that it was removed in 5.14:
    http://search.cpan.org/~rjbs/perl-5.16.0/pod/perldelta.pod#Removed_Modules_and_P ragmata

    ..which says:



Several old perl4-style libraries which have been deprecated with 5.14 are now removed:
abbrev.pl assert.pl bigfloat.pl bigint.pl bigrat.pl cacheout.pl
complete.pl ctime.pl dotsh.pl exceptions.pl fastcwd.pl flush.pl
getcwd.pl getopt.pl getopts.pl hostname.pl importenv.pl
lib/find{,depth}.pl look.pl newgetopt.pl open2.pl open3.pl
pwd.pl shellwords.pl stat.pl tainted.pl termcap.pl timelocal.pl

    ..ctime.pl being part of that list. Great, that sucks.

    The comments recommend using POSIX::ctime.

     So instead of doing the old style:

require "ctime.pl";

    ..you would instead use:

use POSIX;

    ..which will cause any call to ctime() to resolve correctly.

--
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/

Tel: (Tel# suppressed)ext.23
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)