Skip to content

Commit 24b35f3

Browse files
committed
php: Update phpredis, simdjson and ssdeep extensions
1 parent 6f164de commit 24b35f3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

bin/misp_compile_php_extensions.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ download_and_check () {
1616
}
1717

1818
# Install required packages for build
19-
dnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=False php-devel brotli-devel diffutils file ssdeep-devel
19+
dnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=False php-devel brotli-devel diffutils file
2020

2121
# Fix PHP for GCC 14
2222
sed -i "s/#if __has_feature(c_atomic)/#if __has_feature(c_atomic) \&\& defined(__clang__)/" /usr/include/php/Zend/zend_atomic.h
@@ -37,7 +37,7 @@ mkdir /build/php-modules/
3737
# Compile simdjson
3838
mkdir /tmp/simdjson
3939
cd /tmp/simdjson
40-
download_and_check https://github.com/JakubOnderka/simdjson_php/archive/292309a311edf94db2b5c538a4e677cb93be1c91.tar.gz 4d3e54a16ea96a2f6d04eeb6f9cdde96c144725dd033c0ed44add7b7e198c66b
40+
download_and_check https://github.com/JakubOnderka/simdjson_php/archive/c051b335d9ad1315f0054f9f3db3aff89ebf564d.tar.gz 4ecedd3b5ea659fa4881b6491654de30ee236c7337e4086f50e7bdf3eb4f473d
4141
phpize
4242
CPPFLAGS="$DEFAULT_FLAGS" ./configure --silent
4343
make -j$NPROC
@@ -68,19 +68,21 @@ mv modules/*.so /build/php-modules/
6868
# Compile redis
6969
mkdir /tmp/redis
7070
cd /tmp/redis
71-
download_and_check https://github.com/phpredis/phpredis/archive/refs/tags/6.1.0.tar.gz 57135db32a0ccb1659f56c75feb26c10ea94fb3d2471edd047d94a9800f959b0
71+
download_and_check https://github.com/phpredis/phpredis/archive/f68544f70385e1d431fb0245fafe30b39ee7479a.tar.gz 1b10b3b6abbb6f6c2a39aef0c3621eb95d55e055cdb6f289e790bb7b920b2f16
7272
phpize
7373
CFLAGS="$DEFAULT_FLAGS" ./configure --silent --enable-redis-igbinary
74-
#./configure --silent --enable-redis-igbinary
7574
make -j$NPROC
7675
mv modules/*.so /build/php-modules/
7776

7877
# Compile ssdeep
7978
mkdir /tmp/ssdeep
8079
cd /tmp/ssdeep
81-
download_and_check https://github.com/JakubOnderka/pecl-text-ssdeep/archive/3a2e2d9e5d58fe55003aa8b1f31009c7ad7f54e0.tar.gz 275bb3d6ed93b5897c9b37dac358509c3696239f521453d175ac582c81e23cbb
80+
download_and_check https://github.com/JakubOnderka/pecl-text-ssdeep/archive/aa7ea7045a294548aedc3ccdfbb3936e1716bebd.tar.gz 1b4bc4985bf04fdd6026c5f76f7e4d75be100409235c54eb41aa031a18561299
81+
cd ssdeep
82+
download_and_check https://github.com/ssdeep-project/ssdeep/releases/download/release-2.14.1/ssdeep-2.14.1.tar.gz ff2eabc78106f009b4fb2def2d76fb0ca9e12acf624cbbfad9b3eb390d931313
83+
cd ..
8284
phpize
83-
CFLAGS="$DEFAULT_FLAGS" ./configure --silent --with-ssdeep=/usr --with-libdir=lib64
85+
CFLAGS="$DEFAULT_FLAGS" ./configure --silent --enable-libfuzzy=no --with-libdir=lib64
8486
make -j$NPROC
8587
mv modules/*.so /build/php-modules/
8688

packages

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mod_auth_openidc
44
zip
55
brotli
66
supervisor
7-
ssdeep-libs
87
rsyslog
98
vector
109
crypto-policies-scripts

0 commit comments

Comments
 (0)