Package: libcolor-library-perl
Version: 0.021-2
Severity: normal
Tags: patch

The debian patch to this library disables the parse_rgb_color() subroutine:

  jeff@norden:~$ perl -d -e1
  ...
    DB<1> use Color::Library::Color
    DB<2> @rgb= Color::Library::Color::parse_rgb_color('#2a547e')
  Undefined subroutine &Color::Library::Color::parse_rgb_color called at (eval 
10)[/usr/share/perl/5.22/perl5db.pl:737] line 2.

The @rgb array should have been set to (42,84,126).  The problem is that the
=back added to Color.pm is misplaced.  In fact, the code for the parse
subroutine shows up in the man page!

Attached is a corrected version of pod-fixes.patch.  It also moves the first
=back in Color.pm to a more reasonable position.  Alternatively, you could
just delete the patch and ignore the mostly-harmless warnings at the end of
the man pages.

Thanks!
  -Jeff Norden, j...@math.tntech.edu
   Dept of Math, Tenn Tech Univ, Cookeville TN 38505

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-64-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libcolor-library-perl depends on:
ii  libclass-accessor-perl          0.34-1
ii  libclass-data-inheritable-perl  0.08-2
ii  libmodule-pluggable-perl        5.2-1
ii  perl                            5.22.1-9

libcolor-library-perl recommends no packages.

libcolor-library-perl suggests no packages.

-- no debconf information
Description: various POD fixes
Origin: vendor
Bug: https://rt.cpan.org/Ticket/Display.html?id=86023
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=86023
Author: gregor herrmann <gre...@debian.org>
Last-Update: xxxx-xx-xx

--- a/lib/Color/Library/Color.pm	2011-12-07 15:57:58.000000000 -0600
+++ b/lib/Color/Library/Color.pm	2017-03-02 00:36:30.869667455 -0600
@@ -134,6 +134,8 @@
 
 You probably don't want/need to call this yourself
 
+=back
+
 =cut
 
 # FUTURE Note that $value may be a numeric value, a hex value, or a 3 element r-g-b array
@@ -168,8 +170,6 @@
     return $self;
 }
 
-=back
-
 =head2 FUNCTIONS
 
 =over 4
@@ -225,6 +225,8 @@
 
 Makes a best effort to convert a hex or numeric color value to its rgb representation
 
+=back
+
 =cut
 
 # Partly taken from Imager/Color.pm
--- a/lib/Color/Library/Dictionary.pm
+++ b/lib/Color/Library/Dictionary.pm
@@ -227,6 +227,8 @@
 
 Returns the description of $dictionary, if any
 
+=back
+
 =cut
 
 sub description {
--- a/lib/Color/Library/Dictionary/NBS_ISCC/H.pm
+++ b/lib/Color/Library/Dictionary/NBS_ISCC/H.pm
@@ -11,6 +11,8 @@
 
 =pod
 
+=encoding latin1
+
 =head1 NAME
 
 Color::Library::Dictionary::NBS_ISCC::H - (NBS/ISCC H) Horticultural Colour Charts
--- a/lib/Color/Library/Dictionary/NBS_ISCC/M.pm
+++ b/lib/Color/Library/Dictionary/NBS_ISCC/M.pm
@@ -11,6 +11,8 @@
 
 =pod
 
+=encoding latin1
+
 =head1 NAME
 
 Color::Library::Dictionary::NBS_ISCC::M - (NBS/ISCC M) Dictionary of Color

Reply via email to