[MacPorts] #32782: Feature: add source only option to macports.conf
MacPorts
noreply at macports.org
Wed Feb 1 18:19:18 PST 2012
#32782: Feature: add source only option to macports.conf
------------------------------+---------------------------------------------
Reporter: bm55b@… | Owner: macports-tickets@…
Type: enhancement | Status: closed
Priority: Low | Milestone: MacPorts Future
Component: base | Version: 2.0.3
Resolution: fixed | Keywords:
Port: |
------------------------------+---------------------------------------------
Comment(by mackyle@…):
Whoops, accidentally left out one of the changes:
3. Add global_options to the global line
Revised patch against r81540 macports.tcl is
{{{
--- macports.tcl 2012-02-01 23:56:01.000000000 +0000
+++ macports.tcl.new 2012-02-02 02:10:14.000000000 +0000
@@ -42,7 +42,7 @@
namespace export bootstrap_options user_options portinterp_options
open_mports ui_priorities port_phases
variable bootstrap_options "\
portdbpath libpath binpath auto_path extra_env sources_conf
prefix portdbformat \
- portarchivetype portautoclean \
+ portarchivetype portautoclean buildfromsource \
porttrace portverbose keeplogs destroot_umask variants_conf
rsync_server rsync_options \
rsync_dir startupitem_type place_worksymlink xcodeversion
xcodebuildcmd \
mp_remote_url mp_remote_submit_url configureccache ccache_dir
ccache_size configuredistcc configurepipe buildnicevalue buildmakejobs \
@@ -438,7 +438,7 @@
macports::ui_init $priority
}
- global auto_path env tcl_platform
+ global auto_path env tcl_platform global_options
global macports::autoconf::macports_conf_path
global macports::macports_user_dir
global macports::bootstrap_options
@@ -691,9 +691,9 @@
&& ![info exists macports::global_options(ports_source_only)]
&& [info exists macports::buildfromsource]} {
if {${macports::buildfromsource} == "never"} {
- set macports::global_options(ports_binary_only) yes
+ set global_options(ports_binary_only) yes
} elseif {${macports::buildfromsource} == "always"} {
- set macports::global_options(ports_source_only) yes
+ set global_options(ports_source_only) yes
} elseif {${macports::buildfromsource} != "ifneeded"} {
ui_warn "'buildfromsource' set to unknown value
'${macports::buildfromsource}', using 'ifneeded' instead"
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/32782#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list