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 1jvTwG-0001g4-48 for pljava-dev@arkaria.postgresql.org; Tue, 14 Jul 2020 23:02:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvTwF-0004do-0K for pljava-dev@arkaria.postgresql.org; Tue, 14 Jul 2020 23:02:15 +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 1jvTwE-0004dh-Gw for pljava-dev@lists.postgresql.org; Tue, 14 Jul 2020 23:02:14 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvTwC-0003q1-8R for pljava-dev@lists.postgresql.org; Tue, 14 Jul 2020 23:02:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cP04cISEYfa0+dgLo1Db64Iu4wv8kN03Diegne0YVGE=; b=XDXTBVFs5COO2wh0eY44kWByNa kHZzXTY8qWln9SK03nHoWXLHe1i8CxEvGGBeOYicRScYqweLH4L34LAjQa1BKk9bBhic9TD4miqQJ 4maArgLaUsmp+ECnUlT+lsnIRAsde72jrul2AbVU3semm3rXJWhm6NkwRd9YfP0pNnJMTIdj5Mw5e 8c8WgjhIs47BFxYmRXKY0EcmjePCiQPS42lJFucMj1lK+5AjULhQqNn5taHNAuffAlyNWF29wqfT0 Jkde0UZ5ksquZclfNAqpjhYJ0cn0/X3n9p9Qu+jjjKOD7gu3bYNrXvJ8q6bCTpzfErcfRWn6Ugdhg 9L0zFuPQ==; Received: from [184.19.31.139] (port=37110) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jvTwA-0038EX-NY; Tue, 14 Jul 2020 19:02:11 -0400 Subject: Re: PL/Java new build plugin To: Kartik Ohri 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> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F0E3972.5070609@anastigmatix.net> Date: Tue, 14 Jul 2020 19:02:10 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/14/20 13:40, Kartik Ohri wrote: > I just checked Appveyor CI builds for Windows (even those which work > properly) are failing. You can view the logs at > https://ci.appveyor.com/project/amCap1712/pljava/builds/34092481 . Also, > you can push new commits to your branch and the CI will automatically start > a new against them. The link to the new build will be available on the PR > page. 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. 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. 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. Regards, -Chap [1] https://github.com/amCap1712/pljava/blob/fc2bd50/pljava-pgxs/src/main/java/org/postgresql/pljava/pgxs/PGXSUtils.java#L110