Bug 88567 - math/cln: build fails with an older version installed
Summary: math/cln: build fails with an older version installed
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: 2005-11-06 18:10 UTC by Kay Lehmann
Modified: 2005-11-12 11:16 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 Kay Lehmann 2005-11-06 18:10:28 UTC
math/cln does not compile when an older version is installed (portupgrade is
failing). This is because it looks first in /usr/local/include before using
it's own include in $WRKDIR. So it finds necessary headerfiles which were
installed by the older version. Since some definitions have changed the
compilation stops.

Fix: 

I think best would be to include a comment in UPDATING. math/cln has to deinstalled BEFORE building.
How-To-Repeat: install version 1.1.9 and try to compile the new version 1.1.10
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-11-09 10:33:30 UTC
I doubt that this is a useful addition to UPDATING. For example it's not  
terribly important to read when updating from packages.
Couldn't you simply test for the interfering file in pre-build:-target and  
give an error-messaging?

Volker
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-11 18:43:44 UTC
This is usually solved by patching the Makefiles to first look for local
headers before going to /usr/local/include. Can you send us patches
implementing this?

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

Like 'Do Notte Buye Betamacks.' That was a prediction for 1972.
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-11 18:53:23 UTC
State Changed
From-To: open->feedback

Waiting for patch to come in
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-12 11:16:00 UTC
State Changed
From-To: feedback->closed

Committed, thanks!