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.
State Changed From-To: open->closed Fixed. Thank you for the reporting!