Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bF5DN-0000nD-HO for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jun 2016 19:50:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bF5DN-0000KQ-4C for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jun 2016 19:50:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bF5DL-0000HL-Qs for pgsql-bugs@postgresql.org; Mon, 20 Jun 2016 19:50:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bF5DJ-0005uF-Cw for pgsql-bugs@postgresql.org; Mon, 20 Jun 2016 19:50:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u5KJoRKm013030; Mon, 20 Jun 2016 15:50:27 -0400 From: Tom Lane 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 In-reply-to: <20160620170234.5798.12994@wrigleys.postgresql.org> References: <20160620170234.5798.12994@wrigleys.postgresql.org> Comments: In-reply-to sthomas@datawareventures.com message dated "Mon, 20 Jun 2016 17:02:34 -0000" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <12891.1466452122.0@sss.pgh.pa.us> Date: Mon, 20 Jun 2016 15:50:27 -0400 Message-ID: <13029.1466452227@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12891.1466452122.1@sss.pgh.pa.us> 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 ------- =_aaaaaaaaaa0 Content-Type: text/x-diff; name="pg_bsd_indent-1.2-1.3.diff"; charset="us-ascii" Content-ID: <12891.1466452122.2@sss.pgh.pa.us> Content-Description: pg_bsd_indent-1.2-1.3.diff Content-Transfer-Encoding: quoted-printable 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 =20=20 + distclean: clean + rm -f tags ID +=20 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 #include "indent_globs.h" =20=20 ! #define INDENT_PG_VERSION "1.2" =20=20 /* profile types */ #define PRO_SPECIAL 1 /* special case */ --- 83,89 ---- #include #include "indent_globs.h" =20=20 ! #define INDENT_PG_VERSION "1.3" =20=20 /* 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 !=3D comma || ps.p_l_follow > 0 || !ps.leave_comma || ps.block_init || !break_comma || s_com !=3D = e_com) { + /* don't newline on cpp lines like #endif */ + if (buf_ptr[0] =3D=3D '#') + { + ps.just_saw_decl =3D 0; + prefix_blankline_requested =3D 0; + postfix_blankline_requested =3D 0; + } dump_line(); ps.want_blank =3D false; } Only in pg_bsd_indent-1.3: netbsd.patch ------- =_aaaaaaaaaa0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ------- =_aaaaaaaaaa0--