Thread: BUG #14943: error in rpm package pgpool-II published in repo pgdg10

BUG #14943: error in rpm package pgpool-II published in repo pgdg10

From
ptim007@yahoo.com
Date:
The following bug has been logged on the website:

Bug reference:      14943
Logged by:          Pierre Timmermans
Email address:      ptim007@yahoo.com
PostgreSQL version: 10.1
Operating system:   Centos 7.4
Description:

In the rpm pgpool-II-10.x86_64 which is in the pgdg10 yum repository there
is an error which causes that pcp_watchdog_info cannot be executed unless
the complete path is specfified

This is because the alternative is not correctly set-up,
/usr/bin/pcp_watchdog is used instead of /usr/bin/pcp_watchdog_info

In the file pgpool-II.spec which is in pgpool-II-10-3.7.0-1.rhel7.src.rpm,
there is the problem: 

%{__update_alternatives} --install /usr/bin/pcp_watchdog
pgpool-pcp_watchdog_info %{pgpoolinstdir}/bin/pcp_watchdog_info
%{pgmajorversion}0

but it should be
%{__update_alternatives} --install /usr/bin/pcp_watchdog_info
pgpool-pcp_watchdog_info %{pgpoolinstdir}/bin/pcp_watchdog_info
%{pgmajorversion}0

Thank you

Pierre