Opened 18 years ago
Closed 18 years ago
#9948 closed defect (fixed)
extra_env doesn't work when more than one variable is given
Reported by: | mklein-de (Michael Klein) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.2 |
Keywords: | Cc: | ||
Port: |
Description
From my ports.conf:
# Extra environment variables to keep. Any variables listed here are added # to the list of variables that are not removed from the environment used # while processing ports # extra_env KEEP_THIS THIS_TOO extra_env CFLAGS CXXFLAGS
If more than one variable name is given, the extra_env option doesn't get used because the regexp below (from darwinports.tcl lines ~226) doesn't match because of the blank character between the two names:
foreach option $bootstrap_options {
if {[regexp "$option\[ \t\]+(\[A-Za-z0-9_:,\./-\]+$)" $line match val] == 1} {
set darwinports::$option $val global darwinports::$option
}
}
Change History (1)
comment:1 Changed 18 years ago by pguyot (Paul Guyot)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed. Thanks for the report.