FreeBSD Bugzilla – Attachment 245119 Details for
Bug 274011
lang/php83: ifunc support is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for lang/php81
patch-ifunc-lang-php81 (text/plain), 2.81 KB, created by
Thomas Hurst
on 2023-09-22 14:43:02 UTC
(
hide
)
Description:
Patch for lang/php81
Filename:
MIME Type:
Creator:
Thomas Hurst
Created:
2023-09-22 14:43:02 UTC
Size:
2.81 KB
patch
obsolete
>diff --git lang/php81/Makefile lang/php81/Makefile >index 1e7e19362055..5b1465a16e69 100644 >--- lang/php81/Makefile >+++ lang/php81/Makefile >@@ -1,5 +1,6 @@ > PORTNAME= php81 > DISTVERSION= 8.1.23 >+PORTREVISION= 1 > CATEGORIES?= lang devel www > MASTER_SITES= PHP/distributions > DISTNAME= php-${DISTVERSION} >diff --git lang/php81/files/patch-build_php.m4 lang/php81/files/patch-build_php.m4 >new file mode 100644 >index 000000000000..881e7d82b0fc >--- /dev/null >+++ lang/php81/files/patch-build_php.m4 >@@ -0,0 +1,11 @@ >+--- build/php.m4.orig 2023-09-22 14:27:52 UTC >++++ build/php.m4 >+@@ -2700,7 +2700,7 @@ AC_DEFUN([PHP_CHECK_BUILTIN_CPU_INIT], [ >+ AC_MSG_CHECKING([for __builtin_cpu_init]) >+ >+ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ >+- return __builtin_cpu_init()? 1 : 0; >++ __builtin_cpu_init();return 1; >+ ]])], [ >+ have_builtin_cpu_init=1 >+ AC_MSG_RESULT([yes]) >diff --git lang/php81/files/patch-configure.ac lang/php81/files/patch-configure.ac >index fae0134d0c7b..45e6c3e03621 100644 >--- lang/php81/files/patch-configure.ac >+++ lang/php81/files/patch-configure.ac >@@ -1,4 +1,4 @@ >---- configure.ac.orig 2023-03-14 19:50:20 UTC >+--- configure.ac.orig 2023-08-30 08:23:26 UTC > +++ configure.ac > @@ -55,6 +55,7 @@ AH_BOTTOM([ > >@@ -8,7 +8,7 @@ > #endif /* PHP_CONFIG_H */ > ]) > >-@@ -273,7 +274,6 @@ sinclude(Zend/Zend.m4) >+@@ -275,7 +276,6 @@ sinclude(Zend/Zend.m4) > > dnl ---------------------------------------------------------------------------- > >@@ -16,7 +16,16 @@ > PHP_HELP_SEPARATOR([SAPI modules:]) > PHP_SHLIB_SUFFIX_NAMES > PHP_BUILD_PROGRAM >-@@ -614,7 +614,7 @@ memmem \ >+@@ -547,7 +547,7 @@ dnl Fix for these systems is already included in GCC 7 >+ dnl >+ dnl At least some versions of FreeBSD seem to have buggy ifunc support, see >+ dnl bug #77284. Conservatively don't use ifuncs on FreeBSD. >+-AS_CASE([$host_alias], [*-*-*android*|*-*-*uclibc*|*-*-*musl*|*freebsd*|*openbsd*], [true], [ >++AS_CASE([$host_alias], [*-*-*android*|*-*-*uclibc*|*-*-*musl*|*openbsd*], [true], [ >+ AX_GCC_FUNC_ATTRIBUTE([ifunc]) >+ AX_GCC_FUNC_ATTRIBUTE([target]) >+ ]) >+@@ -629,7 +629,7 @@ AC_FUNC_STRERROR_R > AX_FUNC_WHICH_GETHOSTBYNAME_R > > dnl Some systems (like OpenSolaris) do not have nanosleep in libc. >@@ -25,7 +34,7 @@ > > dnl Haiku does not have network api in libc. > PHP_CHECK_FUNC_LIB(setsockopt, network) >-@@ -1372,7 +1372,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` >+@@ -1387,7 +1387,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` > EXPANDED_DATADIR=$datadir > EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` > EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` >@@ -34,7 +43,7 @@ > > exec_prefix=$old_exec_prefix > libdir=$old_libdir >-@@ -1591,7 +1591,7 @@ PHP_SUBST(all_targets) >+@@ -1606,7 +1606,7 @@ PHP_SUBST(all_targets) > PHP_SUBST(install_targets) > PHP_SUBST(install_binary_targets) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bofh
:
maintainer-approval-
Actions:
View
|
Diff
Attachments on
bug 274011
: 245119 |
245132