Re: git: 147a6723542d - main - lang/php82: Update version 8.2.14=>8.2.15
Date: Thu, 18 Jan 2024 19:33:08 UTC
On 18.01.2024 21:29, Muhammad Moinur Rahman wrote: > The branch main has been updated by bofh: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=147a6723542d29626979348f2814a58ae276391b > > commit 147a6723542d29626979348f2814a58ae276391b > Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> > AuthorDate: 2024-01-18 18:17:45 +0000 > Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> > CommitDate: 2024-01-18 18:29:10 +0000 > > lang/php82: Update version 8.2.14=>8.2.15 > > Changelog: https://www.php.net/ChangeLog-8.php#8.2.15 > --- > lang/php82/Makefile | 3 +- > lang/php82/distinfo | 6 +-- > lang/php82/files/patch-configure.ac | 4 +- > lang/php82/files/patch-ext_standard_filestat.c | 26 +++++++++++ > lang/php82/files/patch-main_fopen__wrappers.c | 14 ++++++ > lang/php82/files/patch-main_main.c | 14 ++++++ > lang/php82/pkg-plist | 12 ++--- > sysutils/php82-posix/files/patch-posix.c | 62 ++++++++++++++++++++++++++ > 8 files changed, 129 insertions(+), 12 deletions(-) > > diff --git a/lang/php82/files/patch-main_fopen__wrappers.c b/lang/php82/files/patch-main_fopen__wrappers.c > new file mode 100644 > index 000000000000..c07c9a867270 > --- /dev/null > +++ b/lang/php82/files/patch-main_fopen__wrappers.c > @@ -0,0 +1,14 @@ > +--- main/fopen_wrappers.c.orig 2024-01-17 22:32:57 UTC > ++++ main/fopen_wrappers.c > +@@ -369,7 +369,11 @@ PHPAPI int php_fopen_primary_script(zend_file_handle * > + char *pwbuf; > + > + if (pwbuflen < 1) { > ++#if defined(__FreeBSD__) && defined(_SC_PAGESIZE) > ++ buflen = sysconf(_SC_PAGESIZE); Should be pwbuflen. Copy/paste error? Now port is unbuildable. --- main/fopen_wrappers.lo --- /wrkdirs/usr/ports/lang/php82/work/php-8.2.15/main/fopen_wrappers.c:373:5: error: use of undeclared identifier 'buflen'; did you mean 'pwbuflen'? buflen = sysconf(_SC_PAGESIZE); ^~~~~~ pwbuflen /wrkdirs/usr/ports/lang/php82/work/php-8.2.15/main/fopen_wrappers.c:368:9: note: 'pwbuflen' declared here long pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX); ^ 1 error generated. *** [main/fopen_wrappers.lo] Error code 1 > ++#else > + return FAILURE; > ++#endif > + } > + > + pwbuf = emalloc(pwbuflen); -- Sincerely, Dima (fluffy@FreeBSD.org, https://t.me/FluffyBSD) (desktop, kde, x11, office, ports-secteam)@FreeBSD team