Bug 52973 - ports/www/apache2 install failure
Summary: ports/www/apache2 install failure
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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-05 20:10 UTC by Morten Rodal
Modified: 2003-06-06 02:02 UTC (History)
0 users

See Also:


Attachments
file.diff (350 bytes, patch)
2003-06-05 20:10 UTC, Morten Rodal
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Rodal 2003-06-05 20:10:07 UTC
The ``make install'' fails with:

  # make install
  ===>  Installing for apache-2.0.45
  ===>   apache-2.0.45 depends on shared library: expat.4 - found
  PKG_PREFIX=/usr/local /bin/sh pkg-install apache-2.0.45 PRE-INSTALL
  pkg-install: Can't open pkg-install: No such file or directory
  *** Error code 2

  Stop in /usr/ports/www/apache2.
  #

Adding a ``pwd'' just after the ``pre-install:'' line in the Makefile
shows that the script is being run from the wrong directory.


NOTE: This is still not fixed in 2.0.46!
NOTE: This also applies to a few other ports that also do not use the
      ${PKGINSTALL} variable instead of referencing pkg-install.

Fix: Change the Makefile to use ${PKGINSTALL} instead of ``pkg-install.''
A suggestive patch is included below.

How-To-Repeat: 
Set WRKDIRPREFIX in /etc/make.conf and try to ``make install'' on
www/apache2 port.  I used WRKDIRPREFIX="/usr/obj" on my machines.
I do not know if the WRKDIRPREFIX is the root of the cause, but that
is the only thing seperating my machines from a standard FreeBSD
environment.
Comment 1 Hye-Shik Chang freebsd_committer freebsd_triage 2003-06-06 02:01:37 UTC
State Changed
From-To: open->closed

Fixed. Thank you for the reporting!