Ticket #32782: patch-buildfromsource-r81540.diff

File patch-buildfromsource-r81540.diff, 1.7 KB (added by mackyle@…, 13 years ago)

Patch against r81540 described in comment:5

  • macports.tcl

    old new  
    4242    namespace export bootstrap_options user_options portinterp_options open_mports ui_priorities port_phases
    4343    variable bootstrap_options "\
    4444        portdbpath libpath binpath auto_path extra_env sources_conf prefix portdbformat \
    45         portarchivetype portautoclean \
     45        portarchivetype portautoclean buildfromsource \
    4646        porttrace portverbose keeplogs destroot_umask variants_conf rsync_server rsync_options \
    4747        rsync_dir startupitem_type place_worksymlink xcodeversion xcodebuildcmd \
    4848        mp_remote_url mp_remote_submit_url configureccache ccache_dir ccache_size configuredistcc configurepipe buildnicevalue buildmakejobs \
     
    438438        macports::ui_init $priority
    439439    }
    440440
    441     global auto_path env tcl_platform
     441    global auto_path env tcl_platform global_options
    442442    global macports::autoconf::macports_conf_path
    443443    global macports::macports_user_dir
    444444    global macports::bootstrap_options
     
    691691        && ![info exists macports::global_options(ports_source_only)]
    692692        && [info exists macports::buildfromsource]} {
    693693        if {${macports::buildfromsource} == "never"} {
    694             set macports::global_options(ports_binary_only) yes
     694            set global_options(ports_binary_only) yes
    695695        } elseif {${macports::buildfromsource} == "always"} {
    696             set macports::global_options(ports_source_only) yes
     696            set global_options(ports_source_only) yes
    697697        } elseif {${macports::buildfromsource} != "ifneeded"} {
    698698            ui_warn "'buildfromsource' set to unknown value '${macports::buildfromsource}', using 'ifneeded' instead"
    699699        }