From e956e74705d6d402b51734e29dad4ec6ee1eb37b Mon Sep 17 00:00:00 2001 From: bzhaoop Date: Thu, 26 Aug 2021 07:35:11 +0000 Subject: [PATCH] Avoid private libs explore in public The spec automaticlly provides the libpq.so which is the same with postgresql-libs package. In public area, it should not find 2 or more packages provide the same lib. So this might break the downstream dependencies which using pkgconfig(libpq). For this reason, we hide the gpdb private libs. --- gpdb.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gpdb.spec b/gpdb.spec index bae2421..c0c9c86 100644 --- a/gpdb.spec +++ b/gpdb.spec @@ -1,6 +1,6 @@ NAME: gpdb Version: 6.17.0 -Release: 3 +Release: 4 Summary: Open Source Greenplum Database License: Apache 2.0 @@ -19,6 +19,9 @@ BuildRequires: apr-devel bison bzip2-devel cmake3 flex gcc gcc-c++ krb5-devel li Requires: apr apr-util bash bzip2 curl iproute krb5-devel less libcurl libxml2 libyaml net-tools openldap openssh openssh-clients openssh-server openssl perl readline rsync sed tar which zip zlib Requires: hostname net-tools iputils +%global _privatelibs lib(pq|pgtypes|ecpg_compat|ecpg)\\.so* +%global __provides_exclude %{_privatelibs} + %description Greenplum Database - Massively Parallel PostgreSQL for Analytics. An open-source massively parallel data platform for analytics, machine learning and AI. @@ -73,7 +76,7 @@ export PGUSER=$TEST_USER ulimit -n 65535 make -C gpAux/gpdemo cluster -warmup env +# warmup env sleep 5 source gpAux/gpdemo/gpdemo-env.sh @@ -86,6 +89,9 @@ make installcheck-world /usr/local/greenplum-db-%{version} %changelog +* Thu Aug 26 2021 bzhaoop - 6.17.0-4 +- Fix multiple provides for forbiding the private libs in public area. + * Thu Aug 12 2021 peifengq - 6.17.0-3 - Run full regress conditionally