Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing php-8.3 packages #30295

Merged
merged 5 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions php-8.1-pecl-http.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-8.1-pecl-http
version: 4.2.3
epoch: 6
version: 4.2.4
epoch: 0
description: "Provides PHP 8.1 HTTP module for PHP Extended HTTP Support- PECL"
copyright:
- license: BSD-2-Clause
Expand Down Expand Up @@ -33,7 +33,7 @@ pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/pecl_http-${{package.version}}.tgz
expected-sha512: be8bac0947e9fb63da5afa3eaf7b75a70775ca59a8a8c24b5f4b1875909dd8b6b2f4b25bf462acef78f18d5dd739c02352786853d9963cb71f3c1b114f113558
expected-sha256: fb1e10c2e5edfb011ff8dc2e473cdbd2bbe0127d1279dfce4d98570555ac6ded

- uses: pecl/phpize

Expand Down
6 changes: 3 additions & 3 deletions php-8.1-pecl-pdosqlsrv.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-8.1-pecl-pdosqlsrv
version: 5.11.1
epoch: 3
version: 5.12.0
epoch: 0
description: "Provides PHP 8.1 Microsoft Drivers for SQL Server (PDO_SQLSRV) - PECL"
copyright:
- license: MIT
Expand Down Expand Up @@ -29,7 +29,7 @@ pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/pdo_sqlsrv-${{package.version}}.tgz
expected-sha512: 6bcf39b9948fdc06261f4e901de988c33b27422d5677c6ec8234625f49ad702186e5e02bcb5264945e0bc5fd4de3389ec014e125856625837dbd884776747faa
expected-sha256: 22f0cb17b45f0deccd0bba072ee0085ff4094cd6ee2acc26f7f924975ef652c6

- uses: pecl/phpize

Expand Down
6 changes: 3 additions & 3 deletions php-8.1-pecl-sqlsrv.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-8.1-pecl-sqlsrv
version: 5.11.1
epoch: 3
version: 5.12.0
epoch: 0
description: "Provides PHP 8.1 Microsoft Drivers for SQL Server (SQLSRV) - PECL"
copyright:
- license: MIT
Expand Down Expand Up @@ -29,7 +29,7 @@ pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/sqlsrv-${{package.version}}.tgz
expected-sha512: ee63d7225b7ea8d26e8f53ed25e94fb356cefd3c463405bad1a3543edb820c6b5e3c554842b0190352c521c7aa314f42b6590b8b3cb859fead1f05348fb43f46
expected-sha256: a9ebb880b2a558d3d6684f6e6802c53c5bffa49e1ee60d1473a7124fc9cb72ad

- uses: pecl/phpize

Expand Down
6 changes: 3 additions & 3 deletions php-8.2-pecl-http.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-8.2-pecl-http
version: 4.2.3
epoch: 6
version: 4.2.4
epoch: 0
description: "Provides PHP 8.2 HTTP module for PHP Extended HTTP Support- PECL"
copyright:
- license: BSD-2-Clause
Expand Down Expand Up @@ -33,7 +33,7 @@ pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/pecl_http-${{package.version}}.tgz
expected-sha512: be8bac0947e9fb63da5afa3eaf7b75a70775ca59a8a8c24b5f4b1875909dd8b6b2f4b25bf462acef78f18d5dd739c02352786853d9963cb71f3c1b114f113558
expected-sha256: fb1e10c2e5edfb011ff8dc2e473cdbd2bbe0127d1279dfce4d98570555ac6ded

- uses: pecl/phpize

Expand Down
6 changes: 3 additions & 3 deletions php-8.2-pecl-pdosqlsrv.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-8.2-pecl-pdosqlsrv
version: 5.11.1
epoch: 3
version: 5.12.0
epoch: 0
description: "Provides PHP 8.2 Microsoft Drivers for SQL Server (PDO_SQLSRV) - PECL"
copyright:
- license: MIT
Expand Down Expand Up @@ -29,7 +29,7 @@ pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/pdo_sqlsrv-${{package.version}}.tgz
expected-sha512: 6bcf39b9948fdc06261f4e901de988c33b27422d5677c6ec8234625f49ad702186e5e02bcb5264945e0bc5fd4de3389ec014e125856625837dbd884776747faa
expected-sha256: 22f0cb17b45f0deccd0bba072ee0085ff4094cd6ee2acc26f7f924975ef652c6

- uses: pecl/phpize

Expand Down
6 changes: 3 additions & 3 deletions php-8.2-pecl-sqlsrv.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: php-8.2-pecl-sqlsrv
version: 5.11.1
epoch: 2
version: 5.12.0
epoch: 0
description: "Provides PHP 8.2 Microsoft Drivers for SQL Server (SQLSRV) - PECL"
copyright:
- license: MIT
Expand Down Expand Up @@ -29,7 +29,7 @@ pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/sqlsrv-${{package.version}}.tgz
expected-sha512: ee63d7225b7ea8d26e8f53ed25e94fb356cefd3c463405bad1a3543edb820c6b5e3c554842b0190352c521c7aa314f42b6590b8b3cb859fead1f05348fb43f46
expected-sha256: a9ebb880b2a558d3d6684f6e6802c53c5bffa49e1ee60d1473a7124fc9cb72ad

- uses: pecl/phpize

Expand Down
73 changes: 73 additions & 0 deletions php-8.3-pdo_snowflake.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
package:
name: php-8.3-pdo_snowflake
version: 3.0.2
epoch: 0
description: "Snowflake driver that uses the PHP Data Objects (PDO) extension"
copyright:
- license: Apache-2.0
# Only appears to work for x86_64.
# https://github.com/snowflakedb/pdo_snowflake/issues/338
target-architecture:
- x86_64
dependencies:
runtime:
- php-8.3

