Opened 21 years ago

Closed 21 years ago

Last modified 19 years ago

#338 closed defect (fixed)

need ability to reference existing variables in .env

Reported by: ranger@… Owned by: kvv@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

Ran into a problem where a user trying to build KDE couldn't because they hadn't put /usr/X11R6/bin in their path.

As a workaround, I tried setting path in configure.env and build.env, but it won't let me. Either "$PATH" as a bareword gets seen as a tcl variable, or if I escape it tcl does some weird quoting thing with curly braces that messes everything up royally. (see URL)

What is the proper way to modify that kind of thing in a portfile?

Change History (2)

comment:1 Changed 21 years ago by ranger@…

op_sys: LinuxAll

whups, wrong OS

comment:2 Changed 21 years ago by ranger@…

Resolution: fixed
Status: newclosed

figured this one out, I was about to do it like this:

set env(PATH) "/usr/X11R6/bin:$env(PATH):${prefix}/bin"

Note: See TracTickets for help on using tickets.