pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
4+ messages / 4 participants
[nested] [flat]

* BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
@ 2016-06-20 17:02 sthomas@datawareventures.com
  2016-06-20 19:50 ` Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: sthomas@datawareventures.com @ 2016-06-20 17:02 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14203
Logged by:          Steve Thomas
Email address:      sthomas@datawareventures.com
PostgreSQL version: 9.3.3
Operating system:   Ubuntu
Description:        

I'm following the README in src/tools/pgindent. The instructions say to
download and install pg_bsd_indent from ftp://ftp.postgresql.org/pub/dev. At
that site, I see a file pg_bsd_indent-1.3.tar.gz, and I download and install
it. Then, I try to run pgindent, and it says:

You do not appear to have pg_bsd_indent version 1.2 installed on your
system.


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? 


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


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
  2016-06-20 17:02 BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download sthomas@datawareventures.com
@ 2016-06-20 19:50 ` Tom Lane <tgl@sss.pgh.pa.us>
  2016-06-21 17:00   ` Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download Stephen Thomas <sthomas@datawareventures.com>
  2016-06-23 01:34   ` Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download Bruce Momjian <bruce@momjian.us>
  0 siblings, 2 replies; 4+ messages in thread

From: Tom Lane @ 2016-06-20 19:50 UTC (permalink / raw)
  To: sthomas@datawareventures.com; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
  2016-06-20 17:02 BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download sthomas@datawareventures.com
  2016-06-20 19:50 ` Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-06-21 17:00   ` Stephen Thomas <sthomas@datawareventures.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Stephen Thomas @ 2016-06-21 17:00 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs

Thanks, Tom. You're right, my mistake was assuming that 9.3.3 was
pgindent-clean. Now I understand that that's not necessarily the case!

And thanks for the pg_bsd_indent patch. There's not much of a difference
between the two so I won't worry.

On Mon, Jun 20, 2016 at 3:50 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> 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
>
>


-- 
Stephen Thomas
COO, Dataware Ventures
http://www.datawareventures.com

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download
  2016-06-20 17:02 BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download sthomas@datawareventures.com
  2016-06-20 19:50 ` Re: BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download Tom Lane <tgl@sss.pgh.pa.us>
@ 2016-06-23 01:34   ` Bruce Momjian <bruce@momjian.us>
  1 sibling, 0 replies; 4+ messages in thread

From: Bruce Momjian @ 2016-06-23 01:34 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: sthomas@datawareventures.com; pgsql-bugs

On Mon, Jun 20, 2016 at 03:50:27PM -0400, Tom Lane wrote:
> 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 can put the 1.2 version online, but I figured only HEAD would use
pgindent, and I wasn't sure how to specify which major versions require
which pg_bsd_indent version.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+                     Ancient Roman grave inscription +


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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2016-06-23 01:34 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-06-20 17:02 BUG #14203: pgindent requires pg_bsd_indent 1.2, but only 1.3 available for download sthomas@datawareventures.com
2016-06-20 19:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-06-21 17:00   ` Stephen Thomas <sthomas@datawareventures.com>
2016-06-23 01:34   ` Bruce Momjian <bruce@momjian.us>

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