From 8ef46c49ece4c11bab610e6de8504fbccbac4940 Mon Sep 17 00:00:00 2001 From: Tejas Badjate Date: Tue, 1 Sep 2026 16:12:56 +0530 Subject: [PATCH 1/4] added script to support UBI10.2 and python3.14 env --- c/cassandra-driver/build_info.json | 50 ++++---- .../cassandra-driver_3.30.1_ubi_10.2.sh | 113 ++++++++++++++++++ 2 files changed, 141 insertions(+), 22 deletions(-) create mode 100644 c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh diff --git a/c/cassandra-driver/build_info.json b/c/cassandra-driver/build_info.json index 50756c4b2c..e9e482c65e 100644 --- a/c/cassandra-driver/build_info.json +++ b/c/cassandra-driver/build_info.json @@ -1,22 +1,28 @@ -{ - "maintainer": "Varsha Kumar", - "package_name": "cassandra-driver", - "github_url": "https://github.com/apache/cassandra-python-driver", - "version": "3.30.1", - "default_branch": "trunk", - "build_script": "cassandra-driver_3.30.1_ubi_9.6.sh", - "package_dir": "c/cassandra-driver", - "docker_build": false, - "wheel_build": true, - "validate_build_script": true, - "use_non_root_user": false, - "3.30.1":{ - "build_script": "cassandra-driver_3.30.1_ubi_9.6.sh" - }, - "3.29.0":{ - "build_script": "cassandra-driver_ubi_9.3.sh" - }, - "*": { - "build_script": "cassandra-driver_3.30.1_ubi_9.6.sh" - } -} +{ + "maintainer": "tejasBadjateIBM", + "package_name": "cassandra-driver", + "github_url": "https://github.com/apache/cassandra-python-driver", + "version": "3.30.1", + "default_branch": "trunk", + "build_script": "cassandra-driver_3.30.1_ubi_10.2.sh", + "package_dir": "c/cassandra-driver", + "docker_build": false, + "wheel_build": true, + "validate_build_script": true, + "use_non_root_user": false, + "3.30.1":{ + "build_script": [ + "cassandra-driver_3.30.1_ubi_10.2.sh", + "cassandra-driver_3.30.1_ubi_9.6.sh" + ] + }, + "3.29.0":{ + "build_script": "cassandra-driver_ubi_9.3.sh" + }, + "*": { + "build_script": [ + "cassandra-driver_3.30.1_ubi_10.2.sh", + "cassandra-driver_3.30.1_ubi_9.6.sh" + ] + } +} diff --git a/c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh b/c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh new file mode 100644 index 0000000000..a41fc1d4cc --- /dev/null +++ b/c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh @@ -0,0 +1,113 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : cassandra-driver +# Version : 3.30.1 +# Source repo : http://github.com/datastax/python-driver +# Tested on : UBI:10.2 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2 or later +# Maintainer : tejasBadjateIBM +# +# Disclaimer: This script has been tested in root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# ---------------------------------------------------------------------------- +PACKAGE_NAME=cassandra-driver +PACKAGE_VERSION=${1:-3.30.1} +PACKAGE_URL=http://github.com/datastax/python-driver +PACKAGE_DIR=python-driver + +# Install dependencies +dnf install -y \ + git \ + make \ + wget \ + sudo \ + openssl-devel \ + bzip2-devel \ + krb5-devel \ + libffi-devel \ + zlib-devel \ + python3.14 \ + python3.14-devel \ + python3.14-pip \ + cargo \ + rust + +yum install gcc-toolset-15 gcc-toolset-15-gcc gcc-toolset-15-gcc-c++ gcc-toolset-15-gcc-gfortran -y + +# --------------------------------------------------------------------------- +# Activate GCC Toolset 15 (SCL removed in UBI 10 — use PATH export) +# --------------------------------------------------------------------------- +if [[ -f /opt/rh/gcc-toolset-15/enable ]]; then + source /opt/rh/gcc-toolset-15/enable +elif [[ -d /opt/rh/gcc-toolset-15/root/usr/bin ]]; then + export PATH="/opt/rh/gcc-toolset-15/root/usr/bin:$PATH" + export LD_LIBRARY_PATH="/opt/rh/gcc-toolset-15/root/usr/lib64:$LD_LIBRARY_PATH" +else + echo "ERROR: gcc-toolset-15 not found" + exit 1 +fi + +export PATH="/opt/rh/gcc-toolset-15/root/usr/bin:$PATH" +export LD_LIBRARY_PATH="/opt/rh/gcc-toolset-15/root/usr/lib64:${LD_LIBRARY_PATH:-}" + +export CC="/opt/rh/gcc-toolset-15/root/usr/bin/gcc" +export CXX="/opt/rh/gcc-toolset-15/root/usr/bin/g++" + +#Install libev +curl -LO https://dist.schmorp.de/libev/Attic/libev-4.33.tar.gz +tar -xzf libev-4.33.tar.gz +cd libev-4.33 +export CFLAGS="-fPIC" +export LDFLAGS="-fPIC" +./configure --disable-shared --enable-static +make -j$(nproc) +make install +cd .. + +# Clone the repository +git clone $PACKAGE_URL +cd $PACKAGE_DIR +git checkout $PACKAGE_VERSION + +#install necessary Python packages +python3.14 -m pip install wheel pytest tox nox mock build gevent eventlet pyopenssl "setuptools<80" +python3.14 -m pip install -r test-requirements.txt + +export CASS_DRIVER_LIBEV_INCLUDES="/usr/local/include" +export CASS_DRIVER_LIBEV_LIBS="/usr/local/lib" +export LDFLAGS="-Wl,-Bstatic -lev -Wl,-Bdynamic" +python3.14 setup.py build_ext --inplace + +#Install +if ! python3.14 -m pip install . --no-build-isolation ; then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi +#Skipping some tests as these are parity with intel and some test dependencies are deprecated with python3.11 and python3.14 +if !(python3.14 -m pytest tests/unit/ \ + -k "not (CloudTests or TestTwistedConnection or _PoolTests or test_timeout_does_not_release_stream_id)" \ + --ignore=tests/unit/io/test_libevreactor.py \ + --ignore=tests/unit/io/test_asyncioreactor.py \ + --ignore=tests/unit/io/test_asyncorereactor.py \ + --ignore=tests/unit/cython/test_bytesio.py \ + --ignore=tests/unit/cython/test_types.py \ + --ignore=tests/unit/cython/test_utils.py -p no:warnings) ; then + echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi \ No newline at end of file From 15b184487a5967343b0c13e9186c1494181aa13f Mon Sep 17 00:00:00 2001 From: Tejas Badjate Date: Tue, 1 Sep 2026 16:14:47 +0530 Subject: [PATCH 2/4] Revert "added script to support UBI10.2 and python3.14 env" This reverts commit 8ef46c49ece4c11bab610e6de8504fbccbac4940. --- c/cassandra-driver/build_info.json | 50 ++++---- .../cassandra-driver_3.30.1_ubi_10.2.sh | 113 ------------------ 2 files changed, 22 insertions(+), 141 deletions(-) delete mode 100644 c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh diff --git a/c/cassandra-driver/build_info.json b/c/cassandra-driver/build_info.json index e9e482c65e..50756c4b2c 100644 --- a/c/cassandra-driver/build_info.json +++ b/c/cassandra-driver/build_info.json @@ -1,28 +1,22 @@ -{ - "maintainer": "tejasBadjateIBM", - "package_name": "cassandra-driver", - "github_url": "https://github.com/apache/cassandra-python-driver", - "version": "3.30.1", - "default_branch": "trunk", - "build_script": "cassandra-driver_3.30.1_ubi_10.2.sh", - "package_dir": "c/cassandra-driver", - "docker_build": false, - "wheel_build": true, - "validate_build_script": true, - "use_non_root_user": false, - "3.30.1":{ - "build_script": [ - "cassandra-driver_3.30.1_ubi_10.2.sh", - "cassandra-driver_3.30.1_ubi_9.6.sh" - ] - }, - "3.29.0":{ - "build_script": "cassandra-driver_ubi_9.3.sh" - }, - "*": { - "build_script": [ - "cassandra-driver_3.30.1_ubi_10.2.sh", - "cassandra-driver_3.30.1_ubi_9.6.sh" - ] - } -} +{ + "maintainer": "Varsha Kumar", + "package_name": "cassandra-driver", + "github_url": "https://github.com/apache/cassandra-python-driver", + "version": "3.30.1", + "default_branch": "trunk", + "build_script": "cassandra-driver_3.30.1_ubi_9.6.sh", + "package_dir": "c/cassandra-driver", + "docker_build": false, + "wheel_build": true, + "validate_build_script": true, + "use_non_root_user": false, + "3.30.1":{ + "build_script": "cassandra-driver_3.30.1_ubi_9.6.sh" + }, + "3.29.0":{ + "build_script": "cassandra-driver_ubi_9.3.sh" + }, + "*": { + "build_script": "cassandra-driver_3.30.1_ubi_9.6.sh" + } +} diff --git a/c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh b/c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh deleted file mode 100644 index a41fc1d4cc..0000000000 --- a/c/cassandra-driver/cassandra-driver_3.30.1_ubi_10.2.sh +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/bash -e -# ----------------------------------------------------------------------------- -# -# Package : cassandra-driver -# Version : 3.30.1 -# Source repo : http://github.com/datastax/python-driver -# Tested on : UBI:10.2 -# Language : Python -# Ci-Check : True -# Script License : Apache License, Version 2 or later -# Maintainer : tejasBadjateIBM -# -# Disclaimer: This script has been tested in root mode on given -# ========== platform using the mentioned version of the package. -# It may not work as expected with newer versions of the -# package and/or distribution. In such case, please -# contact "Maintainer" of this script. -# -# ---------------------------------------------------------------------------- -PACKAGE_NAME=cassandra-driver -PACKAGE_VERSION=${1:-3.30.1} -PACKAGE_URL=http://github.com/datastax/python-driver -PACKAGE_DIR=python-driver - -# Install dependencies -dnf install -y \ - git \ - make \ - wget \ - sudo \ - openssl-devel \ - bzip2-devel \ - krb5-devel \ - libffi-devel \ - zlib-devel \ - python3.14 \ - python3.14-devel \ - python3.14-pip \ - cargo \ - rust - -yum install gcc-toolset-15 gcc-toolset-15-gcc gcc-toolset-15-gcc-c++ gcc-toolset-15-gcc-gfortran -y - -# --------------------------------------------------------------------------- -# Activate GCC Toolset 15 (SCL removed in UBI 10 — use PATH export) -# --------------------------------------------------------------------------- -if [[ -f /opt/rh/gcc-toolset-15/enable ]]; then - source /opt/rh/gcc-toolset-15/enable -elif [[ -d /opt/rh/gcc-toolset-15/root/usr/bin ]]; then - export PATH="/opt/rh/gcc-toolset-15/root/usr/bin:$PATH" - export LD_LIBRARY_PATH="/opt/rh/gcc-toolset-15/root/usr/lib64:$LD_LIBRARY_PATH" -else - echo "ERROR: gcc-toolset-15 not found" - exit 1 -fi - -export PATH="/opt/rh/gcc-toolset-15/root/usr/bin:$PATH" -export LD_LIBRARY_PATH="/opt/rh/gcc-toolset-15/root/usr/lib64:${LD_LIBRARY_PATH:-}" - -export CC="/opt/rh/gcc-toolset-15/root/usr/bin/gcc" -export CXX="/opt/rh/gcc-toolset-15/root/usr/bin/g++" - -#Install libev -curl -LO https://dist.schmorp.de/libev/Attic/libev-4.33.tar.gz -tar -xzf libev-4.33.tar.gz -cd libev-4.33 -export CFLAGS="-fPIC" -export LDFLAGS="-fPIC" -./configure --disable-shared --enable-static -make -j$(nproc) -make install -cd .. - -# Clone the repository -git clone $PACKAGE_URL -cd $PACKAGE_DIR -git checkout $PACKAGE_VERSION - -#install necessary Python packages -python3.14 -m pip install wheel pytest tox nox mock build gevent eventlet pyopenssl "setuptools<80" -python3.14 -m pip install -r test-requirements.txt - -export CASS_DRIVER_LIBEV_INCLUDES="/usr/local/include" -export CASS_DRIVER_LIBEV_LIBS="/usr/local/lib" -export LDFLAGS="-Wl,-Bstatic -lev -Wl,-Bdynamic" -python3.14 setup.py build_ext --inplace - -#Install -if ! python3.14 -m pip install . --no-build-isolation ; then - echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" - echo "$PACKAGE_URL $PACKAGE_NAME" - echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" - exit 1 -fi -#Skipping some tests as these are parity with intel and some test dependencies are deprecated with python3.11 and python3.14 -if !(python3.14 -m pytest tests/unit/ \ - -k "not (CloudTests or TestTwistedConnection or _PoolTests or test_timeout_does_not_release_stream_id)" \ - --ignore=tests/unit/io/test_libevreactor.py \ - --ignore=tests/unit/io/test_asyncioreactor.py \ - --ignore=tests/unit/io/test_asyncorereactor.py \ - --ignore=tests/unit/cython/test_bytesio.py \ - --ignore=tests/unit/cython/test_types.py \ - --ignore=tests/unit/cython/test_utils.py -p no:warnings) ; then - echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" - echo "$PACKAGE_URL $PACKAGE_NAME" - echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" - exit 2 -else - echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" - echo "$PACKAGE_URL $PACKAGE_NAME" - echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" - exit 0 -fi \ No newline at end of file From 6a908bf17b759a9881f51a09c0f11414561f35dc Mon Sep 17 00:00:00 2001 From: Tejas Badjate Date: Tue, 1 Sep 2026 16:39:04 +0530 Subject: [PATCH 3/4] added script to support UBI10.2 and python3.14 env --- i/ijson/build_info.json | 38 ++++++++++------- i/ijson/ijson_ubi_10.2.sh | 87 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 16 deletions(-) create mode 100644 i/ijson/ijson_ubi_10.2.sh diff --git a/i/ijson/build_info.json b/i/ijson/build_info.json index dc6d61c329..c396f5d94a 100644 --- a/i/ijson/build_info.json +++ b/i/ijson/build_info.json @@ -1,16 +1,22 @@ -{ - "maintainer": "shivansh-ibm", - "package_name": "ijson", - "github_url": "https://github.com/ICRAR/ijson.git", - "version": "v3.4.0", - "wheel_build" : true, - "package_dir": "i/ijson", - "default_branch": "master", - "build_script": "ijson_ubi_9.3.sh", - "docker_build": false, - "validate_build_script": true, - "use_non_root_user": "false", - "*": { - "build_script": "ijson_ubi_9.3.sh" - } - } +{ + "maintainer": "tejasBadjateIBM", + "package_name": "ijson", + "github_url": "https://github.com/ICRAR/ijson.git", + "version": "v3.5.1", + "wheel_build" : true, + "package_dir": "i/ijson", + "default_branch": "master", + "build_script": "ijson_ubi_10.2.sh", + "docker_build": false, + "validate_build_script": true, + "use_non_root_user": "false", + "v3.5.1" : { + "build_script": "ijson_ubi_10.2.sh" + }, + "*": { + "build_script": [ + "ijson_ubi_9.3.sh", + "ijson_ubi_10.2.sh" + ] + } + } diff --git a/i/ijson/ijson_ubi_10.2.sh b/i/ijson/ijson_ubi_10.2.sh new file mode 100644 index 0000000000..7e6538dd8a --- /dev/null +++ b/i/ijson/ijson_ubi_10.2.sh @@ -0,0 +1,87 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : ijson +# Version : 3.5.1 +# Source repo : https://github.com/ICRAR/ijson.git +# Tested on : UBI:10.2 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2 or later +# Maintainer : tejasBadjateIBM +# +# Disclaimer: This script has been tested in root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# ----------------------------------------------------------------------------- + +PACKAGE_NAME=ijson +PACKAGE_VERSION=${1:-v3.5.1} +PACKAGE_URL=https://github.com/ICRAR/ijson.git +PACKAGE_DIR=ijson +CURRENT_DIR=${PWD} + +# Update system and install dependencies +yum install -y git make automake autoconf python3.14 python3.14-devel python3.14-pip cmake + +yum install gcc-toolset-15 gcc-toolset-15-gcc gcc-toolset-15-gcc-c++ gcc-toolset-15-gcc-gfortran -y + +# --------------------------------------------------------------------------- +# Activate GCC Toolset 15 (SCL removed in UBI 10 — use PATH export) +# --------------------------------------------------------------------------- +if [[ -f /opt/rh/gcc-toolset-15/enable ]]; then + source /opt/rh/gcc-toolset-15/enable +elif [[ -d /opt/rh/gcc-toolset-15/root/usr/bin ]]; then + export PATH="/opt/rh/gcc-toolset-15/root/usr/bin:$PATH" + export LD_LIBRARY_PATH="/opt/rh/gcc-toolset-15/root/usr/lib64:$LD_LIBRARY_PATH" +else + echo "ERROR: gcc-toolset-15 not found" + exit 1 +fi + +export PATH="/opt/rh/gcc-toolset-15/root/usr/bin:$PATH" +export LD_LIBRARY_PATH="/opt/rh/gcc-toolset-15/root/usr/lib64:${LD_LIBRARY_PATH:-}" + +export CC="/opt/rh/gcc-toolset-15/root/usr/bin/gcc" +export CXX="/opt/rh/gcc-toolset-15/root/usr/bin/g++" + +#install yajl from source +git clone https://github.com/lloyd/yajl.git +cd yajl +mkdir build +cd build +cmake .. +make -j$(nproc) +make install +export LD_LIBRARY_PATH=$(find "$(pwd)" -maxdepth 1 -type d -name "yajl-*" -exec realpath {}/lib \;):$LD_LIBRARY_PATH +cd $CURRENT_DIR + +python3.14 -m pip install build wheel pytest +# Clone the repository +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +# Install the package +if ! python3.14 -m pip install .; then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +# Run tests +if ! python3.14 -m pytest; then + echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi \ No newline at end of file From 6759ab849271e2bc01b911ce9b729e7900a27f1a Mon Sep 17 00:00:00 2001 From: Tejas Badjate Date: Wed, 2 Sep 2026 14:37:36 +0530 Subject: [PATCH 4/4] fixed the version syntax --- i/ijson/ijson_ubi_10.2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i/ijson/ijson_ubi_10.2.sh b/i/ijson/ijson_ubi_10.2.sh index 7e6538dd8a..890ebe4344 100644 --- a/i/ijson/ijson_ubi_10.2.sh +++ b/i/ijson/ijson_ubi_10.2.sh @@ -2,7 +2,7 @@ # ----------------------------------------------------------------------------- # # Package : ijson -# Version : 3.5.1 +# Version : v3.5.1 # Source repo : https://github.com/ICRAR/ijson.git # Tested on : UBI:10.2 # Language : Python