Ignore:
Timestamp:
Dec 12, 2015, 6:02:13 PM (3 years ago)
Author:
mcalhoun@…
Message:

python-1.0.tcl: give Portfiles the option of not modifying destroot.env (see #49948,#34562)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/python-1.0.tcl

    r143449 r143452  
    4343# python.default_version: which version will be installed if the user asks
    4444#   for py-foo rather than pyXY-foo
     45# python.consistent_destroot: set consistent environment values in build and destroot phases
    4546#
    4647# Note: setting these options requires name to be set beforehand
     
    6970default python.default_version {[python_get_default_version]}
    7071default python.version {[python_get_version]}
     72
     73# see #34562
     74options python.consistent_destroot
     75default python.consistent_destroot yes
    7176
    7277proc python_get_version {} {
     
    147152        }
    148153        pre-destroot {
    149             if {${python.add_archflags}} {
     154            if {${python.add_archflags} && ${python.consistent_destroot}} {
    150155                if {[variant_exists universal] && [variant_isset universal]} {
    151156                    destroot.env-append CFLAGS="${configure.universal_cflags}" \
     
    163168                }
    164169            }
    165             if {${python.set_compiler}} {
     170            if {${python.set_compiler} && ${python.consistent_destroot}} {
    166171                foreach var {cc objc cxx fc f77 f90} {
    167172                    if {[set configure.${var}] ne ""} {
Note: See TracChangeset for help on using the changeset viewer.