Bug 60005 - mkhtmlindex has unsatisfied Perl dependency
Summary: mkhtmlindex has unsatisfied Perl dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Eric Anholt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-07 12:40 UTC by Nik Clayton
Modified: 2003-12-12 22:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nik Clayton 2003-12-07 12:40:23 UTC
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.

Fix: 

Patch mkhtmlindex so the shebang line is either:

    #!/usr/local/bin/perl

or

    #!/usr/bin/env perl
How-To-Repeat: 
Do steps 1, 2, and 3 above.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2003-12-07 17:49:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->anholt

Over to maintainer (anholt: is this another one that should 
be pointed over to x11@?)
Comment 2 Eric Anholt freebsd_committer freebsd_triage 2003-12-12 22:55:44 UTC
State Changed
From-To: open->closed

Committed, thanks!