[MacPorts] #67898: Issue with PHP 8.2 Arm version of GD

MacPorts noreply at macports.org
Wed Aug 9 01:13:54 UTC 2023


#67898: Issue with PHP 8.2 Arm version of GD
-------------------------+------------------------
  Reporter:  thomashohn  |      Owner:  ryandesign
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  php82-gd    |
-------------------------+------------------------

Comment (by ryandesign):

 Replying to [comment:11 thomashohn]:
 > The seems to be a difference depending on of the -t trace option is
 applied or not.
 > If applied the extraction fails, if not applied the configuration fails.

 [ticket:66358 MacPorts trace mode is broken in macOS 13 and later], so
 don't use it until that's fixed.

 > No signs of config.log files

 It would be at
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php82-gd/work/php-8.2.8/ext/gd/config.log
 if configuration had failed. However, looking at your main.log, I see that
 configuration did not even start because the failure happened in a pre-
 configure block:

 {{{
 :debug:configure Executing proc-pre-org.macports.configure-configure-0
 :error:configure Failed to configure php82-gd: child process exited
 abnormally
 :debug:configure Error code: NONE
 :debug:configure Backtrace: child process exited abnormally
 :debug:configure     while executing
 :debug:configure "$pre $targetname"
 }}}

 `proc-pre-org.macports.configure-configure-0` means the first pre-
 configure block, and for the php82-gd port, that should be this block from
 the php Portfile:

 {{{#!tcl
     pre-configure {
         set php_version [exec ${php.config} --version 2>/dev/null]
         if {${version} ne ${php_version}} {
             ui_error "${subport} @${version} requires ${php} @${version}
 but you have ${php} @${php_version}."
             return -code error "incompatible ${php} installation"
         }
     }
 }}}

 The only child process being run within that block is `php-config82
 --version`. What happens if you run that command manually?

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


More information about the macports-tickets mailing list