[MacPorts] #56637: cmake and gobject_introspection portgroups together cause invalid CC archflags

MacPorts noreply at macports.org
Fri Jun 15 11:28:11 UTC 2018


#56637: cmake and gobject_introspection portgroups together cause invalid CC
archflags
---------------------+--------------------
  Reporter:  drkp    |      Owner:  jmroot
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:  fixed   |   Keywords:
      Port:          |
---------------------+--------------------

Comment (by RJVB):

 Except that's not what the PG does (I think). Instead it does

 {{{
     set cmake._archflag_vars {cc_archflags cxx_archflags ld_archflags
 objc_archflags objcxx_archflags \
         universal_cflags universal_cxxflags universal_ldflags
 universal_objcflags universal_objcxxflags}
 # ...
     post-configure {
         # Although cmake wants us not to set -arch flags ourselves when we
 run cmake,
         # ports might have need to access these variables at other times.
         foreach archflag_var ${cmake._archflag_vars} {
             global cmake._saved_${archflag_var}
             configure.${archflag_var} [set cmake._saved_${archflag_var}]
         }
 }}}

 after saving the flags in the pre-configure with

 {{{
         foreach archflag_var ${cmake._archflag_vars} {
             global cmake._saved_${archflag_var}
             set cmake._saved_${archflag_var} [option
 configure.${archflag_var}]
         }
 }}}

 I think I didn't write the saving part is, only the restore. Is there
 another way either could be done which avoids the overquoting?

-- 
Ticket URL: <https://trac.macports.org/ticket/56637#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list