FreeBSD Bugzilla – Attachment 147251 Details for
Bug 193591
[patch] graphics/imageindex: fails to run due to using outdated perl syntax
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for imageindex-1.1_5 , still working for -1.1_6
imageindex-repair.patch (text/plain), 2.85 KB, created by
Christoph Sold
on 2014-09-12 16:36:34 UTC
(
hide
)
Description:
patch for imageindex-1.1_5 , still working for -1.1_6
Filename:
MIME Type:
Creator:
Christoph Sold
Created:
2014-09-12 16:36:34 UTC
Size:
2.85 KB
patch
obsolete
>--- imageindex.orig 2007-04-04 12:55:51.000000000 -0700 >+++ imageindex 2014-03-03 20:18:57.000000000 -0800 >@@ -325,7 +325,8 @@ > use File::Copy; > use English; > use Carp; >-require 'flush.pl'; >+#require 'flush.pl'; >+use IO::Handle; > > # to shut up -w > use vars qw($opt_recurse); >@@ -523,7 +524,7 @@ > > # Extract info > print "Extracting image info"; >-flush (STDOUT); >+STDOUT->flush(); > > foreach my $file (@files) { > >@@ -1708,7 +1709,7 @@ > # at the user so that the video regexp might be adjusted > if ($retval == -1) { > print "\nwarning: $pathname identified by extension as video file but mplayer doesn't recognize it\n"; >- flush (STDOUT); >+ STDOUT->flush(); > } > } else { > &extract_image_info ($filename); >@@ -1731,15 +1732,15 @@ > my ($arate, $anch, $length, $is_video); > > print "."; >- flush (STDOUT); >+ STDOUT->flush(); > > if ($mplayer_prog eq '' || ($do_video_files == 0)) { > if (($do_video_files != 0) && $mplayer_prog eq '') { > print "\nwarning: Trying to process video files but cannot find mplayer in \$path!\n"; >- flush (STDOUT); >+ STDOUT->flush(); > } > print "\nSkipping $pathname"; >- flush (STDOUT); >+ STDOUT->flush(); > return 0; > } else { > $object_counter++; >@@ -1893,14 +1894,14 @@ > my $i; > > print "."; >- flush (STDOUT); >+ STDOUT->flush(); > > $retval = $image->Read($pathname); > > > if ($retval ne "") { > print "\nSkipping $pathname"; >- flush (STDOUT); >+ STDOUT->flush(); > return; > } else { > $object_counter++; >@@ -2298,7 +2299,7 @@ > if (defined($lastdate)) { > print "<META NAME=\"$enddatemetatag\" CONTENT=\"$lastdate\">\n"; > } >- if (!defined ($opt_includeall) && defined (@opt_exclude) && scalar (@opt_exclude)) { >+ if (!defined ($opt_includeall) && @opt_exclude && scalar (@opt_exclude)) { > my $tmp = join (',', @opt_exclude); > my $etmp; > >@@ -2311,7 +2312,7 @@ > } > printf ("<META NAME=\"$numimagesmetatag\" CONTENT=\"%d\">\n", $image_counter); > >- if (defined (@opt_skipmont) && scalar (@opt_skipmont)) { >+ if (@opt_skipmontv && scalar (@opt_skipmont)) { > my $tmp = join (',', @opt_skipmont); > printf ("<META NAME=\"$skipmetatag\" CONTENT=\"%s\">\n", $tmp); > } >@@ -2475,7 +2476,7 @@ > # then process. Check to see if any of the -skipmont options were given as > # strings of filenames concatenated with ',' characters. If so, support it. > # >- if (defined (@opt_skipmont)) { >+ if (@opt_skipmont) { > foreach (@opt_skipmont) { > (@tokens) = split (/,/, $_); > foreach $token (@tokens) { >@@ -2499,7 +2500,7 @@ > # then process. Check to see if any of the -exclude options were given as > # strings of filenames concatenated with ',' characters. If so, support it. > # >- if (defined (@opt_exclude)) { >+ if (@opt_exclude) { > # -includeall takes priority over -exclude on the commandline if they are > # used together (wierd, but ...) > #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193591
: 147251 |
148188