Ravenports generated: 03 Jul 2019 12:53
[ravenports.git] / bucket_8E / php72
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php72
4 VERSION=                7.2.20
5 KEYWORDS=               lang www php
6 VARIANTS=               standard
7 SDESC[standard]=        PHP Hypertext Preprocessor version 7.2
8 HOMEPAGE=               https://php.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            PHP/distributions
13 DISTFILE[1]=            php-7.2.20.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      CLI CGI FPM EMBED DEBUGGER
18 OPTIONS_STANDARD=       CLI CGI FPM EMBED DEBUGGER
19 OPTGROUP_RESTRICTED=    SAPI
20 OPTDESCR[SAPI]=         Server Application Programming Interface
21 OPTGROUP[SAPI]=         CLI CGI FPM DEBUGGER
22 OPT_ON[all]=            CLI CGI FPM EMBED DEBUGGER
23
24 BUILD_DEPENDS=          pcre:static:standard
25                         autoconf:single:standard
26 BUILDRUN_DEPENDS=       pcre:shared:standard
27 BR_DEPS[darwin]=        libiconv:static:standard
28
29 USES=                   cpe gmake
30 GNOME_COMPONENTS=       libxml2
31
32 DISTNAME=               php-7.2.20
33
34 CPE_PRODUCT=            php
35 FPC_EQUIVALENT=         lang/php72
36
37 MUST_CONFIGURE=         gnu
38 CONFIGURE_ARGS=         --with-layout=GNU
39                         --localstatedir=/var
40                         --with-config-file-scan-dir={{PREFIX}}/etc/php72
41                         --sysconfdir={{PREFIX}}/etc/php72
42                         --libdir={{PREFIX}}/lib/php72
43                         --datadir={{PREFIX}}/share/php72
44                         --disable-all
45                         --enable-libxml
46                         --enable-mysqlnd
47                         --enable-hash
48                         --enable-maintainer-zts
49                         --with-libxml-dir={{LOCALBASE}}
50                         --with-pcre-regex={{LOCALBASE}}
51                         --program-suffix=72
52 CONFIGURE_ENV=          ac_cv_decimal_fp_supported="no"
53                         lt_cv_path_SED="sed"
54
55 DESTDIRNAME=            INSTALL_ROOT
56
57 PLIST_SUB=              SUFFIX=72
58                         SOMAJOR=7
59 RC_SUBR=                php72-fpm:single
60 SUB_LIST=               SUFFIX=72
61
62 [CLI].DESCRIPTION=                      Enable Command Line Interface SAPI
63 [CLI].CONFIGURE_ARGS_OFF=               --disable-cli
64 [CLI].MAKEFILE_ON=                      PHP_SAPI+=cli
65
66 [FPM].DESCRIPTION=                      Enable FastCGI Process Manager SAPI
67 [FPM].CONFIGURE_ARGS_ON=                --enable-fpm
68                                         --with-fpm-user={{WWWOWN}}
69                                         --with-fpm-group={{WWWGRP}}
70 [FPM].MAKEFILE_ON=                      PHP_SAPI+=fpm
71
72 [DEBUGGER].DESCRIPTION=                 Enable interactive debugger SAPI module support
73 [DEBUGGER].CONFIGURE_ENABLE_BOTH=       phpdbg
74 [DEBUGGER].MAKEFILE_ON=                 PHP_SAPI+=phpdbg
75
76 [CGI].DESCRIPTION=                      Enable Common Gateway Interface SAPI
77 [CGI].CONFIGURE_ARGS_OFF=               --disable-cgi
78 [CGI].MAKEFILE_ON=                      PHP_SAPI+=cgi
79
80 [EMBED].DESCRIPTION=                    Build embedded SAPI library
81 [EMBED].CONFIGURE_ARGS_ON=              --enable-embed
82 [EMBED].MAKEFILE_ON=                    PHP_SAPI+=embed
83
84 post-install-CLI-ON:
85         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/php72
86
87 post-patch:
88         ${TOUCH} ${WRKSRC}/ext/php_config.h
89         ${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
90         ${REINPLACE_CMD} -e "/phpincludedir =/ s|/php|/php72|" \
91                 ${WRKSRC}/scripts/Makefile.frag
92         ${REINPLACE_CMD} -e "/includedir=/ s|php|php72|" \
93                 ${WRKSRC}/scripts/phpize.in
94         ${REINPLACE_CMD} -e "/include_dir=/ s|php|php72|" \
95                 -e "/^ldflags=/ s|@PHP|-L${PREFIX}/lib/php72 @PHP|" \
96                 ${WRKSRC}/scripts/php-config.in
97         ${REINPLACE_CMD} -e "s|darwin|darwin-disable|" \
98                 ${WRKSRC}/sapi/cgi/config9.m4 \
99                 ${WRKSRC}/sapi/cli/config.m4 \
100                 ${WRKSRC}/sapi/fpm/config.m4
101
102 post-install-DEBUGGER-ON:
103         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/phpdbg72
104
105 post-patch-FPM-ON:
106         ${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \
107                 ${WRKSRC}/sapi/fpm/php-fpm.conf.in
108
109 post-install:
110         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php72
111         ${RM} -r ${STAGEDIR}/var
112         ${INSTALL_DATA} ${WRKSRC}/php.ini-development \
113                 ${WRKSRC}/php.ini-production \
114                 ${WRKDIR}/php.conf ${STAGEDIR}${PREFIX}/etc/php72
115
116 post-build:
117         ${ECHO_CMD} "PHP_VER=72" > ${WRKDIR}/php.conf
118         ${ECHO_CMD} "PHP_VERSION=7.2.20" >> ${WRKDIR}/php.conf
119         ${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
120         ${ECHO_CMD} "PHP_EXT_INC=pcre spl" >> ${WRKDIR}/php.conf
121         ${SH} ${WRKSRC}/scripts/php-config --extension-dir | \
122                 ${SED} -ne 's,^${PREFIX}/lib/php72/,PHP_EXT_DIR=,p'\
123                 >> ${WRKDIR}/php.conf
124
125 post-install-EMBED-ON:
126         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libphp7.so
127         ${MV} ${STAGEDIR}${PREFIX}/lib/libphp7.so \
128                 ${STAGEDIR}${PREFIX}/lib/php72/
129
130 pre-configure:
131         # Work around issues with newer (>=2.64) autoconf
132         ${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 \
133                 > ${WRKSRC}/aclocal.m4
134         (cd ${CONFIGURE_WRKSRC} && ${LOCALBASE}/bin/autoconf-2.69)
135
136 post-install-CGI-ON:
137         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/php-cgi72
138
139 post-install-FPM-ON:
140         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/php-fpm72
141
142 [FILE:723:descriptions/desc.single]
143 PHP is a widely-used open source general-purpose scripting language
144 that is especially suited for web development and can be embedded
145 into HTML. It is modular, and object-oriented. Much of its syntax
146 is borrowed from C, Java and Perl with a couple of unique PHP-specific
147 features thrown in.  The language is designed to allow web developers
148 to write dynamically generated pages quickly.
149
150 This package provides PHP version 7.2.x.  New feature added over
151 version 7.1.x include:
152
153  * Convert numeric keys in object/array casts
154  * Counting of non-countable objects
155  * Object typehint
156  * HashContext as Object
157  * Argon2 in password hash
158  * Improve TLS constants to sane values
159  * Mcrypt extension removed
160  * New sodium extension
161
162
163 [FILE:96:distinfo]
164 eff09da83e235c2ba25c85deea1d4f663bd71d50fd51ad11e1acebe26d733494     12183712 php-7.2.20.tar.xz
165
166
167 [FILE:5481:manifests/plist.single]
168 %%CGI-ON%%bin/php-cgi%%SUFFIX%%
169 %%CGI-ON%%share/man/man1/php-cgi%%SUFFIX%%.1.gz
170 %%CLI-ON%%bin/php%%SUFFIX%%
171 %%CLI-ON%%include/php%%SUFFIX%%/sapi/cli/cli.h
172 %%CLI-ON%%share/man/man1/php%%SUFFIX%%.1.gz
173 %%DEBUGGER-ON%%bin/phpdbg%%SUFFIX%%
174 %%DEBUGGER-ON%%share/man/man1/phpdbg%%SUFFIX%%.1.gz
175 %%EMBED-ON%%include/php%%SUFFIX%%/sapi/embed/php_embed.h
176 %%EMBED-ON%%lib/php%%SUFFIX%%/libphp%%SOMAJOR%%.%%SHARED_OBJECT%%
177 %%FPM-ON%%@sample etc/php%%SUFFIX%%/php-fpm.conf.default etc/php%%SUFFIX%%/php-fpm.conf
178 %%FPM-ON%%@sample etc/php%%SUFFIX%%/php-fpm.d/www.conf.default etc/php%%SUFFIX%%/php-fpm.d/www.conf
179 %%FPM-ON%%sbin/php-fpm%%SUFFIX%%
180 %%FPM-ON%%share/man/man8/php-fpm%%SUFFIX%%.8.gz
181 %%FPM-ON%%share/php%%SUFFIX%%/fpm/status.html
182 bin/
183  php-config%%SUFFIX%%
184  phpize%%SUFFIX%%
185 etc/php%%SUFFIX%%/
186  php.conf
187  php.ini-development
188  php.ini-production
189 include/php%%SUFFIX%%/TSRM/
190  TSRM.h
191  readdir.h
192  tsrm_config.h
193  tsrm_config.w32.h
194  tsrm_config_common.h
195  tsrm_strtok_r.h
196  tsrm_win32.h
197 include/php%%SUFFIX%%/Zend/
198  zend.h
199  zend_API.h
200  zend_alloc.h
201  zend_alloc_sizes.h
202  zend_arena.h
203  zend_ast.h
204  zend_bitset.h
205  zend_build.h
206  zend_builtin_functions.h
207  zend_closures.h
208  zend_compile.h
209  zend_config.h
210  zend_config.nw.h
211  zend_config.w32.h
212  zend_constants.h
213  zend_dtrace.h
214  zend_errors.h
215  zend_exceptions.h
216  zend_execute.h
217  zend_extensions.h
218  zend_float.h
219  zend_gc.h
220  zend_generators.h
221  zend_globals.h
222  zend_globals_macros.h
223  zend_hash.h
224  zend_highlight.h
225  zend_inheritance.h
226  zend_ini.h
227  zend_ini_parser.h
228  zend_ini_scanner.h
229  zend_ini_scanner_defs.h
230  zend_interfaces.h
231  zend_istdiostream.h
232  zend_iterators.h
233  zend_language_parser.h
234  zend_language_scanner.h
235  zend_language_scanner_defs.h
236  zend_list.h
237  zend_llist.h
238  zend_long.h
239  zend_modules.h
240  zend_multibyte.h
241  zend_multiply.h
242  zend_object_handlers.h
243  zend_objects.h
244  zend_objects_API.h
245  zend_operators.h
246  zend_portability.h
247  zend_ptr_stack.h
248  zend_range_check.h
249  zend_signal.h
250  zend_smart_str.h
251  zend_smart_str_public.h
252  zend_smart_string.h
253  zend_smart_string_public.h
254  zend_sort.h
255  zend_stack.h
256  zend_stream.h
257  zend_string.h
258  zend_strtod.h
259  zend_strtod_int.h
260  zend_ts_hash.h
261  zend_type_info.h
262  zend_types.h
263  zend_variables.h
264  zend_virtual_cwd.h
265  zend_vm.h
266  zend_vm_def.h
267  zend_vm_execute.h
268  zend_vm_opcodes.h
269 include/php%%SUFFIX%%/ext/date/php_date.h
270 include/php%%SUFFIX%%/ext/date/lib/
271  timelib.h
272  timelib_config.h
273 include/php%%SUFFIX%%/ext/hash/
274  php_hash.h
275  php_hash_adler32.h
276  php_hash_crc32.h
277  php_hash_fnv.h
278  php_hash_gost.h
279  php_hash_haval.h
280  php_hash_joaat.h
281  php_hash_md.h
282  php_hash_ripemd.h
283  php_hash_sha.h
284  php_hash_sha3.h
285  php_hash_snefru.h
286  php_hash_tiger.h
287  php_hash_whirlpool.h
288 include/php%%SUFFIX%%/ext/libxml/php_libxml.h
289 include/php%%SUFFIX%%/ext/mysqlnd/
290  config-win.h
291  mysql_float_to_double.h
292  mysqlnd.h
293  mysqlnd_alloc.h
294  mysqlnd_auth.h
295  mysqlnd_block_alloc.h
296  mysqlnd_charset.h
297  mysqlnd_commands.h
298  mysqlnd_connection.h
299  mysqlnd_debug.h
300  mysqlnd_enum_n_def.h
301  mysqlnd_ext_plugin.h
302  mysqlnd_libmysql_compat.h
303  mysqlnd_plugin.h
304  mysqlnd_portability.h
305  mysqlnd_priv.h
306  mysqlnd_protocol_frame_codec.h
307  mysqlnd_ps.h
308  mysqlnd_read_buffer.h
309  mysqlnd_result.h
310  mysqlnd_result_meta.h
311  mysqlnd_reverse_api.h
312  mysqlnd_statistics.h
313  mysqlnd_structs.h
314  mysqlnd_vio.h
315  mysqlnd_wireprotocol.h
316  php_mysqlnd.h
317 include/php%%SUFFIX%%/ext/pcre/php_pcre.h
318 include/php%%SUFFIX%%/ext/spl/
319  php_spl.h
320  spl_array.h
321  spl_directory.h
322  spl_dllist.h
323  spl_engine.h
324  spl_exceptions.h
325  spl_fixedarray.h
326  spl_functions.h
327  spl_heap.h
328  spl_iterators.h
329  spl_observer.h
330 include/php%%SUFFIX%%/ext/standard/
331  base64.h
332  basic_functions.h
333  crc32.h
334  credits.h
335  credits_ext.h
336  credits_sapi.h
337  crypt_blowfish.h
338  crypt_freesec.h
339  css.h
340  cyr_convert.h
341  datetime.h
342  dl.h
343  exec.h
344  file.h
345  flock_compat.h
346  fsock.h
347  head.h
348  html.h
349  html_tables.h
350  info.h
351  md5.h
352  microtime.h
353  pack.h
354  pageinfo.h
355  php_array.h
356  php_assert.h
357  php_browscap.h
358  php_crypt.h
359  php_crypt_r.h
360  php_dir.h
361  php_dns.h
362  php_ext_syslog.h
363  php_filestat.h
364  php_fopen_wrappers.h
365  php_ftok.h
366  php_http.h
367  php_image.h
368  php_incomplete_class.h
369  php_iptc.h
370  php_lcg.h
371  php_link.h
372  php_mail.h
373  php_math.h
374  php_metaphone.h
375  php_mt_rand.h
376  php_password.h
377  php_rand.h
378  php_random.h
379  php_smart_string.h
380  php_smart_string_public.h
381  php_standard.h
382  php_string.h
383  php_type.h
384  php_uuencode.h
385  php_var.h
386  php_versioning.h
387  proc_open.h
388  quot_print.h
389  scanf.h
390  sha1.h
391  streamsfuncs.h
392  uniqid.h
393  url.h
394  url_scanner_ex.h
395  winver.h
396 include/php%%SUFFIX%%/main/
397  SAPI.h
398  build-defs.h
399  fastcgi.h
400  fopen_wrappers.h
401  http_status_codes.h
402  php.h
403  php_compat.h
404  php_config.h
405  php_content_types.h
406  php_getopt.h
407  php_globals.h
408  php_ini.h
409  php_main.h
410  php_memory_streams.h
411  php_network.h
412  php_open_temporary_file.h
413  php_output.h
414  php_reentrancy.h
415  php_scandir.h
416  php_stdint.h
417  php_streams.h
418  php_syslog.h
419  php_ticks.h
420  php_variables.h
421  php_version.h
422  rfc1867.h
423  snprintf.h
424  spprintf.h
425 include/php%%SUFFIX%%/main/streams/
426  php_stream_context.h
427  php_stream_filter_api.h
428  php_stream_glob_wrapper.h
429  php_stream_mmap.h
430  php_stream_plain_wrapper.h
431  php_stream_transport.h
432  php_stream_userspace.h
433  php_streams_int.h
434 lib/php%%SUFFIX%%/build/
435  Makefile.global
436  acinclude.m4
437  ax_check_compile_flag.m4
438  config.guess
439  config.sub
440  libtool.m4
441  ltmain.sh
442  mkdep.awk
443  phpize.m4
444  run-tests.php
445  scan_makefile_in.awk
446  shtool
447 share/man/man1/
448  php-config%%SUFFIX%%.1.gz
449  phpize%%SUFFIX%%.1.gz
450 @postexec touch %D/include/php%%SUFFIX%%/ext/php_config.h
451 @postunexec [ -s %D/include/php%%SUFFIX%%/ext/php_config.h ] || rm %D/include/php%%SUFFIX%%/ext/php_config.h
452
453
454 [FILE:1176:patches/patch-Makefile.global]
455 --- Makefile.global.orig        2019-04-30 08:49:10 UTC
456 +++ Makefile.global
457 @@ -89,14 +89,14 @@ test: all
458         @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
459                 INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
460                 if test "$$INI_FILE"; then \
461 -                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
462 +                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini || :; \
463                 else \
464                         echo > $(top_builddir)/tmp-php.ini; \
465                 fi; \
466                 INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
467                 if test "$$INI_SCANNED_PATH"; then \
468                         INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
469 -                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
470 +                       $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini || :; \
471                 fi; \
472                 TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
473                 TEST_PHP_SRCDIR=$(top_srcdir) \
474
475
476 [FILE:3056:patches/patch-acinclude.m4]
477 --- acinclude.m4.orig   2019-04-30 08:49:10 UTC
478 +++ acinclude.m4
479 @@ -970,15 +970,8 @@ dnl ------------------------------------
480    if test "$3" != "shared" && test "$3" != "yes" && test "$4" = "cli"; then
481  dnl ---------------------------------------------- CLI static module
482      [PHP_]translit($1,a-z_-,A-Z__)[_SHARED]=no
483 -    case "$PHP_SAPI" in
484 -      cgi|embed|phpdbg[)]
485 -        PHP_ADD_SOURCES($ext_dir,$2,$ac_extra,)
486 -        EXT_STATIC="$EXT_STATIC $1;$ext_dir"
487 -        ;;
488 -      *[)]
489 -        PHP_ADD_SOURCES($ext_dir,$2,$ac_extra,cli)
490 -        ;;
491 -    esac
492 +    PHP_ADD_SOURCES($ext_dir,$2,$ac_extra,cgi)
493 +    PHP_ADD_SOURCES($ext_dir,$2,$ac_extra,fpm)
494      EXT_CLI_STATIC="$EXT_CLI_STATIC $1;$ext_dir"
495    fi
496    PHP_ADD_BUILD_DIR($ext_builddir)
497 @@ -1028,12 +1021,6 @@ You either need to build $1 shared or bu
498  build to be successful.
499  ])
500    fi
501 -  if test "x$is_it_enabled" = "xno" && test "x$3" != "xtrue"; then
502 -    AC_MSG_ERROR([
503 -You've configured extension $1, which depends on extension $2,
504 -but you've either not enabled $2, or have disabled it.
505 -])
506 -  fi
507    dnl Some systems require that we link $2 to $1 when building
508  ])
509  
510 @@ -3025,8 +3012,7 @@ dnl in GNU Make which causes the .d file
511  $abs_srcdir/$ac_provsrc:;
512  
513  $ac_bdir[$]ac_hdrobj: $abs_srcdir/$ac_provsrc
514 -       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@
515 -
516 +       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -xnolibs -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@
517  \$(PHP_DTRACE_OBJS): $ac_bdir[$]ac_hdrobj
518  
519  EOF
520 @@ -3045,12 +3031,12 @@ dnl Always attempt to create both PIC an
521  $ac_bdir[$]ac_provsrc.lo: \$(PHP_DTRACE_OBJS)
522         echo "[#] Generated by Makefile for libtool" > \$[]@
523         @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir
524 -       if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then [\\]
525 +       if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -xnolibs -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then [\\]
526           echo "pic_object=['].libs/$dtrace_prov_name[']" >> \$[]@ [;\\]
527         else [\\]
528           echo "pic_object='none'" >> \$[]@ [;\\]
529         fi
530 -       if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir[$]ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir[$]ac_provsrc.o"; then [\\]
531 +       if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -xnolibs -G -o $ac_bdir[$]ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir[$]ac_provsrc.o"; then [\\]
532           echo "non_pic_object=[']$dtrace_prov_name[']" >> \$[]@ [;\\]
533         else [\\]
534           echo "non_pic_object='none'" >> \$[]@ [;\\]
535 @@ -3062,7 +3048,7 @@ EOF
536    *)
537  cat>>Makefile.objects<<EOF
538  $ac_bdir[$]ac_provsrc.o: \$(PHP_DTRACE_OBJS)
539 -       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o \$[]@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
540 +       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -xnolibs -G -o \$[]@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
541  
542  EOF
543      ;;
544
545
546 [FILE:1269:patches/patch-configure.ac]
547 --- configure.ac.orig   2019-04-30 08:49:02 UTC
548 +++ configure.ac
549 @@ -339,7 +339,6 @@ sinclude(TSRM/tsrm.m4)
550  dnl .
551  dnl -------------------------------------------------------------------------
552  
553 -PTHREADS_CHECK
554  PHP_HELP_SEPARATOR([SAPI modules:])
555  PHP_SHLIB_SUFFIX_NAMES
556  PHP_BUILD_PROGRAM
557 @@ -370,15 +369,9 @@ else
558    AC_MSG_RESULT([none])
559  fi
560  
561 -dnl Exit early
562 -if test -z "$PHP_INSTALLED_SAPIS"; then
563 -  AC_MSG_ERROR([Nothing to build.])
564 -fi
565 -
566  dnl force ZTS
567  if test "$enable_maintainer_zts" = "yes"; then
568    PTHREADS_ASSIGN_VARS
569 -  PTHREADS_FLAGS
570  fi
571  
572  dnl Starting system checks.
573 @@ -1263,7 +1256,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
574  EXPANDED_DATADIR=$datadir
575  EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
576  EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
577 -INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
578 +INCLUDE_PATH=.:${prefix}/share/pear
579  
580  exec_prefix=$old_exec_prefix
581  libdir=$old_libdir
582 @@ -1466,7 +1459,7 @@ PHP_SUBST(all_targets)
583  PHP_SUBST(install_targets)
584  PHP_SUBST(install_binary_targets)
585  
586 -PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/])
587 +PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/])
588  
589  PHP_ADD_SOURCES(TSRM, TSRM.c tsrm_strtok_r.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
590  
591
592
593 [FILE:323:patches/patch-main__php_config.h.in]
594 --- main/php_config.h.in.orig   2019-04-30 08:49:02 UTC
595 +++ main/php_config.h.in
596 @@ -2503,6 +2503,9 @@
597  /* Define if processor uses big-endian word */
598  #undef WORDS_BIGENDIAN
599  
600 +/* Include external shared modules configurations */
601 +#include "ext/php_config.h"
602 +
603  /* Whether sprintf is broken */
604  #undef ZEND_BROKEN_SPRINTF
605  
606
607
608 [FILE:429:patches/patch-sapi_apache2handler_config.m4]
609 --- sapi/apache2handler/config.m4.orig  2019-04-30 08:49:02 UTC
610 +++ sapi/apache2handler/config.m4
611 @@ -67,7 +67,7 @@ if test "$PHP_APXS2" != "no"; then
612    fi
613  
614    APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
615 -  if test -z `$APXS -q SYSCONFDIR`; then
616 +  if true; then
617      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
618                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
619                         -i -n php7"
620
621
622 [FILE:603:patches/patch-sapi_fpm_config.m4]
623 --- sapi/fpm/config.m4.orig     2019-04-30 08:49:02 UTC
624 +++ sapi/fpm/config.m4
625 @@ -317,14 +317,14 @@ AC_DEFUN([AC_FPM_LQ],
626  
627    AC_MSG_CHECKING([for TCP_INFO])
628  
629 -  AC_TRY_COMPILE([ #include <netinet/tcp.h> ], [struct tcp_info ti; int x = TCP_INFO;], [
630 +  AC_TRY_COMPILE([ #include <netinet/tcp.h> ], [struct tcp_info ti; ti.tcpi_sacked = 0; int x = TCP_INFO;], [
631      have_lq=tcp_info
632      AC_MSG_RESULT([yes])
633    ], [
634      AC_MSG_RESULT([no])
635    ])
636  
637 -  if test "$have_lq" = "tcp_info"; then
638 +  if test "$have_lq" = "so_listenq"; then
639      AC_DEFINE([HAVE_LQ_TCP_INFO], 1, [do we have TCP_INFO?])
640    fi
641  
642
643
644 [FILE:1394:files/php72-fpm.in]
645 #!/bin/sh
646 #
647
648 # PROVIDE: php%%SUFFIX%%-fpm
649 # REQUIRE: LOGIN
650 # KEYWORD: shutdown
651
652 #
653 # Add the following line to /etc/rc.conf to enable php-fpm:
654 # php%%SUFFIX%%_fpm_enable="YES"
655 #
656
657 . /etc/rc.subr
658
659 name="php%%SUFFIX%%_fpm"
660 rcvar=php%%SUFFIX%%_fpm_enable
661
662 start_precmd="php%%SUFFIX%%_fpm_prestart"
663 restart_precmd="php%%SUFFIX%%_fpm_checkconfig"
664 reload_precmd="php%%SUFFIX%%_fpm_checkconfig"
665 configtest_cmd="php%%SUFFIX%%_fpm_checkconfig"
666
667 load_rc_config "$name"
668
669 : ${php%%SUFFIX%%_fpm_enable="NO"}
670 : ${php%%SUFFIX%%_fpm_umask=""}
671
672 extra_commands="reload configtest logrotate"
673
674 command="%%PREFIX%%/sbin/php-fpm"
675 pidfile="/var/run/php-fpm.pid"
676 sig_stop="QUIT"
677 sig_reload="USR2"
678 logrotate_cmd="php%%SUFFIX%%_fpm_logrotate"
679
680 required_files="%%PREFIX%%/etc/php-fpm.conf"
681
682 php%%SUFFIX%%_fpm_logrotate() {
683         if [ -z "$rc_pid" ]; then
684                 _run_rc_notrunning
685                 return 1
686         fi
687         echo "Rotating logs $name."
688         kill -USR1 $rc_pid
689 }
690
691 php%%SUFFIX%%_fpm_checkconfig()
692 {
693         echo "Performing sanity check on php-fpm configuration:"
694         eval ${command} -t
695 }
696
697 php%%SUFFIX%%_fpm_prestart()
698 {
699         php%%SUFFIX%%_fpm_checkconfig
700         checkconfig=$?
701         if [ $checkconfig -ne 0  ]; then
702                 return $checkconfig
703         fi
704
705         if [ ! -z "$php%%SUFFIX%%_fpm_umask"  ]; then
706                 echo "Setting umask to: ${php%%SUFFIX%%_fpm_umask}"
707                 umask $php%%SUFFIX%%_fpm_umask
708         fi
709 }
710
711 run_rc_command "$1"
712