pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/25089: htmllint does NOT work well



>Number:         25089
>Category:       pkg
>Synopsis:       htmllint does NOT work well
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 07 14:15:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kazu Yamamoto
>Release:        NetBSD 2.0C
>Organization:
IIJ
>Environment:
NetBSD caster.iij.ad.jp 2.0C NetBSD 2.0C (GENERIC_LAPTOP) #0: Tue Apr  6 
22:34:55 JST 2004  
kazu%caster.iij.ad.jp@localhost:/usr/src/sys/arch/i386/compile/GENERIC_LAPTOP 
i386
>Description:
The recent "htmllint" assumes to be called in its directory. The
current pkgsrc of htmlint installs "htmllint" to "/usr/pkg/bin" while
its library to "/usr/pkg/share/httpd/htdocs/htmllint".

So, executing "htmllint" with a Japanese HTML page does NOT work well.

>How-To-Repeat:
Execute htmllint with a Japanese HTML page.
>Fix:
(a) The original "htmllint" should be installed in
"/usr/pkg/share/httpd/htdocs/htmllint" and its contents should be:

----
#!/usr/pkg/bin/perl

# Another HTML-lint ###########################################

use File::Basename;
push @INC => [&fileparse($0)]->[1];
#use lib ('/usr/pkg/share/httpd/htdocs/htmllint');

my $add_options; # = '-noscore -pedantic etc...';

if ($add_options) {
  require 'shellwords.pl';
  unshift @ARGV => &shellwords($add_options);
}

require 'htmllint.pm';
exit(&htmllint::HTMLlint(@ARGV));
----

(b) "htmllint" in "/usr/pkg/bin" should be:

----
#!/bin/sh

/usr/pkg/share/httpd/htdocs/htmllint/htmllint $* 
----

>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index