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 1jvfZl-0008RM-Cq for pljava-dev@arkaria.postgresql.org; Wed, 15 Jul 2020 11:27:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvfZk-0005Ww-7L for pljava-dev@arkaria.postgresql.org; Wed, 15 Jul 2020 11:27:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvfZk-0005Wp-09 for pljava-dev@lists.postgresql.org; Wed, 15 Jul 2020 11:27:48 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jvfZh-000445-Ng for pljava-dev@lists.postgresql.org; Wed, 15 Jul 2020 11:27:47 +0000 Received: by mail-ed1-x531.google.com with SMTP id h28so1360462edz.0 for ; Wed, 15 Jul 2020 04:27:45 -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=PVSNbwvs0+nWTLQzw6LxmeiDWZcPeJvd92vdzUu5wjg=; b=fsLvaxO6xk4HdQd2/APSM7QdFDaCMVLfPUZYV0d5z6xqtUZ4EdD8yc0u0kFQ6NH4gd oUUtfoswD7JNUtjpGEfJbk6/O9IJy3/etaKdtLJNJ8p4ICplO2Sp5EWm58GKiv5OGwdB caRPgdO4TLG69PjCXFXTSZbO9n8NTJ1xrH9mbDURqAbw05yxpdv2CORS7dQ8yyJAUzJD i/FeNVP5ntvAYuwhqj0B/u8s5GkEOcqFNXkbTRYv2DLSz9m6Rwc6lMHJRr7YNyTMPxYa pv1I9LHkPnaJBY9M6s9XXSD9X0P5Q3o91vVzLLVBOZenJI3A+QiLqNcNAKZfLi+hvfuJ tnQg== 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=PVSNbwvs0+nWTLQzw6LxmeiDWZcPeJvd92vdzUu5wjg=; b=r4XPASpd7Y6qjIbNAQwPusianLyFjOZFDiIra4wbDnlurU7/s0NbDZ5USkNhG2ZpOj hX0AM1FzdkX2t1G9SpzlBirTSlWTlM0OK+uVn/qcJ64ZBt5eRDmCoBk33SaUlTjHKVet 4zk/eVdXIVAOQzBblzwvI6hXpGkI2rEV/1q/owmoPj4ECIcEJMYV/mDZZ5CW2ugBZ03H R6NVNs96bTyRrxwacNLp/P3sBUlVICY59kaR1wL1HONrfn4jExuZGlK61OyvcMvTIirP gcgduz3FVOrbWed9RY2JbsqqH6eDPMk7Gw/xbKrfd8ejEW+6CYApr2LsG7/B7R5x9jMu xdbQ== X-Gm-Message-State: AOAM530/+/vkt+7bhO9KKxmwv0fcUiDhALQs7fnp4Qv1N9gqqWL74/0E 5cOMWSiZ4jADz4slCv9XRBt59+CvmZ4HQDmSgRksm/Fq X-Google-Smtp-Source: ABdhPJwNH+S9oE2EtAa5VsWa2Q3Miq+4tHEZYmBXdjlbh8yaVoS1bLLTv9Q77Nlll+QfVIUEsJJMrCNBqobZeJWspas= X-Received: by 2002:a50:a1e7:: with SMTP id 94mr8792256edk.165.1594812464144; Wed, 15 Jul 2020 04:27:44 -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: From: Kartik Ohri Date: Wed, 15 Jul 2020 16:57:32 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000068a4f805aa79365c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000068a4f805aa79365c Content-Type: text/plain; charset="UTF-8" > > 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. > > This was indeed the case. I also confirmed with a C dev in ##c and they said that C changes \n to \r\n on Windows. I have fixed this issue. There is no longer any include path error. There was another error related nar maven which I was able to fix by setting PGSQL_PKGLIBDIR in addition to other variables. The plugin now works on windows as well. 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. > This has been also fixed by replacing PG=9 with PG=9.6. I chose 9.6 because it is the only 9.x PG available in appveyor. If we want to test against any other 9.x PG, then we need to install it separately. --00000000000068a4f805aa79365c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Even though pg_config explicitly writ= es
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.=C2=A0
This was indeed the case. I also confi= rmed with a C dev in ##c and they said that C changes \n to \r\n on Windows= . I have fixed this issue. There is no longer any include path error. There= was another error related nar maven which I was able to fix by setting PGS= QL_PKGLIBDIR in addition to other=C2=A0variables. The plugin now works on w= indows as well.

I had suspected= the same but didn't test it due to some reason I seem to have forgotte= n but I will do that now.
This has been = also fixed by replacing PG=3D9 with PG=3D9.6. I chose 9.6 because it is the= only 9.x PG available in appveyor. If we want to test against any other 9.= x PG, then we need to install it separately.
--00000000000068a4f805aa79365c--