[MacPorts] #68874: cmake portgroup: can't read "cmake._archflag_vars": no such variable (was: cmake portgroup: Error: Failed to configure tea: can't read "cmake._archflag_vars": no such variable)

MacPorts noreply at macports.org
Mon Dec 11 03:45:37 UTC 2023


#68874: cmake portgroup: can't read "cmake._archflag_vars": no such variable
-------------------------+--------------------
  Reporter:  ryandesign  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  cmake       |
-------------------------+--------------------

Old description:

> I tried to include the cmake 1.1 portgroup in a variant. This failed at
> configure time:
>
> {{{
> DEBUG: Executing proc-pre-org.macports.configure-configure-0
> DEBUG: CPPFLAGS="-I/opt/local/include" inserted into CFLAGS="-Os -DNDEBUG
> -I/opt/local/include" CXXFLAGS="-Os -DNDEBUG -I/opt/local/include
> -stdlib=libc++"
>         (using ccache)
> DEBUG: Executing proc-pre-org.macports.configure-configure-1
> Error: Failed to configure tea: can't read "cmake._archflag_vars": no
> such variable
> }}}
>
> I could work around the problem by using:
>
> {{{#!tcl
>     global cmake._archflag_vars
> }}}
>
> ''before'' including the cmake 1.1 portgroup.

New description:

 I tried to include the cmake 1.1 portgroup in a variant. This failed at
 configure time:

 {{{
 DEBUG: Executing proc-pre-org.macports.configure-configure-0
 DEBUG: CPPFLAGS="-I/opt/local/include" inserted into CFLAGS="-Os -DNDEBUG
 -I/opt/local/include" CXXFLAGS="-Os -DNDEBUG -I/opt/local/include
 -stdlib=libc++"
         (using ccache)
 DEBUG: Executing proc-pre-org.macports.configure-configure-1
 Error: Failed to configure tea: can't read "cmake._archflag_vars": no such
 variable
 }}}

 I could work around the problem by using:

 {{{#!tcl
 global cmake._archflag_vars
 }}}

 ''before'' including the cmake 1.1 portgroup.

--

Comment (by ryandesign):

 Similar problem with the qmake5 portgroup in #68875.

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


More information about the macports-tickets mailing list