Ravenports generated: 06 Mar 2019 21:08
[ravenports.git] / bucket_8E / php72
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               php72
4 VERSION=                7.2.16
5 REVISION=               1
6 KEYWORDS=               lang www php
7 VARIANTS=               standard
8 SDESC[standard]=        PHP Hypertext Preprocessor version 7.2
9 HOMEPAGE=               http://php.net/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PHP/distributions
14 DISTFILE[1]=            php-7.2.16.tar.xz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      CLI CGI FPM EMBED DEBUGGER
19 OPTIONS_STANDARD=       CLI CGI FPM EMBED DEBUGGER
20 OPTGROUP_RESTRICTED=    SAPI
21 OPTDESCR[SAPI]=         Server Application Programming Interface
22 OPTGROUP[SAPI]=         CLI CGI FPM DEBUGGER
23 OPT_ON[all]=            CLI CGI FPM EMBED DEBUGGER
24
25 BUILD_DEPENDS=          pcre:static:standard
26                         autoconf:single:standard
27 BUILDRUN_DEPENDS=       pcre:shared:standard
28 BR_DEPS[darwin]=        libiconv:static:standard
29
30 USES=                   cpe gmake
31 GNOME_COMPONENTS=       libxml2
32
33 DISTNAME=               php-7.2.16
34
35 CPE_PRODUCT=            php
36 FPC_EQUIVALENT=         lang/php72
37
38 MUST_CONFIGURE=         gnu
39 CONFIGURE_ARGS=         --with-layout=GNU
40                         --localstatedir=/var
41                         --with-config-file-scan-dir={{PREFIX}}/etc/php72
42                         --sysconfdir={{PREFIX}}/etc/php72
43                         --libdir={{PREFIX}}/lib/php72
44                         --datadir={{PREFIX}}/share/php72
45                         --disable-all
46                         --enable-libxml
47                         --enable-mysqlnd
48                         --enable-hash
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.16" >> ${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 7d91ed3c1447c6358a3d53f84599ef854aca4c3622de7435e2df115bf196e482     12166372 php-7.2.16.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-03-05 11:06:09 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:3059:patches/patch-acinclude.m4]
477 --- acinclude.m4.orig   2019-03-05 11:06:09 UTC
478 +++ acinclude.m4
479 @@ -974,15 +974,9 @@ 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[)]
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 +
493 +       PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,cgi)
494 +       PHP_ADD_SOURCES(PHP_EXT_DIR($1),$2,$ac_extra,fpm)
495      EXT_CLI_STATIC="$EXT_CLI_STATIC $1;$ext_dir"
496    fi
497    PHP_ADD_BUILD_DIR($ext_builddir)
498 @@ -1032,12 +1026,6 @@ You either need to build $1 shared or bu
499  build to be successful.
500  ])
501    fi
502 -  if test "x$is_it_enabled" = "xno" && test "x$3" != "xtrue"; then
503 -    AC_MSG_ERROR([
504 -You've configured extension $1, which depends on extension $2,
505 -but you've either not enabled $2, or have disabled it.
506 -])
507 -  fi
508    dnl Some systems require that we link $2 to $1 when building
509  ])
510  
511 @@ -3029,8 +3017,7 @@ dnl in GNU Make which causes the .d file
512  $abs_srcdir/$ac_provsrc:;
513  
514  $ac_bdir[$]ac_hdrobj: $abs_srcdir/$ac_provsrc
515 -       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@
516 -
517 +       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -xnolibs -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@
518  \$(PHP_DTRACE_OBJS): $ac_bdir[$]ac_hdrobj
519  
520  EOF
521 @@ -3049,12 +3036,12 @@ dnl Always attempt to create both PIC an
522  $ac_bdir[$]ac_provsrc.lo: \$(PHP_DTRACE_OBJS)
523         echo "[#] Generated by Makefile for libtool" > \$[]@
524         @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir
525 -       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 [\\]
526 +       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 [\\]
527           echo "pic_object=['].libs/$dtrace_prov_name[']" >> \$[]@ [;\\]
528         else [\\]
529           echo "pic_object='none'" >> \$[]@ [;\\]
530         fi
531 -       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 [\\]
532 +       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 [\\]
533           echo "non_pic_object=[']$dtrace_prov_name[']" >> \$[]@ [;\\]
534         else [\\]
535           echo "non_pic_object='none'" >> \$[]@ [;\\]
536 @@ -3066,7 +3053,7 @@ EOF
537    *)
538  cat>>Makefile.objects<<EOF
539  $ac_bdir[$]ac_provsrc.o: \$(PHP_DTRACE_OBJS)
540 -       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o \$[]@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
541 +       CFLAGS="\$(CFLAGS_CLEAN)" dtrace -xnolibs -G -o \$[]@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
542  
543  EOF
544      ;;
545
546
547 [FILE:1269:patches/patch-configure.ac]
548 --- configure.ac.orig   2019-03-05 11:05:59 UTC
549 +++ configure.ac
550 @@ -339,7 +339,6 @@ sinclude(TSRM/tsrm.m4)
551  dnl .
552  dnl -------------------------------------------------------------------------
553  
554 -PTHREADS_CHECK
555  PHP_HELP_SEPARATOR([SAPI modules:])
556  PHP_SHLIB_SUFFIX_NAMES
557  PHP_BUILD_PROGRAM
558 @@ -370,15 +369,9 @@ else
559    AC_MSG_RESULT([none])
560  fi
561  
562 -dnl Exit early
563 -if test -z "$PHP_INSTALLED_SAPIS"; then
564 -  AC_MSG_ERROR([Nothing to build.])
565 -fi
566 -
567  dnl force ZTS
568  if test "$enable_maintainer_zts" = "yes"; then
569    PTHREADS_ASSIGN_VARS
570 -  PTHREADS_FLAGS
571  fi
572  
573  dnl Starting system checks.
574 @@ -1263,7 +1256,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfd
575  EXPANDED_DATADIR=$datadir
576  EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
577  EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
578 -INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
579 +INCLUDE_PATH=.:${prefix}/share/pear
580  
581  exec_prefix=$old_exec_prefix
582  libdir=$old_libdir
583 @@ -1466,7 +1459,7 @@ PHP_SUBST(all_targets)
584  PHP_SUBST(install_targets)
585  PHP_SUBST(install_binary_targets)
586  
587 -PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/])
588 +PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/])
589  
590  PHP_ADD_SOURCES(TSRM, TSRM.c tsrm_strtok_r.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
591  
592
593
594 [FILE:323:patches/patch-main__php_config.h.in]
595 --- main/php_config.h.in.orig   2019-03-05 11:05:59 UTC
596 +++ main/php_config.h.in
597 @@ -2500,6 +2500,9 @@
598  /* Define if processor uses big-endian word */
599  #undef WORDS_BIGENDIAN
600  
601 +/* Include external shared modules configurations */
602 +#include "ext/php_config.h"
603 +
604  /* Whether sprintf is broken */
605  #undef ZEND_BROKEN_SPRINTF
606  
607
608
609 [FILE:429:patches/patch-sapi_apache2handler_config.m4]
610 --- sapi/apache2handler/config.m4.orig  2019-03-05 11:05:59 UTC
611 +++ sapi/apache2handler/config.m4
612 @@ -67,7 +67,7 @@ if test "$PHP_APXS2" != "no"; then
613    fi
614  
615    APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
616 -  if test -z `$APXS -q SYSCONFDIR`; then
617 +  if true; then
618      INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
619                   $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
620                         -i -n php7"
621
622
623 [FILE:603:patches/patch-sapi_fpm_config.m4]
624 --- sapi/fpm/config.m4.orig     2019-03-05 11:05:59 UTC
625 +++ sapi/fpm/config.m4
626 @@ -317,14 +317,14 @@ AC_DEFUN([AC_FPM_LQ],
627  
628    AC_MSG_CHECKING([for TCP_INFO])
629  
630 -  AC_TRY_COMPILE([ #include <netinet/tcp.h> ], [struct tcp_info ti; int x = TCP_INFO;], [
631 +  AC_TRY_COMPILE([ #include <netinet/tcp.h> ], [struct tcp_info ti; ti.tcpi_sacked = 0; int x = TCP_INFO;], [
632      have_lq=tcp_info
633      AC_MSG_RESULT([yes])
634    ], [
635      AC_MSG_RESULT([no])
636    ])
637  
638 -  if test "$have_lq" = "tcp_info"; then
639 +  if test "$have_lq" = "so_listenq"; then
640      AC_DEFINE([HAVE_LQ_TCP_INFO], 1, [do we have TCP_INFO?])
641    fi
642  
643
644
645 [FILE:1394:files/php72-fpm.in]
646 #!/bin/sh
647 #
648
649 # PROVIDE: php%%SUFFIX%%-fpm
650 # REQUIRE: LOGIN
651 # KEYWORD: shutdown
652
653 #
654 # Add the following line to /etc/rc.conf to enable php-fpm:
655 # php%%SUFFIX%%_fpm_enable="YES"
656 #
657
658 . /etc/rc.subr
659
660 name="php%%SUFFIX%%_fpm"
661 rcvar=php%%SUFFIX%%_fpm_enable
662
663 start_precmd="php%%SUFFIX%%_fpm_prestart"
664 restart_precmd="php%%SUFFIX%%_fpm_checkconfig"
665 reload_precmd="php%%SUFFIX%%_fpm_checkconfig"
666 configtest_cmd="php%%SUFFIX%%_fpm_checkconfig"
667
668 load_rc_config "$name"
669
670 : ${php%%SUFFIX%%_fpm_enable="NO"}
671 : ${php%%SUFFIX%%_fpm_umask=""}
672
673 extra_commands="reload configtest logrotate"
674
675 command="%%PREFIX%%/sbin/php-fpm"
676 pidfile="/var/run/php-fpm.pid"
677 sig_stop="QUIT"
678 sig_reload="USR2"
679 logrotate_cmd="php%%SUFFIX%%_fpm_logrotate"
680
681 required_files="%%PREFIX%%/etc/php-fpm.conf"
682
683 php%%SUFFIX%%_fpm_logrotate() {
684         if [ -z "$rc_pid" ]; then
685                 _run_rc_notrunning
686                 return 1
687         fi
688         echo "Rotating logs $name."
689         kill -USR1 $rc_pid
690 }
691
692 php%%SUFFIX%%_fpm_checkconfig()
693 {
694         echo "Performing sanity check on php-fpm configuration:"
695         eval ${command} -t
696 }
697
698 php%%SUFFIX%%_fpm_prestart()
699 {
700         php%%SUFFIX%%_fpm_checkconfig
701         checkconfig=$?
702         if [ $checkconfig -ne 0  ]; then
703                 return $checkconfig
704         fi
705
706         if [ ! -z "$php%%SUFFIX%%_fpm_umask"  ]; then
707                 echo "Setting umask to: ${php%%SUFFIX%%_fpm_umask}"
708                 umask $php%%SUFFIX%%_fpm_umask
709         fi
710 }
711
712 run_rc_command "$1"
713