From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: daniel@linux.ibm.com
Subject: BUG #15765: pgdg-redhat-repo-42.0-3 gpgkey entries don't exist in /etc/yum.repos.d/pgdg-redhat-all.repo
Date: Wed, 17 Apr 2019 07:55:11 +0000
Message-ID: <15765-8d64f5f1f4cbc45e@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15765
Logged by: Daniel Black
Email address: daniel@linux.ibm.com
PostgreSQL version: 9.6.12
Operating system: RHEL7
Description:
The gpgkey entries in /etc/yum.repos.d/pgdg-redhat-all.repo all should be
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
To reproduce:
$ docker run --rm -it registry.access.redhat.com/rhel7/rhel bash
[root@fcdc82a2d430 /]# yum install
https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-ppc64le/pgdg-redhat-repo-latest.noarc...
Loaded plugins: ovl, product-id, search-disabled-repos,
subscription-manager
This system is not registered with an entitlement server. You can use
subscription-manager to register.
Examining /var/tmp/yum-root-um11t2/pgdg-redhat-repo-latest.noarch.rpm:
pgdg-redhat-repo-42.0-3.noarch
Marking /var/tmp/yum-root-um11t2/pgdg-redhat-repo-latest.noarch.rpm to be
installed
Resolving Dependencies
--> Running transaction check
---> Package pgdg-redhat-repo.noarch 0:42.0-3 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================
Package Arch Version
Repository
Size
================================================================================================================================================================
Installing:
pgdg-redhat-repo noarch 42.0-3
/pgdg-redhat-repo-latest.noarch
6.8 k
Transaction Summary
================================================================================================================================================================
Install 1 Package
Total size: 6.8 k
Installed size: 6.8 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : pgdg-redhat-repo-42.0-3.noarch
1/1
Verifying : pgdg-redhat-repo-42.0-3.noarch
1/1
Installed:
pgdg-redhat-repo.noarch 0:42.0-3
Complete!
[root@fcdc82a2d430 /]# rpm -ql pgdg-redhat-repo-42.0-3
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
/etc/yum.repos.d/pgdg-redhat-all.repo
[root@fcdc82a2d430 /]# grep PGDG /etc/yum.repos.d/pgdg-redhat-all.repo
# PGDG Red Hat Enterprise Linux / CentOS / Scientific Linux stable
repositories:
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-12
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-11
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-10
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-96
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-95
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-94
# PGDG Fedora Updates Testing repositories (These packages should not be
used in production)
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-12
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-11
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-10
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-96
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-12
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-12
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-11
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-11
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-10
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-10
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-96
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-96
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-95
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG-94
Also for ppc64le postgresql-9.4 doesn't exists so there shouldn't be a repo
entry for it. A postinstall script like the following maybe:
[ $(uname -m) = ppc64le ] && sed -i -e '/pgdg94/,/^$/d'
/etc/yum.repos.d/pgdg-redhat-all.repo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, daniel@linux.ibm.com
Subject: Re: BUG #15765: pgdg-redhat-repo-42.0-3 gpgkey entries don't exist in /etc/yum.repos.d/pgdg-redhat-all.repo
In-Reply-To: <15765-8d64f5f1f4cbc45e@postgresql.org>
References: <15765-8d64f5f1f4cbc45e@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox