Skip to content
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
38 changes: 22 additions & 16 deletions i/ijson/build_info.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
87 changes: 87 additions & 0 deletions i/ijson/ijson_ubi_10.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/bin/bash -e
# -----------------------------------------------------------------------------
#
# Package : ijson
# Version : v3.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 <Tejas.Badjate@ibm.com>
#
# 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
Loading