[Bug 237722] lang/php73: No PCRE2 JIT support on amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 3 08:16:04 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237722

            Bug ID: 237722
           Summary: lang/php73: No PCRE2 JIT support on  amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz at freebsd.org
          Reporter: jon at herrskogen.se
             Flags: maintainer-feedback?(tz at freebsd.org)
          Assignee: tz at freebsd.org

Hi,

When compiling this package using this port on a amd64/x86_64 machine, no JIT
support will be compiled for PCRE2.

> checking for JIT support in PCRE2... no

PCRE2 JIT is supported on amd64/x86_64 and this not being compiled can cause a
(sometimes huge) performance decrease in certain PHP scripts relying on regex
matching.

In the Makefile the following line is specified:

GNU_CONFIGURE=  yes

This option will append this to the configure arguments.

--build=${CONFIGURE_TARGET}

Where CONFIGURE_TARGET defaults to ${ARCH}-portbld-${OPSYS:tl}${OSREL}, and
$ARCH in our case is "amd64".

Specifying --build to the PHP configure script will override PHP:s
"config.guess" which otherwise will try to find out which machine it's building
for. If "config.guess" HAD run, it whould have discovered "amd64" but then
translated it to "x86_64" before returning it. Now instead, because of the
--build is stating the target architecture, the configure script have the value
"amd64".

Later in the script, when deciding if it should compile with
HAVE_PCRE_JIT_SUPPORT, it runs the following check.

19706         case $host_cpu in
19707         arm*|i3456786|x86_64|mips*|powerpc*|sparc)

The check will fail as $host_cpu is "amd64" which it doesn't think is a
supported architecture and no JIT support will be compiled into the binary.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list