Bug 52973

Summary: ports/www/apache2 install failure
Product: Ports & Packages Reporter: Morten Rodal <morten>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

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!