Commit graph

79 commits

Author SHA1 Message Date
Muhammad Moinur Rahman
beced896ad lang/php80: Sunset 2023-12-31 01:06:40 +01:00
Muhammad Moinur Rahman
6e3887a5d3 lang/php* : Change default to 8.2
As active support of php81 ends on 25th November, 2023 it's time to
switch the default version to 8.2.

See https://www.php.net/supported-versions.php for more details.

PR:		274463
Approved by:	portmgr (exp-run)
2023-11-26 20:57:51 +01:00
Juraj Lutter
34212762f0 php.mk: Create php extension ini files as sample
Create php extension ini files with .sample extension
to prevent subsequent upgrades from clobbering the, possibly,
user-modified .ini files.

Reviewed by:	ale, bofh, portmgr
Approved by:	bofh
Differential Revision: https://reviews.freebsd.org/D41630
2023-09-04 11:56:06 +02:00
Muhammad Moinur Rahman
495ac465a6 lang/php83: Update version 8.3.0beta3=>8.3.0RC1
Please DO NOT use this version in production, it is an early test
version.

Changelog: https://github.com/php/php-src/blob/php-8.3.0RC1/NEWS

Sponsored by:	Bounce Experts
2023-08-30 18:51:57 +02:00
Muhammad Moinur Rahman
95967c2077 */*php83*: Sunrise
Please DO NOT use this version in production, it is an early test
version.

For upgrade notes please visit:
https://github.com/php/php-src/blob/php-8.3.0alpha1/UPGRADING

Changelog: https://github.com/php/php-src/blob/php-8.3.0alpha1/NEWS
Sponsored by:	Bounce Experts
2023-06-10 16:57:35 +02:00
Muhammad Moinur Rahman
20fd52ed17 Mk/Uses/php.mk: Fix USES
- Avoid overriding or appending USES.
- Use USESDIR instead of PORTSDIR/Mk/Uses

Reported by:	antoine
2023-04-24 22:32:12 +02:00
Muhammad Moinur Rahman
9f5034f55a Mk/Uses/php.mk: Refactor
- Replace old USE_APACHE_RUN with USES=apache:run
- Prior to php8.0 there was a check for the required libname which
  contained the version number of php. Remove the conditional.

Sponsored by:	Bounce Experts
2023-04-24 22:01:01 +02:00
Muhammad Moinur Rahman
2b2f3d6222 lang/zephir: Fix build with php82
Sponsored by:	Bounce Experts
2023-04-17 02:21:55 +02:00
Muhammad Moinur Rahman
0d310d700a */*php74*: Sunset php 7.4
As per upstream php 7.4 has reached it's EOL on 2022-11-22. Remove php74
from the tree. Default version of php has already been switched to 8.1.

Approved by:	portmgr (blanket infrastructure)
Sponsored by:	Bounce Experts
2022-12-25 13:36:42 -06:00
Muhammad Moinur Rahman
54523f62b2 print/pecl-pdflib: Cleanup
- Requires php74 which was EOL on 2022-11-28

Sponsored by:	Bounce Experts
2022-12-09 09:03:21 -06:00
Muhammad Moinur Rahman
8f21d69a60 Mk/bsd.default-versions.mk: Change PHP default version to 8.1
Switching php DEFAULT_VERSION from 8.0 to 8.1. php 8.0 Active support
ends on 2022-11-26. This will not be merged in quarterly.

PR:		266854
Tested by:	antoine
Approved by:	ale
Relnotes:	https://www.php.net/supported-versions.php
Sponsored by:	Bounce Experts
2022-11-25 19:14:37 -06:00
Muhammad Moinur Rahman
0f83560b42 lang/php82: Update version 8.2.0beta2=>8.2.0RC2
- Core:
  . Fixed bug GH-9500 (Using dnf type with parentheses after readonly
  keyword results in a parse error). (ilutov)
  . Fixed bug GH-9516 ((A&B)|D as a param should allow AB or D.  Not
  just A).  (Girgias)

- GMP
  . Fixed bug GH-9308 (GMP throws the wrong error when a GMP object is
  passed to gmp_init()). (Girgias)

- Intl
  . Fixed bug GH-9421 (Incorrect argument number for ValueError in
  NumberFormatter).  (Girgias)

- Opcache:
  . Fixed bug GH-9259 (opcache.interned_strings_buffer setting integer
  overflow). (Arnaud)

- OpenSSL:
  . Fixed bug GH-9517 (Compilation error openssl extension related to
  PR GH-9366). (Jakub Zelenka)

