Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvhZp-006kDj-SK for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Oct 2023 17:21:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qvhZn-006Nqu-L2 for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Oct 2023 17:21:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvhZn-006Nql-CJ for pgsql-bugs@lists.postgresql.org; Wed, 25 Oct 2023 17:21:51 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvhZk-002kDG-5F for pgsql-bugs@lists.postgresql.org; Wed, 25 Oct 2023 17:21:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39PHLiMV1001000; Wed, 25 Oct 2023 13:21:44 -0400 From: Tom Lane To: Bruce Momjian cc: Greg Hennessy , pgsql-bugs@lists.postgresql.org, =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Subject: Re: missing requirement on ccache in postgresql16-devel In-reply-to: References: Comments: In-reply-to Bruce Momjian message dated "Wed, 25 Oct 2023 12:47:56 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1000998.1698254504.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Oct 2023 13:21:44 -0400 Message-ID: <1000999.1698254504@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian writes: > On Wed, Oct 25, 2023 at 11:25:15AM -0400, Greg Hennessy wrote: >> The file /usr/pgsql-16/lib/pgxs/src/Makefile.global has a reference >> to ccache but the rpm doesn't list this as a dependency. I would like >> to submit that it is a bug that it does not. > Uh, ccache is an _optional_ way to speed up compilation. It is not a > requirement/dependency. Yeah, but if the Makefile says "CC =3D ccache gcc" then anybody trying to build under PGXS will fail if they don't have ccache installed. So I think Greg has a point. On typical Red Hat setups, it's not necessary to mention ccache explicitly to use it; instead that's managed via PATH. For example, I have $ which gcc /usr/lib64/ccache/gcc $ ls -l /usr/lib64/ccache/gcc lrwxrwxrwx. 1 root root 16 May 21 09:35 /usr/lib64/ccache/gcc -> ../../bin= /ccache so it Just Works. I'd suggest arranging the rpm builds to be done similarly, and then you get ccache usage in the rpm build, while the distributed Makefile will just say "CC =3D gcc" so it will work for users whether they use ccache or not. regards, tom lane