Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR2ZF-0003M2-91 for pgsql-admin@arkaria.postgresql.org; Thu, 25 Aug 2022 02:26:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oR2ZD-0007bj-D6 for pgsql-admin@arkaria.postgresql.org; Thu, 25 Aug 2022 02:25:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR2ZC-0007bT-Gf for pgsql-admin@lists.postgresql.org; Thu, 25 Aug 2022 02:25:59 +0000 Received: from pv50p00im-hyfv10021501.me.com ([17.58.6.48]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oR2Z8-0001xR-AK for pgsql-admin@lists.postgresql.org; Thu, 25 Aug 2022 02:25:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vonng.com; s=sig1; t=1661394352; bh=T4EH2yqx4z8L9SRoSxTpoyUGcV5cBcrx5M7WPzVw78A=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=KUf8KvrSmHETPsG3EOV0C23r0j41ac7BzXJPS+w5v4Zbk+RLmxtYUdfz9ZSf7gK7V X1z4GWUThIOErfk/zGqfgRDH/OpJA6+/Lqtf1YmRifZ486soHuMwcz2dBlqXdX4yuj AS6po3aizhvVTBnHhg7UBbk5wNvYF8t4Y/nwQzUODHc2zoVhXRP6k/+gBWHc8tqW+1 Ydcjsr+BbZomYZfp5UMK2ulRioEOzaU6DVSiTODpR4me0273FJhOwEad+KqLXf42uc ojWUacQprHEe449T59t5kIpNQUFOw9mOSpCfYzyj1jnFQ0IXfQUvyfscqS7mU2fUeb dctTaKmEjAtbg== Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-hyfv10021501.me.com (Postfix) with ESMTPSA id 2649F2C00F9 for ; Thu, 25 Aug 2022 02:25:50 +0000 (UTC) From: rh@vonng.com Content-Type: multipart/alternative; boundary="Apple-Mail=_D08A78B2-3928-4F36-9D2D-DD098466417D" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: patroni rhel7.x86_64 RPM package spec issue Message-Id: <405E83B2-2A6B-42BF-866E-138308F0FF0D@vonng.com> Date: Thu, 25 Aug 2022 10:25:47 +0800 To: pgsql-admin X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Proofpoint-GUID: ThHTNPRxc6KK9cmGOCJlGKu11gwql4xD X-Proofpoint-ORIG-GUID: ThHTNPRxc6KK9cmGOCJlGKu11gwql4xD X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.883,17.0.605.474.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F08:2022-06-21=5F01,2022-06-21=5F08,2020-01-23?= =?UTF-8?Q?=5F02_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 suspectscore=0 adultscore=0 spamscore=0 malwarescore=0 phishscore=0 clxscore=1030 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208250008 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_D08A78B2-3928-4F36-9D2D-DD098466417D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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.=20 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_6= 4/patroni-2.1.4-1.rhel7.x86_64.rpm = = https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-7.9-x86_6= 4/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.=20 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 = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Package Arch Version = Repository Size = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing: patroni x86_64 = 2.1.4-1.rhel7 pigsty 866 = k Transaction Summary = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 ``` --Apple-Mail=_D08A78B2-3928-4F36-9D2D-DD098466417D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
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

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

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

Transaction Summary
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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
```


= --Apple-Mail=_D08A78B2-3928-4F36-9D2D-DD098466417D--