Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aEQ0D-0001CH-4O for pgsql-jdbc@arkaria.postgresql.org; Wed, 30 Dec 2015 23:17:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aEQ0C-0006h4-GK for pgsql-jdbc@arkaria.postgresql.org; Wed, 30 Dec 2015 23:17:56 +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) (envelope-from ) id 1aEPzh-000693-4G for pgsql-jdbc@postgresql.org; Wed, 30 Dec 2015 23:17:25 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aEPzZ-00058k-JS for pgsql-jdbc@postgresql.org; Wed, 30 Dec 2015 23:17:23 +0000 Received: by mail-pf0-x231.google.com with SMTP id q63so111834267pfb.0 for ; Wed, 30 Dec 2015 15:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yJWhsYZ6vb989viAEtMH607jpv5DLvneSto+H/xfiFI=; b=IHBwOnK1KoMHXVoMWcSpr21RwIyr2zOGdfO8/QkCloU0QRK0ujd174uETyPhrIdMHS EjHvyFHGMHXS9gHE5sUzNmYikac7FhVW0upgzpM3obqnQJiThxOuzR9Uf3f9+k0N6b7z uCrM8mtxumat4EuUkwNVz3USXjAKzZ8NQUaD8ILteTRdCrs1fSOpDbV7nIXAE9pUbUoe bybsX2RQzHrQZn4KxWbkMtzXc8VR4hjTiVv6dF7u+FH4hYsMR0nlFbNfRCHrpxf/LoQn lAX/J1GrnO+M//HK9/Z0WMwPmqoOYs2ZGfO99FJr+ZeOQVoz6+87o+eFV9BwrmEMOtSe YY8g== X-Received: by 10.98.1.138 with SMTP id 132mr65242085pfb.0.1451517436568; Wed, 30 Dec 2015 15:17:16 -0800 (PST) Received: from [10.10.21.75] ([199.16.144.7]) by smtp.gmail.com with ESMTPSA id m11sm47637873pfj.70.2015.12.30.15.17.15 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Dec 2015 15:17:15 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Are pgrpm changes for JDBC discussed here before submission? From: Steven Schlansker In-Reply-To: Date: Wed, 30 Dec 2015 15:17:13 -0800 Cc: List Content-Transfer-Encoding: quoted-printable Message-Id: <13052901-09F5-4D77-80F2-09FF18B83FBD@gmail.com> References: <9EE6C433-6AC1-47FB-91E0-C4FDC341180C@gunduz.org> <8A98F75A-81D5-447D-8EC4-52A40ED30B74@gunduz.org> To: John Harvey X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On Dec 30, 2015, at 3:06 PM, John Harvey wrot= e: > Thank you Dave, for all of the support today. >=20 > Devrim, my patch file is attached for the pgrpm repo. > It will allow EL6/EL7 to build pg-jdbc using maven if you'd like to test = it. >=20 > Note that you may find some issues building on EL6 due to my dependency o= n the maven RPM that was discussed earlier in this thread, because it's dep= endent on openjdk 1.7.0. You'll need to make sure that your JAVA_HOME is s= et appropriately to compile with Java 1.8, or you'll get a maven enforcer p= lugin error, since it may use 1.7 as the default when installed this way. = But, I think the rest of it should work when tested locally. >=20 In case it helps, Maven has a "toolchains" plugin that allows you to declare in the POM which version of the JDK should be used to compile. Each developer box then has a ~/.m2/toolchains.xml file which maps from JDK version to JAVA_HOME directory to use. It is a little bit of a pain as each developer must then declare all installed JDKs, but makes development much easier when multiple projects and different JDK major versions are possibly involved. http://maven.apache.org/plugins/maven-toolchains-plugin/index.html > Let me know if you have any issues or questions; I can try to assist. >=20 > Regards, > -John >=20 > On Wed, Dec 30, 2015 at 3:11 PM, Dave Cramer wrote: > John, >=20 > No, that file does not exist any more. All documentation exists in the ww= w repo now >=20 > Dave Cramer >=20 > davec@postgresintl.com > www.postgresintl.com >=20 > On 30 December 2015 at 15:10, John Harvey w= rote: > Hi Dave, >=20 > That sounds good to me. The github tarball will work just fine-- I just = wanted to make sure that it was an intended change since it looks a little = different. >=20 > I think RPM-wise that covers everything except for one last question, abo= ut this file: > doc/pgjdbc.xml >=20 > I think this was a docbook that used to be created from all of the javado= cs in the ant builds. I don't see that in the current build (note that I a= m running with -Prelease-artifacts to generate html files). Is that someth= ing that needs to be fixed? If so, I could take a stab at it. >=20 > Regards, > -John >=20 > On Wed, Dec 30, 2015 at 2:54 PM, Dave Cramer wrote: > Download zip file from github would work, no ? I can switch back but was = trying to use maven for everything. This is the source file that it provides >=20 > Dave Cramer >=20 > davec@postgresintl.com > www.postgresintl.com >=20 > On 30 December 2015 at 14:51, John Harvey w= rote: > Thanks Dave. I'll have to try that out; it might be what we need. >=20 > Devin- I'll try to get you a spec file by tomorrow for testing if that's = all right. >=20 > BTW, I have a question about the latest PGJDBC release. >=20 > On the downloads page (https://jdbc.postgresql.org/download.html), all of= the previous "source" items are tar.gz files, whereas for this release, it= 's a sources jarfile. Is this going to be a permanent switch? If so, I ha= ve a concern because the sources jar does not appear to contain the pom fil= e for compilation. Typically the RPM code uses a source tarball as a start= ing point. Just curious if that's going to be hosted somewhere. >=20 > Thanks! > -John >=20 > On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer wrote: > seems there is an rpm for maven http://stackoverflow.com/questions/753292= 8/how-do-i-install-maven-with-yum >=20 > Dave Cramer >=20 > davec@postgresintl.com > www.postgresintl.com >=20 > On 30 December 2015 at 14:28, Devrim G=FCnd=FCz wrote: > Hi, >=20 > pgsql-pkg-yum@ is rpm mailing list. >=20 > I have zero idea about maven. How much effort would it take to RPMify it? >=20 > Can you please send the new spec? I can give a try tomorrow. >=20 > Regards, Devrim >=20 >=20 > On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey wrote: > Hello Devrim, >=20 > I've got a functioning spec-file, but I have a question which I think nee= ds to be answered before contributing my spec-file changes (which I'm not q= uite sure how to do for pgrpms-- I couldn't find a mail-list). >=20 > The question has to do with the new build being dependent on maven instea= d of ant. > Typically, with a spec file it is expected that we could address this wit= h the following line: > BuildRequires: maven >=3D 3.0.0 >=20 > However, there's a problem. Maven isn't generally packaged as an RPM. I= n fact, even the official RHEL docs point to the maven project site for ins= tallation, and that's via tarball unzipping. I found an abandoned java pro= ject where somebody tried RPM-ing maven, but they abandoned the project som= ewhere with maven 2.x, and personally I could not get it to build. >=20 > So, I figured I'd try another approach. The other method that I've seen = for setting a dependency is to do something like the following: > BuildRequires: /usr/bin/mvn >=20 > However, even that doesn't work for me. I keep getting that the dependen= cy isn't found, when it's definitely there on my system. Note that I have = seen that syntax under a "Requires" line (not BuildRequires) in a couple of= spec files before, but they were in an ifdef block, so they may not have e= ven been a valid syntax that was tested. >=20 > I guess I'm not sure what the right approach here is. If I leave the mav= en dependency off, that's not the correct answer, as it's definitely a requ= irement (more specifically, maven 3.x). However, I'm not sure what I can d= o to make the spec-file recognize this build dependency. >=20 > Note that I'm happy to take this to another list if that's appropriate, o= r have an offline discussion if that makes sense. >=20 > Thank you, > -John >=20 >=20 >=20 > On Wed, Dec 30, 2015 at 1:16 PM, Devrim G=FCnd=FCz wr= ote: > Hi Dave, >=20 > Well, *building* RPMs are PITA nowadays, so until we get a stable build, = I would prefer this list to catch your attention. >=20 > Regards, Devrim >=20 >=20 > On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer = wrote: > Hi John, >=20 > We don't have anything to do with the RPMS >=20 > Dave >=20 > Dave Cramer >=20 > davec@postgresintl.com > www.postgresintl.com >=20 > On 30 December 2015 at 11:03, John Harvey w= rote: > Hello all, >=20 > I have created some changes to the pgrpm repository (git://git.postgresql= .org/git/pgrpms.git) in order to support the maven changes that went into P= GJDBC REL9.4.1207. The changes allow for the proper generation of RPMS for= RHEL6 / 7. Before I submit the changes to pgrpm, I was wondering if those= changes are discussed in the community here, or if they're discussed solel= y with the team that works on the pgrpm repository? >=20 > I'd be more than happy to share my changes here if it's worth a discussio= n. >=20 > Regards, > -John >=20 >=20 > --=20 > Sent from my Android device with K-9 Mail. Please excuse my brevity. >=20 >=20 > --=20 > Sent from my Android device with K-9 Mail. Please excuse my brevity. >=20 >=20 >=20 >=20 >=20 >=20 > > --=20 > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc