pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: sthomas@datawareventures.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
Date: Mon, 20 Jun 2016 15:50:27 -0400
Message-ID: <13029.1466452227@sss.pgh.pa.us> (raw)
In-Reply-To: <20160620170234.5798.12994@wrigleys.postgresql.org>
References: <20160620170234.5798.12994@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

sthomas@datawareventures.com writes:
> I hacked pgindent to accept 1.3. This time it ran, but changed lots and lots
> of files. (I assume because pg_bsd_indent 1.3 makes different choices than
> pg_bsd_indent 1.2.)
> Does anyone know where I can find pg_bsd_indent 1.2? 

I'm not sure why we're not keeping the older tarballs online, but there's
not that much difference between 1.2 and 1.3 --- see attached diff.

I think your problem may be in expecting that 9.3.x is pgindent-clean.
We don't normally re-pgindent stable branches, so unless committers are
careful to manually indent whatever they back-patch, branches will drift
away from a clean state.  If you're trying to validate that you have a
non-broken build of pgindent, I'd suggest checking out the immediately
post-pgindent state from our git repo.  The 9.3 run was at commit
9af4159fc.

			regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

pg_bsd_indent-1.2-1.3.diff (text/x-diff, 1.6K) download diff -cr pg_bsd_indent-1.2/Makefile pg_bsd_indent-1.3/Makefile *** pg_bsd_indent-1.2/Makefile Wed Oct 12 12:17:12 2011 --- pg_bsd_indent-1.3/Makefile Thu Jan 30 22:32:50 2014 *************** *** 31,35 **** --- 31,38 ---- clean: rm -f *.o $(TARGET) log core + distclean: clean + rm -f tags ID + install: $(TARGET) install -s -o bin -g bin $(TARGET) /usr/local/bin diff -cr pg_bsd_indent-1.2/args.c pg_bsd_indent-1.3/args.c *** pg_bsd_indent-1.2/args.c Mon Aug 27 09:25:53 2012 --- pg_bsd_indent-1.3/args.c Thu Jan 30 22:09:31 2014 *************** *** 83,89 **** #include <string.h> #include "indent_globs.h" ! #define INDENT_PG_VERSION "1.2" /* profile types */ #define PRO_SPECIAL 1 /* special case */ --- 83,89 ---- #include <string.h> #include "indent_globs.h" ! #define INDENT_PG_VERSION "1.3" /* profile types */ #define PRO_SPECIAL 1 /* special case */ Only in pg_bsd_indent-1.2: indent.bsd.patch diff -cr pg_bsd_indent-1.2/indent.c pg_bsd_indent-1.3/indent.c *** pg_bsd_indent-1.2/indent.c Mon Nov 14 19:30:01 2005 --- pg_bsd_indent-1.3/indent.c Thu Jan 30 22:06:43 2014 *************** *** 550,555 **** --- 550,562 ---- case newline: if (ps.last_token != comma || ps.p_l_follow > 0 || !ps.leave_comma || ps.block_init || !break_comma || s_com != e_com) { + /* don't newline on cpp lines like #endif */ + if (buf_ptr[0] == '#') + { + ps.just_saw_decl = 0; + prefix_blankline_requested = 0; + postfix_blankline_requested = 0; + } dump_line(); ps.want_blank = false; } Only in pg_bsd_indent-1.3: netbsd.patch

view thread (4+ messages)  latest in thread

Message-ID: <13029.1466452227@sss.pgh.pa.us>
Permalink:  ../13029.1466452227@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13029.1466452227@sss.pgh.pa.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: tgl@sss.pgh.pa.us, sthomas@datawareventures.com
  Subject: Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
  In-Reply-To: <13029.1466452227@sss.pgh.pa.us>
  References: <20160620170234.5798.12994@wrigleys.postgresql.org> <13029.1466452227@sss.pgh.pa.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