From 51d068161d80724b9e1ca4afe5ba9d27d57ce127 Mon Sep 17 00:00:00 2001 From: Bhagyashri Date: Tue, 21 Jul 2026 19:58:06 +0530 Subject: [PATCH 1/3] Add pgvector build script --- p/pgvector/pgvector_ubi_9.3.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/p/pgvector/pgvector_ubi_9.3.sh b/p/pgvector/pgvector_ubi_9.3.sh index 7e779a1d68..dab93961ce 100644 --- a/p/pgvector/pgvector_ubi_9.3.sh +++ b/p/pgvector/pgvector_ubi_9.3.sh @@ -17,8 +17,9 @@ # contact "Maintainer" of this script. # # ---------------------------------------------------------------------------- -set -e +set -e PACKAGE_NAME=pgvector +PACKAGE_DIR=pgvector PACKAGE_VERSION=${1:-v0.7.4} PACKAGE_URL=https://github.com/pgvector/pgvector.git POSTGRES_SOURCE_URL=https://ftp.postgresql.org/pub/source/v16.4/postgresql-16.4.tar.gz @@ -68,9 +69,7 @@ su - postgres -c "source /home/postgres/.bash_profile" su - postgres -c "which psql" cd .. -mkdir -p /home/postgres/build -chown -R postgres:postgres /home/postgres/build -cd /home/postgres/build +cd "$BUILD_HOME" # Build and install pgvector git clone $PACKAGE_URL @@ -92,13 +91,16 @@ if ! make OPTFLAGS="" install; then exit 1 fi +wget https://raw.githubusercontent.com/ppc64le/build-scripts/refs/heads/master/p/pgvector/pyproject.toml +sed -i "s/{PACKAGE_VERSION}/$PACKAGE_VERSION/g" pyproject.toml + # Run install check # su - postgres -c "cd pgvector && make installcheck" # Ensure postgres owns test directory -chown -R postgres:postgres /home/postgres/build/${PACKAGE_NAME} +chown -R postgres:postgres "$BUILD_HOME/${PACKAGE_NAME}" -if ! su - postgres -c "cd /home/postgres/build/${PACKAGE_NAME} && make installcheck"; then +if ! su - postgres -c "cd $BUILD_HOME/${PACKAGE_NAME} && make installcheck"; then echo "------------------$PACKAGE_NAME:install_fails---------------------" echo "$PACKAGE_URL $PACKAGE_NAME" echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" @@ -114,4 +116,4 @@ export PGVECTOR_Build='/local/apps/postgresql/pgsql164/lib/vector.so' echo "PostgreSQL and pgvector installation completed." echo "pgvector installation check completed." -echo "pgvector bit binary is available at [$PGVECTOR_Build]." +echo "pgvector bit binary is available at [$PGVECTOR_Build]." \ No newline at end of file From 38d5bd70d7558ba5bebfa18067b3feeafe9fc307 Mon Sep 17 00:00:00 2001 From: Bhagyashri Date: Thu, 23 Jul 2026 12:23:35 +0530 Subject: [PATCH 2/3] Update pgvector_ubi_9.3.sh Fixed issues --- p/pgvector/pgvector_ubi_9.3.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/p/pgvector/pgvector_ubi_9.3.sh b/p/pgvector/pgvector_ubi_9.3.sh index dab93961ce..f311054989 100644 --- a/p/pgvector/pgvector_ubi_9.3.sh +++ b/p/pgvector/pgvector_ubi_9.3.sh @@ -94,6 +94,8 @@ fi wget https://raw.githubusercontent.com/ppc64le/build-scripts/refs/heads/master/p/pgvector/pyproject.toml sed -i "s/{PACKAGE_VERSION}/$PACKAGE_VERSION/g" pyproject.toml +mkdir -p local + # Run install check # su - postgres -c "cd pgvector && make installcheck" @@ -116,4 +118,4 @@ export PGVECTOR_Build='/local/apps/postgresql/pgsql164/lib/vector.so' echo "PostgreSQL and pgvector installation completed." echo "pgvector installation check completed." -echo "pgvector bit binary is available at [$PGVECTOR_Build]." \ No newline at end of file +echo "pgvector bit binary is available at [$PGVECTOR_Build]." From ce4c73f68c58f7cd7b2045619268ab596aed1a1d Mon Sep 17 00:00:00 2001 From: Bhagyashri Date: Thu, 23 Jul 2026 16:37:10 +0530 Subject: [PATCH 3/3] Fix package name for C++ compiler in install script Fixed build failures --- p/pgvector/pgvector_ubi_9.3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/pgvector/pgvector_ubi_9.3.sh b/p/pgvector/pgvector_ubi_9.3.sh index f311054989..807dc51013 100644 --- a/p/pgvector/pgvector_ubi_9.3.sh +++ b/p/pgvector/pgvector_ubi_9.3.sh @@ -29,7 +29,7 @@ BUILD_HOME=$(pwd) # Install update and deps yum update -y -yum install -y make g++ wget git libpq-devel python3-devel.ppc64le python-psycopg2 zlib-devel libicu-devel diffutils +yum install -y make gcc-c++ wget git libpq-devel python3-devel zlib-devel libicu-devel diffutils # Change to home directory