Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A8B57B5DC27 for ; Sun, 4 Sep 2011 20:32:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 22556-07 for ; Sun, 4 Sep 2011 23:32:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 3E798B5DC26 for ; Sun, 4 Sep 2011 20:32:33 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p84NWSA5010210; Sun, 4 Sep 2011 19:32:28 -0400 (EDT) To: Alex Hunsaker cc: Tomas Vondra , pgsql-bugs@postgresql.org Subject: Re: BUG #6198: init-po fails for plperl due to invalid xsubpp path (contains ExtUtils) In-reply-to: References: <201109041948.p84Jmk0h003490@wwwmaster.postgresql.org> <6afa8296cbdb5921ea9b5da4103aebbb.squirrel@sq.gransy.com> Comments: In-reply-to Alex Hunsaker message dated "Sun, 04 Sep 2011 17:13:31 -0600" Date: Sun, 04 Sep 2011 19:32:28 -0400 Message-ID: <10209.1315179148@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/22 X-Sequence-Number: 31039 Alex Hunsaker writes: > On Sun, Sep 4, 2011 at 16:57, Tomas Vondra wrote: >> Aha! When I run configure like this >> >> $ ./configure --with-perl --enable-nls=cs > Whoa, I totally missed that it was without --with-perl. :-) >> then it works, so obviously the "--with-perl" option is required. >> Shouldn't this behave a bit differently, e.g. not allowing "enable-nls" >> without "with-perl"? Allowing that and getting not-fully-working tree is >> not a good thing I guess ... > Hrm, I don't know much about the nls stuff... but it seems like a > reasonable request to me. Uh, no, because init-po is not needed by mere users of existing translations. Nor does somebody who wants --enable-nls necessarily care about building plperl. The failure here is not about combining NLS with --without-perl, it's about trying to do anything at all with plperl with --without-perl. I'd say the fix is to make plperl's makefile defend itself against somebody cd'ing to that directory and trying to use the makefile without having configured correctly. Another question worth asking is why is the rule being run at all? Do we need to have built SPI.c in order to do init-po for plperl? regards, tom lane