Thanks, that got me up and going.
Search Criteria
Package Details: php74-pspell 7.4.33-9
Package Actions
Git Clone URL: | https://aur.archlinux.org/php74.git (read-only, click to copy) |
---|---|
Package Base: | php74 |
Description: | pspell module for php74 |
Upstream URL: | http://www.php.net |
Licenses: | PHP |
Submitter: | tompear |
Maintainer: | el_aur |
Last Packager: | el_aur |
Votes: | 11 |
Popularity: | 0.001095 |
First Submitted: | 2021-01-31 11:48 (UTC) |
Last Updated: | 2024-07-25 13:43 (UTC) |
Dependencies (57)
- aspell (aspell-gitAUR)
- php74AUR
- acl (acl-gitAUR) (make)
- apache (apache-gitAUR) (make)
- argon2 (argon2-gitAUR) (make)
- aspell (aspell-gitAUR) (make)
- autoconf (autoconf-gitAUR) (make)
- automake (automake-gitAUR) (make)
- bash (bash-devel-gitAUR, bash-gitAUR) (make)
- c-clientAUR (make)
- coreutils (coreutils-gitAUR, coreutils-selinuxAUR, coreutils-uutilsAUR, coreutils-uutils-symlinkAUR) (make)
- curl (curl-gitAUR, curl-c-aresAUR) (make)
- db5.3 (make)
- e2fsprogs (e2fsprogs-gitAUR) (make)
- enchant (make)
- findutils (findutils-gitAUR, findutils-selinuxAUR) (make)
- freetds (make)
- gawk (gawk-gitAUR) (make)
- gd (gd-gitAUR) (make)
- gmp (gmp-hgAUR) (make)
- Show 37 more dependencies...
Required by (0)
Sources (16)
- debian-php-7.4.patch
- https://php.net/distributions/php-7.4.33.tar.xz
- icu-74-php-7.4.patch
- libxml-21200-php-7.0.patch
- libxml-pear.patch
- litespeed-phpheader.patch
- make-tests.patch
- mysql-socket-php7.1.patch
- pear-config-patcher.php
- php-apache.conf
- php-libxml.patch
- php-makefile-patcher.php
- php-phpinfo.patch
- php74-enchant.patch
- timezonedb-guess.patch
- timezonedb-php7.4.patch
ecognito commented on 2025-05-01 09:43 (UTC)
maxrd2 commented on 2025-05-01 08:08 (UTC)
I've worked around the build issues with patching files like this:
diff --git a/PKGBUILD b/PKGBUILD
index 02871df..2eebe43 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -515,8 +515,8 @@ _build_sapi() {
# BUILD them all
################################################################################
build() {
- export CFLAGS="${CFLAGS} -fPIC -Wno-error=incompatible-pointer-types"
- export CXXFLAGS="${CXXFLAGS} -fPIC -Wno-error=incompatible-pointer-types -std=c++17"
+ export CFLAGS="${CFLAGS} -fPIC -Wno-error=incompatible-pointer-types -DATTRIBUTE_UNUSED="
+ export CXXFLAGS="${CXXFLAGS} -fPIC -Wno-error=incompatible-pointer-types -std=c++17 -DATTRIBUTE_UNUSED="
if ((_phpbase <= 73)); then
export CFLAGS="${CFLAGS} -Wno-implicit-function-declaration -fpermissive"
export CXXFLAGS="${CXXFLAGS} -Wno-implicit-function-declaration -fpermissive"
and for compiler errors had to patch some C files:
diff -u -r php74/src/php-7.4.33/ext/gd/gd.c php74.fixed/src/php-7.4.33/ext/gd/gd.c
--- php74/src/php-7.4.33/ext/gd/gd.c 2022-10-31 11:36:07.000000000 +0100
+++ php74.fixed/src/php-7.4.33/ext/gd/gd.c 2025-05-01 10:03:25.330466265 +0200
@@ -138,9 +138,9 @@
static void php_image_filter_scatter(INTERNAL_FUNCTION_PARAMETERS);
/* End Section filters declarations */
-static gdImagePtr _php_image_create_from_string (zval *Data, char *tn, gdImagePtr (*ioctx_func_p)());
-static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(), gdImagePtr (*ioctx_func_p)());
-static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)());
+static gdImagePtr _php_image_create_from_string (zval *Data, char *tn, gdImagePtr (*ioctx_func_p)(...));
+static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(...), gdImagePtr (*ioctx_func_p)(...));
+static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)(...));
static int _php_image_type(char data[12]);
static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type);
@@ -2330,7 +2330,7 @@
/* {{{ _php_image_create_from_string
*/
-gdImagePtr _php_image_create_from_string(zval *data, char *tn, gdImagePtr (*ioctx_func_p)())
+gdImagePtr _php_image_create_from_string(zval *data, char *tn, gdImagePtr (*ioctx_func_p)(...))
{
gdImagePtr im;
gdIOCtx *io_ctx;
@@ -2440,7 +2440,7 @@
/* {{{ _php_image_create_from
*/
-static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(), gdImagePtr (*ioctx_func_p)())
+static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, gdImagePtr (*func_p)(...), gdImagePtr (*ioctx_func_p)(...))
{
char *file;
size_t file_len;
@@ -2667,7 +2667,7 @@
/* {{{ _php_image_output
*/
-static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)())
+static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)(...))
{
zval *imgind;
char *file = NULL;
diff -u -r php74/src/php-7.4.33/ext/gd/gd_ctx.c php74.fixed/src/php-7.4.33/ext/gd/gd_ctx.c
--- php74/src/php-7.4.33/ext/gd/gd_ctx.c 2022-10-31 11:36:06.000000000 +0100
+++ php74.fixed/src/php-7.4.33/ext/gd/gd_ctx.c 2025-05-01 10:03:25.323466210 +0200
@@ -77,7 +77,7 @@
} /* }}} */
/* {{{ _php_image_output_ctx */
-static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)())
+static void _php_image_output_ctx(INTERNAL_FUNCTION_PARAMETERS, int image_type, char *tn, void (*func_p)(...))
{
zval *imgind;
char *file = NULL;
diff -u -r php74/src/php-7.4.33/ext/standard/scanf.c php74.fixed/src/php-7.4.33/ext/standard/scanf.c
--- php74/src/php-7.4.33/ext/standard/scanf.c 2022-10-31 11:36:13.000000000 +0100
+++ php74.fixed/src/php-7.4.33/ext/standard/scanf.c 2025-05-01 10:03:25.490467498 +0200
@@ -585,7 +585,7 @@
int base = 0;
int underflow = 0;
size_t width;
- zend_long (*fn)() = NULL;
+ zend_long (*fn)(...) = NULL;
char *ch, sch;
int flags;
char buf[64]; /* Temporary buffer to hold scanned number
ecognito commented on 2025-05-01 01:23 (UTC)
Having errors trying to build this, around some of the libxml parts.
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c:479:47: error: expected ‘;’, ‘,’ or ‘)’ before ‘ATTRIBUTE_UNUSED’
479 | int compression ATTRIBUTE_UNUSED)
| ^~~~~~~~~~~~~~~~
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c: In function ‘php_libxml_shutdown’:
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c:834:17: warning: ‘xmlRelaxNGCleanupTypes’ is deprecated [-Wdeprecated-declarations]
834 | xmlRelaxNGCleanupTypes();
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c:41:
/usr/include/libxml2/libxml/relaxng.h:125:21: note: declared here
125 | xmlRelaxNGCleanupTypes (void);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c: In function ‘zm_startup_libxml’:
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c:928:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’?
928 | xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| php_libxml_input_buffer_create_filename
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c:928:54: note: each undeclared identifier is reported only once for each function it appears in
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c: In function ‘zm_activate_libxml’:
/home/evan/downloads/temp/php74/src/php-7.4.33/ext/libxml/libxml.c:941:54: error: ‘php_libxml_output_buffer_create_filename’ undeclared (first use in this function); did you mean ‘php_libxml_input_buffer_create_filename’?
941 | xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| php_libxml_input_buffer_create_filename
Any ideas?
andreas_baumann commented on 2024-07-07 17:15 (UTC)
Can confirm 7.4.33-8 builds and runs fine. Thanks. :-) I'm lucky I don't need neither PECL nor PEAR modules..
el_aur commented on 2024-07-07 09:11 (UTC)
Have killed pear/pecl packages. Try now
felipec commented on 2024-07-04 05:19 (UTC)
I'm getting the same error building php74-pear.
tabun commented on 2024-06-23 08:30 (UTC)
get error
File was not found /build/php74/pkg/php74-pear/etc/php74/pear.conf
for now just skip install pear
lkrms commented on 2024-06-18 12:52 (UTC)
Trying to rebuild this today and getting an error on package_php74-pear
:
~/php74/src/build-cli ~/php74/src
[PEAR] Archive_Tar - installed: 1.4.14
[PEAR] Console_Getopt - installed: 1.4.3
[PEAR] Structures_Graph- installed: 1.1.1
[PEAR] XML_Util - installed: 1.4.5
[PEAR] PEAR: Invalid tag order in <dependencies>, found <_content> expected one of "group"
[PEAR] PEAR: Parsing of package.xml from file "/tmp/pear/temp/pearE8reoa/package.xml" failed
Warning: fopen(/build/php74/pkg/php74-pear/etc/php74/pear.conf): failed to open stream: No such file or directory in /startdir/pear-config-patcher.php on line 14
File was not found /build/php74/pkg/php74-pear/etc/php74/pear.conf
el_aur commented on 2024-05-24 12:15 (UTC)
@maxrd2 thanks for the patch. Except killing litespeed it's ok :) Took CFLAGS fix from it. Made lightspeed patch by myself.
maxrd2 commented on 2024-05-21 15:16 (UTC)
I had to apply this patch today in order to compile with new ICU and gcc.
Pinned Comments
el_aur commented on 2022-01-27 12:06 (UTC) (edited on 2022-02-01 21:33 (UTC) by el_aur)
Read Carefully! Breaking changes in compare with native PHP package
Console version
/usr/bin/php74
is installed withphp74-cli
subpackage,php74
doesn't include it anymore!!!PEAR and PECL are available as
php74-pear
andphp74-pecl
subpackagesAll shared modules are respresented as stand-alone subpackages and are not included with
php74
package anymore.No more extensions in php.ini itself! Separate INI files for each extension are placed in
/etc/php74/conf.d
They are loaded in correct order according to priorityModules: mysqlnd, mysqli and pdo_mysql are moved to single package
php74-mysql
php74-xsl
requiresphp74-xml
andphp74-dom
to be installedphp74-enchant
build with dependencies:libvoikko
,hspell
,hunspell
,nuspell
,aspell