From: | Piotr Stefaniak <postgres(at)piotr-stefaniak(dot)me> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) |
Date: | 2017-06-13 20:52:32 |
Message-ID: | VI1PR03MB1199A1CD210B8541449350EFF2C20@VI1PR03MB1199.eurprd03.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 2017-06-13 18:22, Tom Lane wrote:
> The Makefile is still BSD-ish of course, but I think
> we'll just agree to disagree there.
For compiling indent under Linux I use bmake(1). I have no problem with
including a Makefile for GNU Make in my repository.
As I understand it, there will be a copy of indent maintained by the
Postgres group - even less of a problem to include whatever you want, it
seems to me.
I think that Postgres will have to fork FreeBSD indent anyway, because
of nitems(), capsicum, __FBSDID(), etc. Now I only aim for the shortest
diff output.
> The only thing I could find to
> quibble about is that on old macOS versions I get
>
> In file included from indent.c:49:
> indent_globs.h:222:1: warning: "STACKSIZE" redefined
> In file included from /usr/include/machine/param.h:30,
> from /usr/include/sys/param.h:104,
> from indent.c:42:
> /usr/include/ppc/param.h:53:1: warning: this is the location of the previous definition
>
> Maybe you could rename that symbol to IND_STACKSIZE or some such?
I just replaced it with integer constants and nitems().
> Also, I am wondering about the test cases under tests/. I do not
> see anything in the Makefile or elsewhere suggesting how those are
> to be used. It would sure be nice to have some quick smoke-test
> to check that a build on a new platform is working.
They'd started out like David Holland's tests for his tradcpp(1), with a
similar makefile (again, BSD make). But I was tenaciously asked to use
Kyua (a testing framework that is the standard regression test mechanism
for FreeBSD) instead, so now the makefile's existence and use is a great
secret and the file is not under any source control. Adaption of the
indent test suite to Kyua made the makefile more inelegant, but I'm
attaching it to this email in hope that you can do something useful with
it. I can only guess that you have the option to use Kyua instead, but I
don't know the tool at all.
Attachment | Content-Type | Size |
---|---|---|
Makefile | text/plain | 924 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-06-13 21:00:31 | Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) |
Previous Message | Tom Lane | 2017-06-13 20:23:39 | Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) |
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2017-06-13 20:52:33 | Re: WIP: Data at rest encryption |
Previous Message | Robert Haas | 2017-06-13 20:42:05 | Re: fix possible optimizations in ATExecAttachPartition() |