Opened 2 weeks ago

Closed 2 weeks ago

#71249 closed defect (fixed)

php83 @8.3.12+universal: sh: sapi/cli/php: No such file or directory

Reported by: jonaskohl (Jonas Kohl) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: Cc:
Port: php83

Description

When trying to install/upgrade php83, the installation fails with the following error:

:debug:build system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php83/work/php-8.3.12: sapi/cli/php -n -v
:info:build sh: sapi/cli/php: No such file or directory
:info:build Command failed: sapi/cli/php -n -v
:info:build Exit code: 127
:error:build Failed to build php83: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "$post $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php83/main.log for details.

Cleaning the port with sudo port clean php83 did not help and resulted in the same error again.

Attachments (1)

main.log (1.9 MB) - added by jonaskohl (Jonas Kohl) 2 weeks ago.

Download all attachments as: .zip

Change History (4)

Changed 2 weeks ago by jonaskohl (Jonas Kohl)

Attachment: main.log added

comment:1 Changed 2 weeks ago by reneeotten (Renee Otten)

Owner: set to ryandesign
Status: newassigned
Summary: Installation failes: "sh: sapi/cli/php: No such file or directory"php83: "sh: sapi/cli/php: No such file or directory"

comment:2 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Status: assignedaccepted
Summary: php83: "sh: sapi/cli/php: No such file or directory"php83 @8.3.12+universal: sh: sapi/cli/php: No such file or directory

Oh. This is a sanity check I recently added to the port to ensure that the php binary that got compiled actually works. But I forgot to consider the differences in layout when the +universal variant is used.

comment:3 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In b7fdc5a716bd1ba037f57fbc469b6fd753cf3e97/macports-ports (master):

php: Sanity check in post-destroot not post-build

Fixes build with universal variant.

Closes: #71249

Note: See TracTickets for help on using tickets.