pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rh@vonng.com
To: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: patroni rhel7.x86_64 RPM package spec issue
Date: Thu, 25 Aug 2022 10:25:47 +0800
Message-ID: <405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com> (raw)

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.x8... <https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.4-1.rhel7.x8...;
https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.3-1.rhel7.x8... <https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_64/patroni-2.1.3-1.rhel7.x8...;

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@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@pg-test-3:/
$ rm -rf /%*

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

[08-25 10:14:24] root@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@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@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
```

Message-ID: <405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com>
Permalink:  ../405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com/
Also on:    postgresql.org/message-id/405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: rh@vonng.com, pgsql-admin@lists.postgresql.org
  Subject: Re: patroni rhel7.x86_64 RPM package spec issue
  In-Reply-To: <405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com>

* 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