environment:
contents:
packages:
- autoconf
- automake
- bash
- binutils
- bison
- build-base
- busybox
- ca-certificates-bundle
- cmake
- gcc
- libtool
- openssf-compiler-options
- php-8.3
- php-8.3-dev
- php-8.3-pdo
- unixodbc-dev
- zlib-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/snowflakedb/pdo_snowflake
expected-commit: 76b7a1bf24d3519c5e85c15741732904765ee240
tag: v${{package.version}}

- name: Run and build
runs: |
# The build files because there's a Werror and there are unused functions.
# Best guess is that their release was created with an older version
# of gcc, which didn't consider that a failure. Because we build this from
# a script, we can't just set CFLAGS, so we have to edit the script.
# Note. This also modifies the make clean target, but since we do not use
# it, it is not a problem.
# https://github.com/snowflakedb/pdo_snowflake/issues/339
sed -i -e 's@make@make CFLAGS="-Wno-unused-function $CFLAGS"@' ./scripts/build_pdo_snowflake.sh
PHP_HOME=/usr ./scripts/build_pdo_snowflake.sh

- name: Install
runs: |
# https://github.com/snowflakedb/pdo_snowflake#installing-the-driver-on-linux-and-macos
mkdir -p ${{targets.destdir}}
mkdir -p ${{targets.destdir}}/usr/lib/php/modules
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=pdo_snowflake.so" > ${{targets.destdir}}/etc/php/conf.d/20-pdo_snowflake.ini
echo "pdo_snowflake.cacert=/etc/php/conf.d/cacert.pem" >> ${{targets.destdir}}/etc/php/conf.d/20-pdo_snowflake.ini
cp ./modules/pdo_snowflake.so ${{targets.destdir}}/usr/lib/php/modules/
cp ./libsnowflakeclient/cacert.pem ${{targets.destdir}}/etc/php/conf.d

- uses: strip

update:
enabled: true
github:
identifier: snowflakedb/pdo_snowflake
strip-prefix: v
54 changes: 54 additions & 0 deletions php-8.3-pecl-http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package:
name: php-8.3-pecl-http
version: 4.2.4
epoch: 0
description: "Provides PHP 8.3 HTTP module for PHP Extended HTTP Support- PECL"
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- php-8.3

environment:
contents:
packages:
- autoconf
- automake
- binutils
- build-base
- busybox
- ca-certificates-bundle
- cmake
- curl-dev
- gcc
- icu-dev
- libtool
- openssf-compiler-options
- openssl-dev
- php-8.3-dev
- php-8.3-pecl-raphf
- zlib-dev

pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/pecl_http-${{package.version}}.tgz
expected-sha256: fb1e10c2e5edfb011ff8dc2e473cdbd2bbe0127d1279dfce4d98570555ac6ded

- uses: pecl/phpize

- uses: autoconf/make

# TODO: This is a temporary workaround until the pecl/install pipelines
# propagates through.
# https://github.com/chainguard-dev/melange/pull/1068
- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=http.so" > ${{targets.destdir}}/etc/php/conf.d/http.ini

- uses: strip

update:
enabled: false
54 changes: 54 additions & 0 deletions php-8.3-pecl-mcrypt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package:
name: php-8.3-pecl-mcrypt
version: 1.0.7
epoch: 0
description: "Provides PHP 8.3 bindings for the unmaintained libmcrypt - PECL"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- php-8.3

environment:
contents:
packages:
- autoconf
- automake
- binutils
- build-base
- busybox
- ca-certificates-bundle
- cmake
- gcc
- libmcrypt-dev
- libtool
- php-8.3-dev

pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/mcrypt-${{package.version}}.tgz
expected-sha512: 1b579af868a2db073520437ad6a93513c2591bc865d982dc7926591e712614995148d13bacc1b4b207ddecda4bad219b67010a39ea17e1ec6e180d4fd69182ff

- name: phpize and configure
runs: |
phpize
./configure --prefix=/usr --with-php-config=php-config

- uses: autoconf/make

- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=mcrypt.so" > ${{targets.destdir}}/etc/php/conf.d/mcrypt.ini

- uses: strip

update:
enabled: true
github:
identifier: php/pecl-encryption-mcrypt
use-tag: true
# ignore version 2.x.y tags, 1.x.y is the only mentioned version on https://pecl.php.net/package/mcrypt
tag-filter: "1."
55 changes: 55 additions & 0 deletions php-8.3-pecl-mongodb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package:
name: php-8.3-pecl-mongodb
version: 1.20.0
epoch: 0
description: "PHP 8.3 MongoDB driver - PECL"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- php-8.3

environment:
contents:
packages:
- autoconf
- automake
- binutils
- build-base
- busybox
- ca-certificates-bundle
- cmake
- cyrus-sasl-dev
- gcc
- icu-dev
- libtool
- openssl-dev>3
- php-8.3-dev
- snappy-dev
- zstd-dev

pipeline:
- uses: fetch
with:
uri: https://pecl.php.net/get/mongodb-${{package.version}}.tgz
expected-sha512: 715b40616c9c61294dc2947ddbc1b2bf2ecac02654fcbcdec5394acf1e44365f1a96f15d3459b57e50fa2f125f44d406d7bdb6306c13b9ffa892686c4cdc3cee

- name: phpize and configure
runs: |
phpize
./configure --prefix=/usr --with-php-config=php-config

- uses: autoconf/make

- name: Install
runs: |
make INSTALL_ROOT="${{targets.destdir}}" install
install -d ${{targets.destdir}}/etc/php/conf.d
echo "extension=mongodb.so" > ${{targets.destdir}}/etc/php/conf.d/mongodb.ini

- uses: strip

update:
enabled: true
release-monitor:
identifier: 11158
Loading
Loading