www/weblint error message

Adam Weinberger adamw at adamw.org
Sat Jul 20 21:35:36 UTC 2019


On Sat, Jul 20, 2019 at 3:19 PM Sid <sid at bsdmail.com> wrote:
>
> Thanks,
>
> Here's the line:
>               &whine($., 'expected-attribute', $id) unless defined %args;
>
> After removing "defined" or "unless defined %args", this is the error message when running weblint:
>               Can't locate newgetopt.pl in @INC (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.28 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.28/mach /usr/local/lib/perl5/5.28) at /usr/local/bin/weblint line 510.
>
> Adding "SITECUSTOMIZE" to the perl5.28 (make config) configuration option didn't make a difference. www/weblint's file(s) will have to be updated.

The port is an absolute mess. Not the least of its problems is the
fact that it's a perl script that doesn't depend on perl. newgetopt.pl
hasn't been distributed with perl for more than 7 years. It also uses
find.pl which also hasn't been included in many years. Upstream for it
has disappeared, and it should really just be removed.

# Adam


> > Saturday, July 20, 2019 at 3:35 PM:
> >
> > On Sat, Jul 20, 2019 at 1:35 PM:
> > >
> > > On trying to run www/weblint, I got this error message:
> > >
> > >  Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at /usr/local/bin/weblint line 846.
> > >
> > > It's worked on a previous compile. I'm not sure if this is a bug or if I need to configure something. Thank you.
> >
> > Perl no longer supports defined(%hash). Instead of
> >   if defined(%hash)
> > it should be
> >   if (%hash)
> >
> > # Adam
> >
> >
> > --
> > Adam Weinberger
> > adamw at adamw.org
> > https://www.adamw.org



-- 
Adam Weinberger
adamw at adamw.org
https://www.adamw.org


More information about the freebsd-ports mailing list