patroni rhel7.x86_64 RPM package spec issue

From: rh(at)vonng(dot)com
To: pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: patroni rhel7.x86_64 RPM package spec issue
Date: 2022-08-25 02:25:47
Message-ID: 405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi admin team:

patroni-2.1.4-1.rhel7.x86_64 create unnecessary %{_logdir} %{_sysconfigdir} dir under root path : /
Seems like a bug in the rpm spec file.

and 2.1.3-1.rhel7.x86_64 also have this issue

https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.4-1.rhel7.x86_64.rpm <https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.4-1.rhel7.x86_64.rpm>
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.3-1.rhel7.x86_64.rpm <https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.3-1.rhel7.x86_64.rpm>

I doubt that other arch/release may have the same issue.

BTW, is here the right place for this sort of problem?

Regards.
Vonng

How to reproduce: install patroni rpm and `/%{_sysconfigdir}` `%{_logdir}` will be created.

```
[08-25 10:14:03] root(at)pg-test-3:/
$ ls
bin data etc lib %{_logdir} media opt proc run srv %{_sysconfigdir} usr
boot dev home lib64 lost+found mnt pg root sbin sys tmp var

[08-25 10:14:07] root(at)pg-test-3:/
$ rm -rf /%*

[08-25 10:14:17] root(at)pg-test-3:/
$ yum remove -q -y patroni

[08-25 10:14:24] root(at)pg-test-3:/
$ ls
bin boot data dev etc home lib lib64 lost+found media mnt opt pg proc root run sbin srv sys tmp usr var

[08-25 10:14:28] root(at)pg-test-3:/
$ yum install -y patroni
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package patroni.x86_64 0:2.1.4-1.rhel7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================
Installing:
patroni x86_64 2.1.4-1.rhel7 pigsty 866 k

Transaction Summary
===========================================================================================================================================
Install 1 Package

Total download size: 866 k
Installed size: 2.6 M
Downloading packages:
patroni-2.1.4-1.rhel7.x86_64.rpm | 866 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : patroni-2.1.4-1.rhel7.x86_64 1/1
Verifying : patroni-2.1.4-1.rhel7.x86_64 1/1

Installed:
patroni.x86_64 0:2.1.4-1.rhel7

Complete!

[08-25 10:14:37] root(at)pg-test-3:/
$ ls
bin data etc lib %{_logdir} media opt proc run srv %{_sysconfigdir} usr
boot dev home lib64 lost+found mnt pg root sbin sys tmp var
```

Browse pgsql-admin by date

  From Date Subject
Next Message Mladen Gogala 2022-08-25 02:55:04 Re: Performance issue after creating partitions
Previous Message Doug Reynolds 2022-08-25 00:52:53 Re: Performance issue after creating partitions