Bug 265500 - lang/php82 Building with some options off fails on staging
Summary: lang/php82 Building with some options off fails on staging
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-29 13:17 UTC by Alexander Shikov
Modified: 2022-08-04 20:00 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Shikov 2022-07-29 13:17:15 UTC
Hello!

Makefile post-install target does not take into account possible off options.
For example, building with CGI option off fails:

/usr/ports/lang/php82>make
[...]
===>  Staging for php82-8.2.0.a3
===>   Generating temporary packing list
Installing PHP SAPI module:       embed
Installing PHP CLI binary:        /usr/ports/lang/php82/work/stage/usr/local/bin/
Installing PHP CLI man page:      /usr/ports/lang/php82/work/stage/usr/local/man/man1/
Installing phpdbg binary:         /usr/ports/lang/php82/work/stage/usr/local/bin/
Installing phpdbg man page:       /usr/ports/lang/php82/work/stage/usr/local/man/man1/
Installing build environment:     /usr/ports/lang/php82/work/stage/usr/local/lib/php/build/
Installing header files:          /usr/ports/lang/php82/work/stage/usr/local/include/php/
Installing helper programs:       /usr/ports/lang/php82/work/stage/usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/ports/lang/php82/work/stage/usr/local/man/man1/
  page: phpize.1
  page: php-config.1
/usr/bin/strip /usr/ports/lang/php82/work/stage//usr/local/bin/php-cgi
strip: open /usr/ports/lang/php82/work/stage//usr/local/bin/php-cgi failed: No such file or directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/php82
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/php82
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-07-29 13:31:32 UTC
I am aware about this problem will be fixed in ext beta release.
Comment 2 Markus Kohlmeyer 2022-08-03 21:01:41 UTC
lang/php81 is also affected
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-08-04 19:44:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5da33bb9b44197233147df3ac9ffdc943ac3662b

commit 5da33bb9b44197233147df3ac9ffdc943ac3662b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-08-04 19:39:43 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-08-04 19:43:34 +0000

    lang/php82: Update version 8.2.0a3=>8.2.0b2

    - Fix building with some DEFAULT OPTIONS off [1]
    PR:             265500 [1]
    Reported by:    a.shikov@itcons.net.ua [1]
    Sponsored by:   Bounce Experts

 Mk/Uses/php.mk                                     |  6 +++---
 lang/php82/Makefile                                | 23 ++++++++++++++++------
 lang/php82/distinfo                                |  6 +++---
 lang/php82/files/patch-build_Makefile.global       |  4 ++--
 lang/php82/files/patch-configure.ac                | 10 +++++-----
 lang/php82/files/patch-ext_hash_xxhash_xxhash.h    |  4 ++--
 lang/php82/files/patch-ext_mysqli_mysqli__nonapi.c |  6 +++---
 lang/php82/files/patch-ext_mysqli_mysqli__prop.c   |  6 +++---
 ...h-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h | 21 ++++++++++++++------
 lang/php82/pkg-plist                               |  1 +
 10 files changed, 54 insertions(+), 33 deletions(-)
Comment 4 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-08-04 20:00:11 UTC
php81 will be fixed while updating in the coming days.