From 63df5bb5d9257f27cbe89a73ddd4fae2a433178a Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Thu, 30 Jul 2026 21:44:25 -0700 Subject: [PATCH 1/2] Added build script for cryptography==44.0.0 for UBI:10.1 --- c/cryptography/build_info.json | 8 ++- .../cryptography_44.0.0_ubi_10.1.sh | 57 +++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 c/cryptography/cryptography_44.0.0_ubi_10.1.sh diff --git a/c/cryptography/build_info.json b/c/cryptography/build_info.json index f9aaa9f764..acb713a208 100644 --- a/c/cryptography/build_info.json +++ b/c/cryptography/build_info.json @@ -1,5 +1,5 @@ { - "maintainer": "ramnathnayak-ibm", + "maintainer": "shivansh-ibm", "package_name": "cryptography", "github_url": "https://github.com/pyca/cryptography", "version": "43.0.1", @@ -15,5 +15,11 @@ }, "43.0.1": { "build_script": "cryptography_43.0.1_ubi_9.3.sh" + }, + "44.0.0": { + "build_script": [ + "cryptography_43.0.1_ubi_9.3.sh", + "cryptograhpy_44.0.0_ubi_10.1.sh" + ] } } diff --git a/c/cryptography/cryptography_44.0.0_ubi_10.1.sh b/c/cryptography/cryptography_44.0.0_ubi_10.1.sh new file mode 100644 index 0000000000..f889de0806 --- /dev/null +++ b/c/cryptography/cryptography_44.0.0_ubi_10.1.sh @@ -0,0 +1,57 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : cryptography +# Version : 44.0.0 +# Source repo : https://github.com/pyca/cryptography.git +# Tested on : UBI:10.1 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2.0 +# Maintainer : Shivansh Sharma +# +# 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. +# +# ---------------------------------------------------------------------------- + +# Variables +PACKAGE_NAME=cryptography +PACKAGE_VERSION=${1:-44.0.0} +PACKAGE_URL=https://github.com/pyca/cryptography.git +PACKAGE_DIR=cryptography + +# Install dependencies +yum install -y git gcc gcc-c++ make sudo wget openssl-devel bzip2-devel libffi-devel zlib-devel python3.12-devel python3.12-pip rust cargo + +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +#cryptography.exceptions.UnsupportedAlgorithm: sha1 is not supported by this backend for RSA signing. so setting this export +export OPENSSL_ENABLE_SHA1_SIGNATURES=1 +#install necessary Python packages +python3.12 -m pip install wheel pytest tox nox cryptography_vectors==$PACKAGE_VERSION pytest-benchmark pretend certifi pytest-cov pytest-xdist + +if ! python3.12 -m pip install .; then + echo "------------------$PACKAGE_NAME:install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Install_Fails" + exit 1 +fi + +if ! pytest; then + echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | 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 | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi + From a90df37297bbd56aac2e0c64778e0ad0f12aaa06 Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Thu, 30 Jul 2026 21:59:59 -0700 Subject: [PATCH 2/2] Added build script for fire==0.4.0 for UBI:10.1 --- f/fire/build_info.json | 10 ++++++-- f/fire/fire_ubi_10.1.sh | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 f/fire/fire_ubi_10.1.sh diff --git a/f/fire/build_info.json b/f/fire/build_info.json index 4e4da372b9..40c52e9dfb 100644 --- a/f/fire/build_info.json +++ b/f/fire/build_info.json @@ -1,5 +1,5 @@ { - "maintainer": "ramnathnayak-ibm", + "maintainer": "shivansh-ibm", "package_name": "fire", "github_url": "https://github.com/google/python-fire", "version": "v0.4.0", @@ -9,5 +9,11 @@ "docker_build": false, "wheel_build": true, "validate_build_script": true, - "use_non_root_user": false + "use_non_root_user": false, + "*": { + "build_scripts": [ + "fire_ubi_9.3.sh", + "fire_ubi_10.1.sh" + ] + } } diff --git a/f/fire/fire_ubi_10.1.sh b/f/fire/fire_ubi_10.1.sh new file mode 100644 index 0000000000..4d4c9f091e --- /dev/null +++ b/f/fire/fire_ubi_10.1.sh @@ -0,0 +1,53 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : fire +# Version : v0.4.0 +# Source repo : https://github.com/google/python-fire +# Tested on : UBI:10.1 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2 or later +# Maintainer : Shivansh Sharma +# +# 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=fire +PACKAGE_VERSION=${1:-v0.4.0} +PACKAGE_URL=https://github.com/google/python-fire +PACKAGE_DIR=python-fire + +yum install -y git python3.12 python3.12-devel python3.12-pip gcc gcc-c++ make wget sudo cmake +python3.12 -m pip install tox setuptools + +# Clone the repository +git clone $PACKAGE_URL +cd $PACKAGE_DIR +git checkout $PACKAGE_VERSION + +# Install +if ! python3.12 setup.py install; then + echo "------------------$PACKAGE_NAME:install_fails------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | $SOURCE | Fail | Install_Failed" + exit 1 +fi + +# Run test cases +if !(python3.12 -m tox -e py3); 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