ports/165213: devel/cmake: Reinplacement of paths in Modules is bad

Titus von Boxberg titus at v9g.de
Thu Feb 16 20:40:10 UTC 2012


>Number:         165213
>Category:       ports
>Synopsis:       devel/cmake: Reinplacement of paths in Modules is bad
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 16 20:40:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Titus von Boxberg
>Release:        9.0
>Organization:
>Environment:
FreeBSD 9.0-RELEASE
>Description:
Reinplacing paths in cmake's Modules directory is a bad idea:
Especially if using cmake for cross development projects
(which is one of cmake's intended use cases)
it's annoying that standard paths are gone and Find* do not work as expected.

In my case, I need /usr/X11R6 which has been reinplaced by /usr/local.

I don't see why leaving X11R6 in the paths should break something
since that path is present on FreeBSD as well.

>How-To-Repeat:

>Fix:
I do not know the syntax possible with ${REINPLACE} yet.
For a sed invoked from the command line I'd use e.g.

s,(/usr/X11R6)([^<space><tab>]*),\1\2 ${LOCALBASE}\2,g

to append LOCALBASE instead of replacing X11R6.


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list