From 1dd177012aab78da6465a755bbb040f4d94792a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sloup?= Date: Thu, 1 Sep 2022 19:26:02 +0200 Subject: [PATCH] Add dependency on util-linux (rhbz#2071437) If the PostgreSQL package is run on a minimal machine such as podman container, the installation script will fail because it lacks a util-linux library which is not installed. The util-linux can be required for installation to fix this issue. This dependency was added. --- postgresql.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/postgresql.spec b/postgresql.spec index d09d143..59e357c 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -65,7 +65,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 14 Version: %{majorversion}.3 -Release: 9%{?dist} +Release: 10%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. @@ -244,6 +244,8 @@ Requires(pre): /usr/sbin/useradd Requires: systemd # Make sure it's there when scriptlets run, too %{?systemd_requires} +# We require this to be present for /usr/sbin/runuser when using --initdb (rhbz#2071437) +Requires: util-linux # postgresql setup requires runuser from util-linux package BuildRequires: util-linux # Packages which provide postgresql plugins should build-require @@ -1263,6 +1265,9 @@ make -C postgresql-setup-%{setup_version} check %changelog +* Thu Sep 01 2022 Ondrej Sloup - 14.3-10 +- Add dependency on util-linux to make runuser available (rhbz#2071437) + * Mon Aug 29 2022 Filip Janus - 14.3-9 - Do not provide pkgconfig(libpq) to not trick packages that actually require libpq-devel