Bug 130899 - devel/subversion doesn't install with PREFIX != /usr/local
Summary: devel/subversion doesn't install with PREFIX != /usr/local
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: Lev A. Serebryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-22 22:40 UTC by mah
Modified: 2010-11-24 15:06 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 mah 2009-01-22 22:40:01 UTC
With PREFIX=/usr and APACHE_APR unselected, the dependency devel/apr gets installed properly, but Subversion it's self refuses to install. Instead, it complains about devel/apr being not installed properly. Likely, the same problem appears with any PREFIX other than the default one.

Reason is, the variable APR_APU_DIR gets set to /usr/local/bin instead of /usr/bin in Makefile.common.

Fix: 

One possible fix is to replace all occurences of ${LOCALBASE} with ${PREFIX} in Makefile and Makefile.common. While I can think of situations where this isn't sufficient, this fix worked well for me.
How-To-Repeat: cd /usr/ports/devel/apr && make deinstall
cd /usr/ports/devel/subversion && make PREFIX=/usr install
Comment 1 Philip M. Gollucci 2009-01-23 00:34:07 UTC
Markus Hitter wrote:
> With PREFIX=/usr and APACHE_APR unselected, the dependency devel/apr gets installed properly, but Subversion it's self refuses to install. Instead, it complains about devel/apr being not installed properly. Likely, the same problem appears with any PREFIX other than the default one.
> 
> Reason is, the variable APR_APU_DIR gets set to /usr/local/bin instead of /usr/bin in Makefile.common.
how can /usr ever be correct ? ports should never put stuff there.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2009-01-23 03:15:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lev

Fix synopsis and assign.
Comment 3 mah 2009-01-23 08:54:46 UTC
Am 23.01.2009 um 01:34 schrieb Philip M. Gollucci:

> how can /usr ever be correct ? ports should never put stuff there.

Ports supports this handy feature (see Handbook, chapter 4.5.2.1) and  
individual ports should act accordingly. 9 out of 10 ports already do.


MarKus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2010-11-24 15:02:09 UTC
State Changed
From-To: open->closed

Cannot reproduce, and more than 1 year without activity -> close