- PDO_PGSQL:
  . Fixed bug GH-9411 (PgSQL large object resource is incorrectly
  closed).  (Yurunsoft)

- Random:
  . Fixed bug GH-9464 (build on older macOs releases).  (David Bohman)

- Standard:
  . Marked crypt()'s $string parameter as #[\SensitiveParameter].
  (timwolla)
  . Fixed bug GH-9464 (build on older macOs releases). (David Bohman)
  . Fixed bug GH-9518 (Disabling IPv6 support disables unrelated
  constants).  (cmb)

Please DO NOT use this version in production, it is an early test
version.

Relnotes: 	https://github.com/php/php-src/blob/php-8.2.0RC2/NEWS
Sponsored by:	Bounce Experts
2022-09-16 03:49:42 -05:00
Vanilla I. Shu
99f5901e00 lang/zephir: add zephir, it is a transpiled language used for creating C-extensions for PHP.
PR:		265737
Reported by:	R. Christian McDonald cmcdonald at netgate dot com
2022-08-15 23:05:25 +08:00
Muhammad Moinur Rahman
5da33bb9b4 lang/php82: Update version 8.2.0a3=>8.2.0b2
- Fix building with some DEFAULT OPTIONS off [1]
PR:		265500 [1]
Reported by:	a.shikov@itcons.net.ua [1]
Sponsored by:	Bounce Experts
2022-08-04 14:43:34 -05:00
Muhammad Moinur Rahman
665b149d26 */*php82*: Welcome php 8.2.0 Alpha 1
Please DO NOT use this version in production, it is an early test
version.

port-committers@ please DO NOT mark your ports IGNORE_WITH_PHP=82. A
build is running to check all php ports with php82 and will be
committed in batch tomorrow.

Sponsored by:	Bounce Experts
2022-06-11 16:02:49 -05:00
Tobias C. Berner
aa25396790 framework: cleanup conditional-indentations in Mk/
Run Tools/scripts/indent_make_if.pl on all of Mk.

These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible

Differential Revision:	https://reviews.freebsd.org/D35024
Reviewed by:		portmgr (rene, bapt)
2022-04-24 12:00:20 +02:00
Muhammad Moinur Rahman
945dec8fbd Uses/php.mk: Helper variable to disable FLAVOR
- Currently our php.mk is defined in such a way that when testing with
  poudriere if a port do not support the PHP default version it tries to
  build with a different php version that the port supports.
  Unfortunately this behavior is not too much helpful when we want to
  add/remove a old/new php version as it doesn't gives a clear picture
  of which ports fails to build with a specific PHP version. So this
  patch defines a variable "BUILD_ONLY_DEFAULT_PHP_FLAVOR". If this
  variable is defined in make.conf then poudriere will build with default
  flavor and in case it's not supported this will IGNORE/SKIP the port which
  gives a clear overview of which ports are going to create problem
  while adding/removing/changing default php.

- One more thing is there are some old php modules still listed
  specifically dbase_DEPENDS, mssql_DEPENDS and sybase_ct_DEPENDS which
  are actually no longer in the tree.

PR:		262639
Approved by:	ale (maintainer-timeout)
Sponsored by:	Bounce Experts
2022-04-03 16:33:58 -05:00
Muhammad Moinur Rahman
e8d9493812 lang/php8[01]: Make openssl as DEFAULT
After the 91fdbed776 commit fixing the
issue for MySQL80 introduced another problem for the ports that depends
on php8[01]-openssl port couldn't be built as the fix prevented
php8[01]-openssl from being installed as it's already built with
default php installation. As the problem has grown much bigger now and
php80 is currently the DEFAULT php version so we are switching the
behavior of php8[01] ports making the openssl module as default.

- Remove non-default OPTION MYSQL80 from lang/php8[01]
- Remove ports security/php8[01]-openssl
- Remove OPTION OPENSSL from lang/php8[01]-extensions
- Mark lang/php8[01] to IGNORE with libressl and libressl-devel
  Although php builds fine with those most of the extensions do not
  as they have dependency on curl. So mark it early.
- OPTIONIZE lang/php80
- Change openssl_DEPENDS to conditional for php74 only as this module
  is default from php80 with this commit. php74 do not have the issue
  where it fails to connect to MySQL80 due to new caching_sha2_password
- Remove hash_DEPENDS from php.mk as it is a default module for all php
- Change json_DEPENDS to conditional for php74 only as this module is
  default from php80

PR:		261797 259793 252420
Reported by:	sean@rogue-research.com martin@waschbuesch.de
Approved by:	tz (private email) ale (private email)
Sponsored by:	Bounce Experts
2022-02-12 09:41:51 -06:00
Muhammad Moinur Rahman
cc378fb60b lang/php73: Remove port
- EOL reached on 2021-12-06
  https://www.php.net/eol.php

PR:             260624
Approved by:	tz (private email) ale portmgr (blanket)
Sponsored by:	Bounce Experts
2022-01-25 18:20:01 -06:00
Mark Burdett
ed26168a5c Fix libphp name in php.mk
- From php80 and onwards libphp name is libphp.so without the major
  version number. Add a check to fix the RUN_DEPENDS.

PR:	        251252
Reported by:    jonaspalm@posteo.de
Approved by:	ale (maintainer)
Sponsored by:	Bounce Experts
2022-01-25 03:21:38 -06:00
Muhammad Moinur Rahman
2e1fdc1738 Change PHP default version to 8.0
- databases/xapian-bindings is a mata port which do not have
  php:flavors and is unable to be MARKED to IGNORE as one of it's
  dependent databases/php-xapian do not support php8.0. Hence this
  creates a circular dependency and it fails to start bulk building. So
  for now remove PHP from OPTIONS_DEFAULT.

PR:             260595
Approved by:	ale portmgr(exp-run)
Sponsored by:	Bounce Experts
2022-01-24 17:41:06 -06:00
Muhammad Moinur Rahman
c5a743203c Welcome php81 to the tree
- Move extension sodium to common as all current supported php versions
  in the tree supports it
PR: 260774
Approved by:	ale
Sponsored by:	Bounce Experts
2022-01-10 04:47:32 -06:00
Mathieu Arnold
5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00
Torsten Zuehlsdorff
dfc4a14830 New port: net/pecl-xmlrpc
These functions can be used to write XML-RPC servers and clients.
You can find more information about XML-RPC at http://www.xmlrpc.com/,
and more documentation on this extension and its functions at
http://xmlrpc-epi.sourceforge.net/.

WWW: https://pecl.php.net/package/xmlrpc

PR:		254285, 250648
Submitted by:	Derek Schrock <dereks@lifeofadishwasher.com>
Reviewed by:	tz, ale
Approved by:	tz, ale
Differential Revision:	https://reviews.freebsd.org/D29264
2021-03-28 23:48:44 +00:00
Rene Ladan
16127537c4 Unregister expired PHP 7.2
While here ensure the default versions/values match with each other.
2020-12-31 11:46:52 +00:00
Alex Dupre
9b21f2c875 PECL pdflib is deprecated and doesn't support PHP 8.0. 2020-10-27 09:50:00 +00:00
Antoine Brodin
5e7b516edc json extension is included in lang/php80
With hat:	portmgr
2020-10-23 06:30:36 +00:00
Li-Wen Hsu
21eb6c3e4d Fix make index
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org>
2020-10-22 03:17:17 +00:00
Torsten Zuehlsdorff
1061308ba7 Welcome PHP 8.0 RC 2 to the ports tree
There are many greater changes including:
- json is now part of core
- xmlrpc is removed
- More than 150 backward incompatible changes

Have a look at: https://github.com/php/php-src/blob/php-8.0.0RC2/UPGRADING

Reviewed by:	ale, mfechner, Pascal Christen
Sponsored by:	PHP Update Service
Differential Revision:	https://reviews.freebsd.org/D26848
2020-10-21 22:58:51 +00:00
Sunpoet Po-Chuan Hsieh
2a6b12ed3e Change USE_PHP=memcache from php-memcache to pecl-memcache 2019-12-30 06:39:51 +00:00
Rene Ladan
52671e806a mcrypt is part of pecl since PHP 7.2
Reported by:	fluffy
2019-12-18 07:28:34 +00:00
Rene Ladan
f250ea425d Unregister PHP 7.1, upstream has dropped security support on 2019-12-01
Discused with:	portmgr
2019-12-17 18:43:19 +00:00
Piotr Kubaj
95a1d26f49 Mk/bsd.port.mk: detect powerpc64 abi
We'll have a new abi on ppc64 soon (ELFv2) which is incompatible with the ELFv1 abi. We need to detect the abi on which we build stuff.

Submitted by:	mikael_urankar@gmail.com
Approved by:	portmgr (earlier version)
Differential Revision:	https://reviews.freebsd.org/D22039
2019-11-29 15:02:14 +00:00
Piotr Kubaj
70d1ffbf6f Mk/Uses/php.mk: fix build of all PHP modules when using php74 on GCC architectures
php74 introduced C11 requirement and all optional PHP modules available in the ports tree need to use C11 compiler.

PR:		240883
Approved by:	portmgr
2019-11-06 17:01:40 +00:00
Torsten Zuehlsdorff
7aca2531e2 Welcome PHP 7.4 RC 1 in the ports-tree.
There are many greater changes including:
- New module ffi
- Remove interbase module
- Remove recode module
- Remove wddx module
- Many modules changes the build switches
- Many modules changes the config format, so patches needed to be recreated

Special thanks to tobik and ale for their support.

Reviewed by:	tobik, ale, joneum
Sponsored by:	PHP Update Service
Differential Revision:	https://reviews.freebsd.org/D21349
2019-09-20 12:21:11 +00:00
Sunpoet Po-Chuan Hsieh
2de48c2d13 Update MASTER_SITES
PR:		238142
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 1 month)
2019-06-26 17:27:21 +00:00
Mathieu Arnold
fa08cb7124 Simplify the PHP pkg-message. 2019-06-11 13:12:28 +00:00
Mathieu Arnold
072325a1b1 Put back the php extension installation message, now that it can be
shown on installation only.

Differential Revision:	https://reviews.freebsd.org/D20510
2019-06-06 11:46:06 +00:00
Tobias Kortkamp
a7ed1f0480 Mk/Uses/php.mk: Drop unused mysql_DEPENDS
PR:		235942
Submitted by:	Miroslav Lachman <000.fbsd@quip.cz>
Approved by:	ale (maintainer)
2019-05-24 15:24:19 +00:00
Tobias Kortkamp
db738ec122 Mk/Uses/php.mk: Flag invalid args
Approved by:	ale (maintainer)
Differential Revision:	https://reviews.freebsd.org/D19750
2019-03-30 18:36:30 +00:00
Rene Ladan
d0af725706 Remove references to PHP 5.6 from Mk/Uses/php.mk 2019-01-01 13:29:57 +00:00
Rene Ladan
a873d4b4ac Unregister PHP 5.6 which expired today. 2019-01-01 13:19:23 +00:00
Rene Ladan
49a13c2c96 Re-sync the value of PHP_EXT_DIR with the default version in the else clause. 2018-12-05 13:59:36 +00:00
Rene Ladan
4c96f36032 Unregister PHP 7.0, it has reached its end-of-life on 2018-12-04. 2018-12-05 13:57:58 +00:00
Torsten Zuehlsdorff
3a5533b48d Add PHP 7.3 RC2 to the ports-tree.
Notable changes:
- Switch from PCRE to PCRE2
- Many modules now require PCRE2 for building
- graphics/php73-gd: X11 option is no longer default

Changes to Mk/Uses/php.mk approved by ale
2018-10-08 08:52:51 +00:00
Mathieu Arnold
d83e709426 Typo. 2018-08-27 10:05:44 +00:00
Luca Pizzamiglio
a011463743 Mk/Uses/php.mk: small clean-up
Remove not existing extensions
Improve uniformity

Reviewed by:	ale
Sponsored by:	trivago N.V.
Differential Revision:	https://reviews.freebsd.org/D15807
2018-06-15 14:43:10 +00:00
Bernard Spil
11a52e7dd1 Mk/Uses/php.mk: Drop support for WANT_ and USE_ PHP vars
Approved by:	portmgr (rene)
Differential Revision:	https://reviews.freebsd.org/D15014
2018-05-07 18:18:17 +00:00
Bernard Spil
a80b8e64ed Mk/Uses/apache.mk: Migrate Mk/bsd.apache.mk to Uses
- Chase required changes in framework (bsd.sanity.mk, bsd.port.mk)
 - Chase required changes in ports (version checks)
 - Chase required changes in PHP ports (include bsd.apache.mk)
 - exp-run by antoine, brnrd, joneum

PR:             223691 (exp-run)
Reviewed by:    joneum (hat apache), mat (portmgr), antoine (portmgr)
Approved by:    joneum (hat apache)
Approved by:	portmgr
With hat:       apache
2018-03-11 14:23:28 +00:00
Mathieu Arnold
a1993564e0 Introduce PHP flavors.
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
  flavored.  They will automatically get flavors (php56, php70, php71, php72)
  depending of the versions they support (set with IGNORE_WITH_PHP).  As a
  consequence, ports using USES=pear and USES=horde are also flavored.

PR:		226242
Submitted by:	mat
Exp-run by:	antoine
Approved by:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D14208
2018-03-08 19:48:41 +00:00