Bug 255136 - devel/pecl-swoole missing json header file when compiling for php 7.4
Summary: devel/pecl-swoole missing json header file when compiling for php 7.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Vanilla I. Shu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-16 23:28 UTC by Dave Hayes
Modified: 2021-04-17 07:51 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hayes 2021-04-16 23:28:02 UTC
The php 8.0 flavor of this port builds fine. The php 7.4 fails with:

--- ext-src/php_swoole.lo ---
/wrkdirs/usr/ports/devel/pecl-swoole/work-php74/swoole-4.6.5/ext-src/php_swoole.cc:28:10: fatal error: 'ext/json/php_json.h' file not found
#include "ext/json/php_json.h"
         ^~~~~~~~~~~~~~~~~~~~~

I have included the JSON extension in php 7.4 ... so this is a mystery to me.
Comment 1 Vanilla I. Shu freebsd_committer freebsd_triage 2021-04-17 07:50:07 UTC
Fixed, thanks.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-04-17 07:51:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=72e8f9198ef42de16f2dc3fa71f73e7376164146

commit 72e8f9198ef42de16f2dc3fa71f73e7376164146
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2021-04-17 07:46:28 +0000
Commit:     Vanilla I. Shu <vanilla@FreeBSD.org>
CommitDate: 2021-04-17 07:50:47 +0000

    devel/pecl-swoole: Add json to build dependency.

    PR: 255136
    Reported by: dave@jetcafe.org

 devel/pecl-swoole/Makefile | 1 +
 1 file changed, 1 insertion(+)