Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvY8M-0004l9-Si for pljava-dev@arkaria.postgresql.org; Wed, 15 Jul 2020 03:31:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvY7p-0006J3-V6 for pljava-dev@arkaria.postgresql.org; Wed, 15 Jul 2020 03:30:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvY7p-0006Hj-JP for pljava-dev@lists.postgresql.org; Wed, 15 Jul 2020 03:30:29 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jvY7i-0006D0-Te for pljava-dev@lists.postgresql.org; Wed, 15 Jul 2020 03:30:28 +0000 Received: by mail-ej1-x631.google.com with SMTP id w6so646109ejq.6 for ; Tue, 14 Jul 2020 20:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h4Ler1abzicjci/WetUtuUr1gsterpUuiEN9ZC+IK3M=; b=UxhXu8J0aZyUIQe99hNFya7u1n1OGxDwG2HuODWQsz6TG8fQfQNqdnQjJ7WhzjU0Sy aTTwG6deyWnI6YrpYou65r8tVZnDWJaQJlIPMCbqnrxtZ3xTzKib6ewywh6jprQDnPJT E3TW13XB8HQQSej0HzoCXXwWFYLdMHXuWc95451k59Z8o2YJ0SpDSl8KUB8PU4myV9Wl uFYM1SLkGRX4sVnULKgac9uNLwoTLKlyLhUuZyzf651GR9+auRmTHjjC7IbOJz3zxVYr rmuQzgWDXcdyxbeXxtbdJPOs6dO40JXld2fIeDUxwliSPCBb/NOmfTWiJJ0VKglv+gNO LmBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h4Ler1abzicjci/WetUtuUr1gsterpUuiEN9ZC+IK3M=; b=Hs5ohd7lWwKahYybg4x33RvlGQqYnxp7krNITHsZAgxnbau6YAK2DIsmXAoVsqt9w5 9S+D+oeUj9sRrbAtoOvbbDd8CFw5fhxVi960V1K3z+J4SJ4UJn96TBuZWUgiAlCka0yy wRztUVna0OqgwTAm94uIDgSWDqnpcWO8WroMUsrfVZVl+Nl9bEl/ZSoNMM4JCEFmdkAc xqIjm5/rvEt9mM1y4XTSf1VPxYdCoFJcWbJEJlVclShsKL0b0H9bzhSM/EJ9zVrEFqPS NBjcroRxTuyxoEGzpfi7mt1PQhmdC2DARbTXWOTBxfWJJvAl741UIT3KBrpDg3iby8oe A+1w== X-Gm-Message-State: AOAM530D7bB+R3ycgB2yQiyYrKJGoUUU/z3kfStleLhOZ4LZTlzkSkHB jcLZf+NSLxK4pW/X4duVx0egdMc/l40eukadoygji4YxBew= X-Google-Smtp-Source: ABdhPJyOMPUZNXe/dBqb5k05wp4o6mUZoNuCIsqRxgHULcGv+sKqW68GGwjU3oJSFcEPB7IXnC83tUpPJRkN0OFaG5A= X-Received: by 2002:a17:906:2296:: with SMTP id p22mr7182017eja.510.1594783820893; Tue, 14 Jul 2020 20:30:20 -0700 (PDT) MIME-Version: 1.0 References: <5F071CFC.9090306@anastigmatix.net> <5F072647.50301@anastigmatix.net> <5F0734AD.7060001@anastigmatix.net> <5F077926.2050806@anastigmatix.net> <5F07C2D5.5050904@anastigmatix.net> <5F0D35BA.30904@anastigmatix.net> <5F0E3972.5070609@anastigmatix.net> In-Reply-To: <5F0E3972.5070609@anastigmatix.net> From: Kartik Ohri Date: Wed, 15 Jul 2020 09:00:09 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000002353d905aa728baa" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000002353d905aa728baa Content-Type: text/plain; charset="UTF-8" > > Thanks! Looks like I have fixed that with a42c416. Turned out to be > Windows line endings, and it means I gave you bad advice with regard to > getPgConfigProperty [1] after all. Even though pg_config explicitly writes > a single \n character on every platform, Windows (probably the C library > really) still changes it to \r\n before it arrives on the pipe. So just > removing one character won't always work. It has to be line.separator > (that, or an explicit test for Windows). Sorry for leading you astray. > Thanks for informing this. I'll check the plugin with this fix to see if this now works on Windows. Now the only appveyor "errors" I'm seeing seem to be a result of appveyor > thinking anything written to stderr is a problem. So running the installer > jar to install the files produces a wall of red every time, because it > prints the installed file names to stderr. And then on Java 9 there is > still one JNI reference warning, but that's being treated as a failure. > > The first of those problems can surely be fixed with a 2>&1 on the > command running the installer jar (or whatever the equivalent Windows > syntax is for "merge your stderr into stdout"). > > The second looks a little trickier, as you're probably checking for > warning output from install_jar(...examples...), which really does > indicate trouble, but the WARNING: JNI local refs: does not. There is another error as well on PG 10 https://ci.appveyor.com/project/amCap1712/pljava/builds/34099990/job/bgpqdy5qjkik2ya9, one of the tests fails. This has been the case since I first added this configuration. I don't understand what the PG=9 configuration even is. The PG version > numbering change happened in 10, so "9" could mean any of seven different > major versions, and I can't even see from the log which of those the > run is trying to use. I think that could be the reason it's failing too, > because it's trying to run "\Program Files\PostgreSQL\9\bin\pg_ctl" and > there is no such thing with just "9" as the version. > I had suspected the same but didn't test it due to some reason I seem to have forgotten but I will do that now. --0000000000002353d905aa728baa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks! Looks like I have fixed that with a42c416. Turne= d out to be
Windows line endings, and it means I gave you bad advice with regard to
getPgConfigProperty [1] after all. Even though pg_config explicitly writes<= br> a single \n character on every platform, Windows (probably the C library really) still changes it to \r\n before it arrives on the pipe. So just
removing one character won't always work. It has to be line.separator (that, or an explicit test for Windows). Sorry for leading you astray.
<= /blockquote>
Thanks for informing this. I'll check the plugin with = this fix to see if this now works on Windows.

Now the only appveyor "errors" I'm seeing seem to be a result= of appveyor
thinking anything written to stderr is a problem. So running the installer<= br> jar to install the files produces a wall of red every time, because it
prints the installed file names to stderr. And then on Java 9 there is
still one JNI reference warning, but that's being treated as a failure.=

The first of those problems can surely be fixed with a 2>&1 on the command running the installer jar (or whatever the equivalent Windows
syntax is for "merge your stderr into stdout").

The second looks a little trickier, as you're probably checking for
warning output from install_jar(...examples...), which really does
indicate trouble, but the WARNING: JNI local refs: does not.
There is another error as well on PG 10=C2=A0http= s://ci.appveyor.com/project/amCap1712/pljava/builds/34099990/job/bgpqdy5qjk= ik2ya9, one of the tests fails. This has been the case since I first ad= ded this configuration.

I don't understand what the PG=3D9 configuration even is. The PG versio= n
numbering change happened in 10, so "9" could mean any of seven d= ifferent
major versions, and I can't even see from the log which of those the run is trying to use. I think that could be the reason it's failing too= ,
because it's trying to run "\Program Files\PostgreSQL\9\bin\pg_ctl= " and
there is no such thing with just "9" as the version.
I had suspected the same but didn't test it due to some reason= I seem to have forgotten but I will do that now.
--0000000000002353d905aa728baa--