custombuild PHP 8.0 and older on Rocky 9

Driesp

Verified User
Joined
Mar 12, 2007
Messages
165
Location
Belgium
Hi

I want to compile PHP 7.4 on Rocky 9, I have wrote my own patch to get it running, no problem here.
How can I get custombuild to ignore the fact PHP does 'not officially' compile against openssl 3.0?

Code:
php 5.x, 7.x and 8.0 cannot compile against openssl 3.0 or higher. Try php 8.1 or higher.

Save this patch in /usr/local/directadmin/custombuild/php74.patch
and add 'patch -p0 <../php74.patch' before the configure command in custom/php/configure.php74

Code:
diff -Naur ext/openssl/openssl.c patch-php/ext/openssl/openssl.c
--- ext/openssl/openssl.c       2021-07-20 19:08:50.000000000 +0300
+++ patch-php/ext/openssl/openssl.c 2021-07-21 15:44:11.395257764 +0300
@@ -1198,7 +1198,6 @@
    REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOSIGS", CMS_NOSIGS, CONST_CS|CONST_PERSISTENT);

    REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT);
-    REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT);

Kind regards
Dries
 
Back
Top