pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Devrim Gündüz <devrim@gunduz.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Hennessy <greg.hennessy@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: missing requirement on ccache in postgresql16-devel
Date: Thu, 26 Oct 2023 18:02:29 -0400
Message-ID: <ZTrh9YZCqtVV-IGC@momjian.us> (raw)
In-Reply-To: <96e369b05eb911a78b0078dd65a6f0701b6dfe3d.camel@gunduz.org>
References: <CA+mZaON9nDxWrg=ABBczU3DuYwQ3Q02atsY+Xhb0ogAgHzmYVg@mail.gmail.com>
	<ZTlGvDyjfjPbnolk@momjian.us>
	<1000999.1698254504@sss.pgh.pa.us>
	<96e369b05eb911a78b0078dd65a6f0701b6dfe3d.camel@gunduz.org>

On Thu, Oct 26, 2023 at 10:42:10PM +0100, Devrim Gunduz wrote:
> 
> Hi,
> 
> On Wed, 2023-10-25 at 13:21 -0400, Tom Lane wrote:
> > Bruce Momjian <bruce@momjian.us> 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 = ccache gcc" then anybody
> > trying to build under PGXS will fail if they don't have ccache
> > installed. 
> 
> Makefile.global has this reference to ccache on RHEL 9 and Fedora:
> 
> CLANG = /usr/lib64/ccache/clang
> 
> which is caused by:
> 
> %if 0%{?rhel} && 0%{?rhel} == 8
>         export CLANG=%{_bindir}/clang LLVM_CONFIG=%{_bindir}/llvm-config-64
> %endif
> 
> (so this issue does not exist on RHEL 8).
> 
> Pushed a fix to PostgreSQL 17. I'll check the results tomorrow, and then
> will patch PostgreSQL 11+.
> 
> Greg: Thanks for the report. The changes will appear in next month's
> minor release set (Nov 9). I'm not inclined to push an update set just
> for this issue.

Great, thanks.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.





view thread (7+ messages)  latest in thread

Message-ID: <ZTrh9YZCqtVV-IGC@momjian.us>
Permalink:  ../ZTrh9YZCqtVV-IGC@momjian.us/
Also on:    postgresql.org/message-id/ZTrh9YZCqtVV-IGC@momjian.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, devrim@gunduz.org, tgl@sss.pgh.pa.us, greg.hennessy@gmail.com
  Subject: Re: missing requirement on ccache in postgresql16-devel
  In-Reply-To: <ZTrh9YZCqtVV-IGC@momjian.us>
  References: <CA+mZaON9nDxWrg=ABBczU3DuYwQ3Q02atsY+Xhb0ogAgHzmYVg@mail.gmail.com> <ZTlGvDyjfjPbnolk@momjian.us> <1000999.1698254504@sss.pgh.pa.us> <96e369b05eb911a78b0078dd65a6f0701b6dfe3d.camel@gunduz.org> <ZTrh9YZCqtVV-IGC@momjian.us>

* 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