Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2012 20:38:53 GMT
From:      Titus von Boxberg <titus@v9g.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/165213: devel/cmake: Reinplacement of paths in Modules is bad
Message-ID:  <201202162038.q1GKcrtU022599@red.freebsd.org>
Resent-Message-ID: <201202162040.q1GKe9LK059758@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202162038.q1GKcrtU022599>