ports/60005: mkhtmlindex has unsatisfied Perl dependency

Nik Clayton nik at crf-consulting.co.uk
Sun Dec 7 12:40:26 UTC 2003


>Number:         60005
>Category:       ports
>Synopsis:       mkhtmlindex has unsatisfied Perl dependency
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 07 04:40:23 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nik Clayton
>Release:        FreeBSD 5.2-BETA i386
>Organization:
>Environment:
System: FreeBSD catkin.nothing-going-on.org 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Dec 5 16:21:20 GMT 2003 nik at catkin.nothing-going-on.org:/local/2/usr/src/sys/compile/CATKIN i386

5.2BETA, installed from the mini-iso image, with a custom install that
did not include Perl.

>Description:

devel/imake-4 has a USE_PERL5 dependency, causing it to install Perl if
it's not already present.  It includes a script, mkhtmlindex, which
is written in Perl, and starts:

    #!/usr/bin/perl

This will fail if the following conditions are met:

  1.  The system was installed without selecting Perl in sysinstall.

  2.  Perl was subsequently installed from ports/packages (perhaps
      automatically by devel/imake-4 to satisfy its dependencies).

  3.  "use.perl port" hasn't been run.

In this case, /usr/bin/perl doesn't exist, and mkhtmlindex fails.

A lot of X11 ports then fail to completely install.  However, enough if
the installation completes that subsequent dependency checks often succeed,
so there's no attempt to reinstall them.  This leaves the package database
in an inconsistent state.

>How-To-Repeat:

Do steps 1, 2, and 3 above.

>Fix:

Patch mkhtmlindex so the shebang line is either:

    #!/usr/local/bin/perl

or

    #!/usr/bin/env perl

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



More information about the freebsd-ports-bugs mailing list