pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedAre pgrpm changes for JDBC discussed here before submission?
17+ messages / 6 participants
[nested] [flat]
* Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 16:03 John Harvey <john.harvey@crunchydata.com>
0 siblings, 2 replies; 17+ messages in thread
From: John Harvey @ 2015-12-30 16:03 UTC (permalink / raw)
To: pgsql-jdbc
Hello all,
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 PGJDBC 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 solely with the team that works on the pgrpm repository?
I'd be more than happy to share my changes here if it's worth a discussion.
Regards,
-John
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 16:20 Dave Cramer <pg@fastcrypt.com>
parent: John Harvey <john.harvey@crunchydata.com>
1 sibling, 1 reply; 17+ messages in thread
From: Dave Cramer @ 2015-12-30 16:20 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
Hi John,
We don't have anything to do with the RPMS
Dave
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 30 December 2015 at 11:03, John Harvey <john.harvey@crunchydata.com>
wrote:
> Hello all,
>
> 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 PGJDBC 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 solely with the team that works on the pgrpm repository?
>
> I'd be more than happy to share my changes here if it's worth a discussion.
>
> Regards,
> -John
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 18:14 Devrim Gündüz <devrim@gunduz.org>
parent: John Harvey <john.harvey@crunchydata.com>
1 sibling, 0 replies; 17+ messages in thread
From: Devrim Gündüz @ 2015-12-30 18:14 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; pgsql-jdbc
Hi,
Both lists are fine.
Regards, Devrim
On December 30, 2015 6:03:19 PM GMT+02:00, John Harvey <john.harvey@crunchydata.com> wrote:
>Hello all,
>
>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 PGJDBC 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 solely with the team that works on the pgrpm
>repository?
>
>I'd be more than happy to share my changes here if it's worth a
>discussion.
>
>Regards,
> -John
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 18:16 Devrim Gündüz <devrim@gunduz.org>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 17+ messages in thread
From: Devrim Gündüz @ 2015-12-30 18:16 UTC (permalink / raw)
To: Dave Cramer <pg@fastcrypt.com>; John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
Hi Dave,
Well, *building* RPMs are PITA nowadays, so until we get a stable build, I would prefer this list to catch your attention.
Regards, Devrim
On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <pg@fastcrypt.com> wrote:
>Hi John,
>
>We don't have anything to do with the RPMS
>
>Dave
>
>Dave Cramer
>
>davec@postgresintl.com
>www.postgresintl.com
>
>On 30 December 2015 at 11:03, John Harvey <john.harvey@crunchydata.com>
>wrote:
>
>> Hello all,
>>
>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>repository?
>>
>> I'd be more than happy to share my changes here if it's worth a
>discussion.
>>
>> Regards,
>> -John
>>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 19:16 John Harvey <john.harvey@crunchydata.com>
parent: Devrim Gündüz <devrim@gunduz.org>
0 siblings, 1 reply; 17+ messages in thread
From: John Harvey @ 2015-12-30 19:16 UTC (permalink / raw)
To: ; +Cc: pgsql-jdbc
Hello Devrim,
I've got a functioning spec-file, but I have a question which I think needs
to be answered before contributing my spec-file changes (which I'm not
quite sure how to do for pgrpms-- I couldn't find a mail-list).
The question has to do with the new build being dependent on maven instead
of ant.
Typically, with a spec file it is expected that we could address this with
the following line:
BuildRequires: maven >= 3.0.0
However, there's a problem. Maven isn't generally packaged as an RPM. In
fact, even the official RHEL docs point to the maven project site for
installation, and that's via tarball unzipping. I found an abandoned java
project where somebody tried RPM-ing maven, but they abandoned the project
somewhere with maven 2.x, and personally I could not get it to build.
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
However, even that doesn't work for me. I keep getting that the dependency
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
even been a valid syntax that was tested.
I guess I'm not sure what the right approach here is. If I leave the maven
dependency off, that's not the correct answer, as it's definitely a
requirement (more specifically, maven 3.x). However, I'm not sure what I
can do to make the spec-file recognize this build dependency.
Note that I'm happy to take this to another list if that's appropriate, or
have an offline discussion if that makes sense.
Thank you,
-John
On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org> wrote:
> Hi Dave,
>
> Well, *building* RPMs are PITA nowadays, so until we get a stable build, I
> would prefer this list to catch your attention.
>
> Regards, Devrim
>
>
> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <pg@fastcrypt.com>
> wrote:
>>
>> Hi John,
>>
>> We don't have anything to do with the RPMS
>>
>> Dave
>>
>> Dave Cramer
>>
>> davec@postgresintl.com
>> www.postgresintl.com
>>
>> On 30 December 2015 at 11:03, John Harvey <john.harvey@crunchydata.com>
>> wrote:
>>
>>> Hello all,
>>>
>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>> repository?
>>>
>>> I'd be more than happy to share my changes here if it's worth a
>>> discussion.
>>>
>>> Regards,
>>> -John
>>>
>>
>>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 19:28 Devrim Gündüz <devrim@gunduz.org>
parent: John Harvey <john.harvey@crunchydata.com>
0 siblings, 1 reply; 17+ messages in thread
From: Devrim Gündüz @ 2015-12-30 19:28 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
Hi,
pgsql-pkg-yum@ is rpm mailing list.
I have zero idea about maven. How much effort would it take to RPMify it?
Can you please send the new spec? I can give a try tomorrow.
Regards, Devrim
On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <john.harvey@crunchydata.com> wrote:
>Hello Devrim,
>
>I've got a functioning spec-file, but I have a question which I think
>needs
>to be answered before contributing my spec-file changes (which I'm not
>quite sure how to do for pgrpms-- I couldn't find a mail-list).
>
>The question has to do with the new build being dependent on maven
>instead
>of ant.
>Typically, with a spec file it is expected that we could address this
>with
>the following line:
>BuildRequires: maven >= 3.0.0
>
>However, there's a problem. Maven isn't generally packaged as an RPM.
>In
>fact, even the official RHEL docs point to the maven project site for
>installation, and that's via tarball unzipping. I found an abandoned
>java
>project where somebody tried RPM-ing maven, but they abandoned the
>project
>somewhere with maven 2.x, and personally I could not get it to build.
>
>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
>
>However, even that doesn't work for me. I keep getting that the
>dependency
>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
>even been a valid syntax that was tested.
>
>I guess I'm not sure what the right approach here is. If I leave the
>maven
>dependency off, that's not the correct answer, as it's definitely a
>requirement (more specifically, maven 3.x). However, I'm not sure what
>I
>can do to make the spec-file recognize this build dependency.
>
>Note that I'm happy to take this to another list if that's appropriate,
>or
>have an offline discussion if that makes sense.
>
>Thank you,
> -John
>
>
>
>On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org>
>wrote:
>
>> Hi Dave,
>>
>> Well, *building* RPMs are PITA nowadays, so until we get a stable
>build, I
>> would prefer this list to catch your attention.
>>
>> Regards, Devrim
>>
>>
>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer
><pg@fastcrypt.com>
>> wrote:
>>>
>>> Hi John,
>>>
>>> We don't have anything to do with the RPMS
>>>
>>> Dave
>>>
>>> Dave Cramer
>>>
>>> davec@postgresintl.com
>>> www.postgresintl.com
>>>
>>> On 30 December 2015 at 11:03, John Harvey
><john.harvey@crunchydata.com>
>>> wrote:
>>>
>>>> Hello all,
>>>>
>>>> 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 PGJDBC 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 solely with the team that works on
>the pgrpm
>>>> repository?
>>>>
>>>> I'd be more than happy to share my changes here if it's worth a
>>>> discussion.
>>>>
>>>> Regards,
>>>> -John
>>>>
>>>
>>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 19:41 Dave Cramer <pg@fastcrypt.com>
parent: Devrim Gündüz <devrim@gunduz.org>
0 siblings, 1 reply; 17+ messages in thread
From: Dave Cramer @ 2015-12-30 19:41 UTC (permalink / raw)
To: Devrim Gündüz <devrim@gunduz.org>; +Cc: John Harvey <john.harvey@crunchydata.com>; pgsql-jdbc
seems there is an rpm for maven
http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
> Hi,
>
> pgsql-pkg-yum@ is rpm mailing list.
>
> I have zero idea about maven. How much effort would it take to RPMify it?
>
> Can you please send the new spec? I can give a try tomorrow.
>
> Regards, Devrim
>
>
> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <
> john.harvey@crunchydata.com> wrote:
>>
>> Hello Devrim,
>>
>> I've got a functioning spec-file, but I have a question which I think
>> needs to be answered before contributing my spec-file changes (which I'm
>> not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>>
>> The question has to do with the new build being dependent on maven
>> instead of ant.
>> Typically, with a spec file it is expected that we could address this
>> with the following line:
>> BuildRequires: maven >= 3.0.0
>>
>> However, there's a problem. Maven isn't generally packaged as an RPM.
>> In fact, even the official RHEL docs point to the maven project site for
>> installation, and that's via tarball unzipping. I found an abandoned java
>> project where somebody tried RPM-ing maven, but they abandoned the project
>> somewhere with maven 2.x, and personally I could not get it to build.
>>
>> 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
>>
>> However, even that doesn't work for me. I keep getting that the
>> dependency 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 even been a valid syntax that was tested.
>>
>> I guess I'm not sure what the right approach here is. If I leave the
>> maven dependency off, that's not the correct answer, as it's definitely a
>> requirement (more specifically, maven 3.x). However, I'm not sure what I
>> can do to make the spec-file recognize this build dependency.
>>
>> Note that I'm happy to take this to another list if that's appropriate,
>> or have an offline discussion if that makes sense.
>>
>> Thank you,
>> -John
>>
>>
>>
>> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org> wrote:
>>
>>> Hi Dave,
>>>
>>> Well, *building* RPMs are PITA nowadays, so until we get a stable build,
>>> I would prefer this list to catch your attention.
>>>
>>> Regards, Devrim
>>>
>>>
>>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <pg@fastcrypt.com>
>>> wrote:
>>>>
>>>> Hi John,
>>>>
>>>> We don't have anything to do with the RPMS
>>>>
>>>> Dave
>>>>
>>>> Dave Cramer
>>>>
>>>> davec@postgresintl.com
>>>> www.postgresintl.com
>>>>
>>>> On 30 December 2015 at 11:03, John Harvey <john.harvey@crunchydata.com>
>>>> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>>>> repository?
>>>>>
>>>>> I'd be more than happy to share my changes here if it's worth a
>>>>> discussion.
>>>>>
>>>>> Regards,
>>>>> -John
>>>>>
>>>>
>>>>
>>> --
>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>
>>
>>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 19:51 John Harvey <john.harvey@crunchydata.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 17+ messages in thread
From: John Harvey @ 2015-12-30 19:51 UTC (permalink / raw)
To: ; +Cc: pgsql-jdbc
Thanks Dave. I'll have to try that out; it might be what we need.
Devin- I'll try to get you a spec file by tomorrow for testing if that's
all right.
BTW, I have a question about the latest PGJDBC release.
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
have a concern because the sources jar does not appear to contain the pom
file for compilation. Typically the RPM code uses a source tarball as a
starting point. Just curious if that's going to be hosted somewhere.
Thanks!
-John
On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> seems there is an rpm for maven
> http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
>
>> Hi,
>>
>> pgsql-pkg-yum@ is rpm mailing list.
>>
>> I have zero idea about maven. How much effort would it take to RPMify it?
>>
>> Can you please send the new spec? I can give a try tomorrow.
>>
>> Regards, Devrim
>>
>>
>> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <
>> john.harvey@crunchydata.com> wrote:
>>>
>>> Hello Devrim,
>>>
>>> I've got a functioning spec-file, but I have a question which I think
>>> needs to be answered before contributing my spec-file changes (which I'm
>>> not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>>>
>>> The question has to do with the new build being dependent on maven
>>> instead of ant.
>>> Typically, with a spec file it is expected that we could address this
>>> with the following line:
>>> BuildRequires: maven >= 3.0.0
>>>
>>> However, there's a problem. Maven isn't generally packaged as an RPM.
>>> In fact, even the official RHEL docs point to the maven project site for
>>> installation, and that's via tarball unzipping. I found an abandoned java
>>> project where somebody tried RPM-ing maven, but they abandoned the project
>>> somewhere with maven 2.x, and personally I could not get it to build.
>>>
>>> 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
>>>
>>> However, even that doesn't work for me. I keep getting that the
>>> dependency 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 even been a valid syntax that was tested.
>>>
>>> I guess I'm not sure what the right approach here is. If I leave the
>>> maven dependency off, that's not the correct answer, as it's definitely a
>>> requirement (more specifically, maven 3.x). However, I'm not sure what I
>>> can do to make the spec-file recognize this build dependency.
>>>
>>> Note that I'm happy to take this to another list if that's appropriate,
>>> or have an offline discussion if that makes sense.
>>>
>>> Thank you,
>>> -John
>>>
>>>
>>>
>>> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org>
>>> wrote:
>>>
>>>> Hi Dave,
>>>>
>>>> Well, *building* RPMs are PITA nowadays, so until we get a stable
>>>> build, I would prefer this list to catch your attention.
>>>>
>>>> Regards, Devrim
>>>>
>>>>
>>>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <
>>>> pg@fastcrypt.com> wrote:
>>>>>
>>>>> Hi John,
>>>>>
>>>>> We don't have anything to do with the RPMS
>>>>>
>>>>> Dave
>>>>>
>>>>> Dave Cramer
>>>>>
>>>>> davec@postgresintl.com
>>>>> www.postgresintl.com
>>>>>
>>>>> On 30 December 2015 at 11:03, John Harvey <john.harvey@crunchydata.com
>>>>> > wrote:
>>>>>
>>>>>> Hello all,
>>>>>>
>>>>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>>>>> repository?
>>>>>>
>>>>>> I'd be more than happy to share my changes here if it's worth a
>>>>>> discussion.
>>>>>>
>>>>>> Regards,
>>>>>> -John
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>
>>>
>>>
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 19:54 Dave Cramer <pg@fastcrypt.com>
parent: John Harvey <john.harvey@crunchydata.com>
0 siblings, 1 reply; 17+ messages in thread
From: Dave Cramer @ 2015-12-30 19:54 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
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
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 30 December 2015 at 14:51, John Harvey <john.harvey@crunchydata.com>
wrote:
> Thanks Dave. I'll have to try that out; it might be what we need.
>
> Devin- I'll try to get you a spec file by tomorrow for testing if that's
> all right.
>
> BTW, I have a question about the latest PGJDBC release.
>
> 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
> have a concern because the sources jar does not appear to contain the pom
> file for compilation. Typically the RPM code uses a source tarball as a
> starting point. Just curious if that's going to be hosted somewhere.
>
> Thanks!
> -John
>
> On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>
>> seems there is an rpm for maven
>> http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
>>
>> Dave Cramer
>>
>> davec@postgresintl.com
>> www.postgresintl.com
>>
>> On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
>>
>>> Hi,
>>>
>>> pgsql-pkg-yum@ is rpm mailing list.
>>>
>>> I have zero idea about maven. How much effort would it take to RPMify it?
>>>
>>> Can you please send the new spec? I can give a try tomorrow.
>>>
>>> Regards, Devrim
>>>
>>>
>>> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <
>>> john.harvey@crunchydata.com> wrote:
>>>>
>>>> Hello Devrim,
>>>>
>>>> I've got a functioning spec-file, but I have a question which I think
>>>> needs to be answered before contributing my spec-file changes (which I'm
>>>> not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>>>>
>>>> The question has to do with the new build being dependent on maven
>>>> instead of ant.
>>>> Typically, with a spec file it is expected that we could address this
>>>> with the following line:
>>>> BuildRequires: maven >= 3.0.0
>>>>
>>>> However, there's a problem. Maven isn't generally packaged as an RPM.
>>>> In fact, even the official RHEL docs point to the maven project site for
>>>> installation, and that's via tarball unzipping. I found an abandoned java
>>>> project where somebody tried RPM-ing maven, but they abandoned the project
>>>> somewhere with maven 2.x, and personally I could not get it to build.
>>>>
>>>> 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
>>>>
>>>> However, even that doesn't work for me. I keep getting that the
>>>> dependency 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 even been a valid syntax that was tested.
>>>>
>>>> I guess I'm not sure what the right approach here is. If I leave the
>>>> maven dependency off, that's not the correct answer, as it's definitely a
>>>> requirement (more specifically, maven 3.x). However, I'm not sure what I
>>>> can do to make the spec-file recognize this build dependency.
>>>>
>>>> Note that I'm happy to take this to another list if that's appropriate,
>>>> or have an offline discussion if that makes sense.
>>>>
>>>> Thank you,
>>>> -John
>>>>
>>>>
>>>>
>>>> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org>
>>>> wrote:
>>>>
>>>>> Hi Dave,
>>>>>
>>>>> Well, *building* RPMs are PITA nowadays, so until we get a stable
>>>>> build, I would prefer this list to catch your attention.
>>>>>
>>>>> Regards, Devrim
>>>>>
>>>>>
>>>>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <
>>>>> pg@fastcrypt.com> wrote:
>>>>>>
>>>>>> Hi John,
>>>>>>
>>>>>> We don't have anything to do with the RPMS
>>>>>>
>>>>>> Dave
>>>>>>
>>>>>> Dave Cramer
>>>>>>
>>>>>> davec@postgresintl.com
>>>>>> www.postgresintl.com
>>>>>>
>>>>>> On 30 December 2015 at 11:03, John Harvey <
>>>>>> john.harvey@crunchydata.com> wrote:
>>>>>>
>>>>>>> Hello all,
>>>>>>>
>>>>>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>>>>>> repository?
>>>>>>>
>>>>>>> I'd be more than happy to share my changes here if it's worth a
>>>>>>> discussion.
>>>>>>>
>>>>>>> Regards,
>>>>>>> -John
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>>
>>>>
>>>>
>>> --
>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>
>>
>>
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 20:10 John Harvey <john.harvey@crunchydata.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 17+ messages in thread
From: John Harvey @ 2015-12-30 20:10 UTC (permalink / raw)
To: ; +Cc: pgsql-jdbc
Hi Dave,
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.
I think RPM-wise that covers everything except for one last question, about
this file:
doc/pgjdbc.xml
I think this was a docbook that used to be created from all of the javadocs
in the ant builds. I don't see that in the current build (note that I am
running with -Prelease-artifacts to generate html files). Is that
something that needs to be fixed? If so, I could take a stab at it.
Regards,
-John
On Wed, Dec 30, 2015 at 2:54 PM, Dave Cramer <pg@fastcrypt.com> 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
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 14:51, John Harvey <john.harvey@crunchydata.com>
> wrote:
>
>> Thanks Dave. I'll have to try that out; it might be what we need.
>>
>> Devin- I'll try to get you a spec file by tomorrow for testing if that's
>> all right.
>>
>> BTW, I have a question about the latest PGJDBC release.
>>
>> 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
>> have a concern because the sources jar does not appear to contain the pom
>> file for compilation. Typically the RPM code uses a source tarball as a
>> starting point. Just curious if that's going to be hosted somewhere.
>>
>> Thanks!
>> -John
>>
>> On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>>
>>> seems there is an rpm for maven
>>> http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
>>>
>>> Dave Cramer
>>>
>>> davec@postgresintl.com
>>> www.postgresintl.com
>>>
>>> On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
>>>
>>>> Hi,
>>>>
>>>> pgsql-pkg-yum@ is rpm mailing list.
>>>>
>>>> I have zero idea about maven. How much effort would it take to RPMify
>>>> it?
>>>>
>>>> Can you please send the new spec? I can give a try tomorrow.
>>>>
>>>> Regards, Devrim
>>>>
>>>>
>>>> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <
>>>> john.harvey@crunchydata.com> wrote:
>>>>>
>>>>> Hello Devrim,
>>>>>
>>>>> I've got a functioning spec-file, but I have a question which I think
>>>>> needs to be answered before contributing my spec-file changes (which I'm
>>>>> not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>>>>>
>>>>> The question has to do with the new build being dependent on maven
>>>>> instead of ant.
>>>>> Typically, with a spec file it is expected that we could address this
>>>>> with the following line:
>>>>> BuildRequires: maven >= 3.0.0
>>>>>
>>>>> However, there's a problem. Maven isn't generally packaged as an
>>>>> RPM. In fact, even the official RHEL docs point to the maven project site
>>>>> for installation, and that's via tarball unzipping. I found an abandoned
>>>>> java project where somebody tried RPM-ing maven, but they abandoned the
>>>>> project somewhere with maven 2.x, and personally I could not get it to
>>>>> build.
>>>>>
>>>>> 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
>>>>>
>>>>> However, even that doesn't work for me. I keep getting that the
>>>>> dependency 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 even been a valid syntax that was tested.
>>>>>
>>>>> I guess I'm not sure what the right approach here is. If I leave the
>>>>> maven dependency off, that's not the correct answer, as it's definitely a
>>>>> requirement (more specifically, maven 3.x). However, I'm not sure what I
>>>>> can do to make the spec-file recognize this build dependency.
>>>>>
>>>>> Note that I'm happy to take this to another list if that's
>>>>> appropriate, or have an offline discussion if that makes sense.
>>>>>
>>>>> Thank you,
>>>>> -John
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org>
>>>>> wrote:
>>>>>
>>>>>> Hi Dave,
>>>>>>
>>>>>> Well, *building* RPMs are PITA nowadays, so until we get a stable
>>>>>> build, I would prefer this list to catch your attention.
>>>>>>
>>>>>> Regards, Devrim
>>>>>>
>>>>>>
>>>>>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <
>>>>>> pg@fastcrypt.com> wrote:
>>>>>>>
>>>>>>> Hi John,
>>>>>>>
>>>>>>> We don't have anything to do with the RPMS
>>>>>>>
>>>>>>> Dave
>>>>>>>
>>>>>>> Dave Cramer
>>>>>>>
>>>>>>> davec@postgresintl.com
>>>>>>> www.postgresintl.com
>>>>>>>
>>>>>>> On 30 December 2015 at 11:03, John Harvey <
>>>>>>> john.harvey@crunchydata.com> wrote:
>>>>>>>
>>>>>>>> Hello all,
>>>>>>>>
>>>>>>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>>>>>>> repository?
>>>>>>>>
>>>>>>>> I'd be more than happy to share my changes here if it's worth a
>>>>>>>> discussion.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> -John
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>
>>>
>>>
>>
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 20:11 Dave Cramer <pg@fastcrypt.com>
parent: John Harvey <john.harvey@crunchydata.com>
0 siblings, 1 reply; 17+ messages in thread
From: Dave Cramer @ 2015-12-30 20:11 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
John,
No, that file does not exist any more. All documentation exists in the www
repo now
Dave Cramer
davec@postgresintl.com
www.postgresintl.com
On 30 December 2015 at 15:10, John Harvey <john.harvey@crunchydata.com>
wrote:
> Hi Dave,
>
> 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.
>
> I think RPM-wise that covers everything except for one last question,
> about this file:
> doc/pgjdbc.xml
>
> I think this was a docbook that used to be created from all of the
> javadocs in the ant builds. I don't see that in the current build (note
> that I am running with -Prelease-artifacts to generate html files). Is
> that something that needs to be fixed? If so, I could take a stab at it.
>
> Regards,
> -John
>
> On Wed, Dec 30, 2015 at 2:54 PM, Dave Cramer <pg@fastcrypt.com> 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
>>
>> Dave Cramer
>>
>> davec@postgresintl.com
>> www.postgresintl.com
>>
>> On 30 December 2015 at 14:51, John Harvey <john.harvey@crunchydata.com>
>> wrote:
>>
>>> Thanks Dave. I'll have to try that out; it might be what we need.
>>>
>>> Devin- I'll try to get you a spec file by tomorrow for testing if that's
>>> all right.
>>>
>>> BTW, I have a question about the latest PGJDBC release.
>>>
>>> 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
>>> have a concern because the sources jar does not appear to contain the pom
>>> file for compilation. Typically the RPM code uses a source tarball as a
>>> starting point. Just curious if that's going to be hosted somewhere.
>>>
>>> Thanks!
>>> -John
>>>
>>> On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>>>
>>>> seems there is an rpm for maven
>>>> http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
>>>>
>>>> Dave Cramer
>>>>
>>>> davec@postgresintl.com
>>>> www.postgresintl.com
>>>>
>>>> On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> pgsql-pkg-yum@ is rpm mailing list.
>>>>>
>>>>> I have zero idea about maven. How much effort would it take to RPMify
>>>>> it?
>>>>>
>>>>> Can you please send the new spec? I can give a try tomorrow.
>>>>>
>>>>> Regards, Devrim
>>>>>
>>>>>
>>>>> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <
>>>>> john.harvey@crunchydata.com> wrote:
>>>>>>
>>>>>> Hello Devrim,
>>>>>>
>>>>>> I've got a functioning spec-file, but I have a question which I think
>>>>>> needs to be answered before contributing my spec-file changes (which I'm
>>>>>> not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>>>>>>
>>>>>> The question has to do with the new build being dependent on maven
>>>>>> instead of ant.
>>>>>> Typically, with a spec file it is expected that we could address this
>>>>>> with the following line:
>>>>>> BuildRequires: maven >= 3.0.0
>>>>>>
>>>>>> However, there's a problem. Maven isn't generally packaged as an
>>>>>> RPM. In fact, even the official RHEL docs point to the maven project site
>>>>>> for installation, and that's via tarball unzipping. I found an abandoned
>>>>>> java project where somebody tried RPM-ing maven, but they abandoned the
>>>>>> project somewhere with maven 2.x, and personally I could not get it to
>>>>>> build.
>>>>>>
>>>>>> 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
>>>>>>
>>>>>> However, even that doesn't work for me. I keep getting that the
>>>>>> dependency 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 even been a valid syntax that was tested.
>>>>>>
>>>>>> I guess I'm not sure what the right approach here is. If I leave the
>>>>>> maven dependency off, that's not the correct answer, as it's definitely a
>>>>>> requirement (more specifically, maven 3.x). However, I'm not sure what I
>>>>>> can do to make the spec-file recognize this build dependency.
>>>>>>
>>>>>> Note that I'm happy to take this to another list if that's
>>>>>> appropriate, or have an offline discussion if that makes sense.
>>>>>>
>>>>>> Thank you,
>>>>>> -John
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Dave,
>>>>>>>
>>>>>>> Well, *building* RPMs are PITA nowadays, so until we get a stable
>>>>>>> build, I would prefer this list to catch your attention.
>>>>>>>
>>>>>>> Regards, Devrim
>>>>>>>
>>>>>>>
>>>>>>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <
>>>>>>> pg@fastcrypt.com> wrote:
>>>>>>>>
>>>>>>>> Hi John,
>>>>>>>>
>>>>>>>> We don't have anything to do with the RPMS
>>>>>>>>
>>>>>>>> Dave
>>>>>>>>
>>>>>>>> Dave Cramer
>>>>>>>>
>>>>>>>> davec@postgresintl.com
>>>>>>>> www.postgresintl.com
>>>>>>>>
>>>>>>>> On 30 December 2015 at 11:03, John Harvey <
>>>>>>>> john.harvey@crunchydata.com> wrote:
>>>>>>>>
>>>>>>>>> Hello all,
>>>>>>>>>
>>>>>>>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>>>>>>>> repository?
>>>>>>>>>
>>>>>>>>> I'd be more than happy to share my changes here if it's worth a
>>>>>>>>> discussion.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> -John
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>>
>>>>
>>>>
>>>
>>
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 23:06 John Harvey <john.harvey@crunchydata.com>
parent: Dave Cramer <pg@fastcrypt.com>
0 siblings, 1 reply; 17+ messages in thread
From: John Harvey @ 2015-12-30 23:06 UTC (permalink / raw)
To: ; +Cc: pgsql-jdbc
Thank you Dave, for all of the support today.
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.
Note that you may find some issues building on EL6 due to my dependency on
the maven RPM that was discussed earlier in this thread, because it's
dependent on openjdk 1.7.0. You'll need to make sure that your JAVA_HOME
is set appropriately to compile with Java 1.8, or you'll get a maven
enforcer plugin 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.
Let me know if you have any issues or questions; I can try to assist.
Regards,
-John
On Wed, Dec 30, 2015 at 3:11 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> John,
>
> No, that file does not exist any more. All documentation exists in the www
> repo now
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 15:10, John Harvey <john.harvey@crunchydata.com>
> wrote:
>
>> Hi Dave,
>>
>> 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.
>>
>> I think RPM-wise that covers everything except for one last question,
>> about this file:
>> doc/pgjdbc.xml
>>
>> I think this was a docbook that used to be created from all of the
>> javadocs in the ant builds. I don't see that in the current build (note
>> that I am running with -Prelease-artifacts to generate html files). Is
>> that something that needs to be fixed? If so, I could take a stab at it.
>>
>> Regards,
>> -John
>>
>> On Wed, Dec 30, 2015 at 2:54 PM, Dave Cramer <pg@fastcrypt.com> 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
>>>
>>> Dave Cramer
>>>
>>> davec@postgresintl.com
>>> www.postgresintl.com
>>>
>>> On 30 December 2015 at 14:51, John Harvey <john.harvey@crunchydata.com>
>>> wrote:
>>>
>>>> Thanks Dave. I'll have to try that out; it might be what we need.
>>>>
>>>> Devin- I'll try to get you a spec file by tomorrow for testing if
>>>> that's all right.
>>>>
>>>> BTW, I have a question about the latest PGJDBC release.
>>>>
>>>> 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
>>>> have a concern because the sources jar does not appear to contain the pom
>>>> file for compilation. Typically the RPM code uses a source tarball as a
>>>> starting point. Just curious if that's going to be hosted somewhere.
>>>>
>>>> Thanks!
>>>> -John
>>>>
>>>> On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer <pg@fastcrypt.com> wrote:
>>>>
>>>>> seems there is an rpm for maven
>>>>> http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
>>>>>
>>>>> Dave Cramer
>>>>>
>>>>> davec@postgresintl.com
>>>>> www.postgresintl.com
>>>>>
>>>>> On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> pgsql-pkg-yum@ is rpm mailing list.
>>>>>>
>>>>>> I have zero idea about maven. How much effort would it take to RPMify
>>>>>> it?
>>>>>>
>>>>>> Can you please send the new spec? I can give a try tomorrow.
>>>>>>
>>>>>> Regards, Devrim
>>>>>>
>>>>>>
>>>>>> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <
>>>>>> john.harvey@crunchydata.com> wrote:
>>>>>>>
>>>>>>> Hello Devrim,
>>>>>>>
>>>>>>> I've got a functioning spec-file, but I have a question which I
>>>>>>> think needs to be answered before contributing my spec-file changes (which
>>>>>>> I'm not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>>>>>>>
>>>>>>> The question has to do with the new build being dependent on maven
>>>>>>> instead of ant.
>>>>>>> Typically, with a spec file it is expected that we could address
>>>>>>> this with the following line:
>>>>>>> BuildRequires: maven >= 3.0.0
>>>>>>>
>>>>>>> However, there's a problem. Maven isn't generally packaged as an
>>>>>>> RPM. In fact, even the official RHEL docs point to the maven project site
>>>>>>> for installation, and that's via tarball unzipping. I found an abandoned
>>>>>>> java project where somebody tried RPM-ing maven, but they abandoned the
>>>>>>> project somewhere with maven 2.x, and personally I could not get it to
>>>>>>> build.
>>>>>>>
>>>>>>> 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
>>>>>>>
>>>>>>> However, even that doesn't work for me. I keep getting that the
>>>>>>> dependency 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 even been a valid syntax that was tested.
>>>>>>>
>>>>>>> I guess I'm not sure what the right approach here is. If I leave
>>>>>>> the maven dependency off, that's not the correct answer, as it's definitely
>>>>>>> a requirement (more specifically, maven 3.x). However, I'm not sure what I
>>>>>>> can do to make the spec-file recognize this build dependency.
>>>>>>>
>>>>>>> Note that I'm happy to take this to another list if that's
>>>>>>> appropriate, or have an offline discussion if that makes sense.
>>>>>>>
>>>>>>> Thank you,
>>>>>>> -John
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Dave,
>>>>>>>>
>>>>>>>> Well, *building* RPMs are PITA nowadays, so until we get a stable
>>>>>>>> build, I would prefer this list to catch your attention.
>>>>>>>>
>>>>>>>> Regards, Devrim
>>>>>>>>
>>>>>>>>
>>>>>>>> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <
>>>>>>>> pg@fastcrypt.com> wrote:
>>>>>>>>>
>>>>>>>>> Hi John,
>>>>>>>>>
>>>>>>>>> We don't have anything to do with the RPMS
>>>>>>>>>
>>>>>>>>> Dave
>>>>>>>>>
>>>>>>>>> Dave Cramer
>>>>>>>>>
>>>>>>>>> davec@postgresintl.com
>>>>>>>>> www.postgresintl.com
>>>>>>>>>
>>>>>>>>> On 30 December 2015 at 11:03, John Harvey <
>>>>>>>>> john.harvey@crunchydata.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hello all,
>>>>>>>>>>
>>>>>>>>>> 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 PGJDBC 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 solely with the team that works on the pgrpm
>>>>>>>>>> repository?
>>>>>>>>>>
>>>>>>>>>> I'd be more than happy to share my changes here if it's worth a
>>>>>>>>>> discussion.
>>>>>>>>>>
>>>>>>>>>> Regards,
>>>>>>>>>> -John
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>> --
>>>>>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Attachments:
pgjdbc_el6_7.patch (application/octet-stream, 7.6K) download
From 415e5ba8848e076aaf1c561887d4596e4c94153e Mon Sep 17 00:00:00 2001
From: "John K. Harvey" <john.harvey@crunchydata.com>
Date: Wed, 30 Dec 2015 15:38:58 -0500
Subject: [PATCH] New specfiles for EL6/7 for pgjdbc REL9.4.1207
---
.../9.5/postgresql-jdbc/EL-6/postgresql-jdbc.spec | 27 ++++++-------
.../9.5/postgresql-jdbc/EL-7/postgresql-jdbc.spec | 44 +++++++++++-----------
2 files changed, 37 insertions(+), 34 deletions(-)
diff --git a/rpm/redhat/9.5/postgresql-jdbc/EL-6/postgresql-jdbc.spec b/rpm/redhat/9.5/postgresql-jdbc/EL-6/postgresql-jdbc.spec
index 4ae4461..c100a70 100644
--- a/rpm/redhat/9.5/postgresql-jdbc/EL-6/postgresql-jdbc.spec
+++ b/rpm/redhat/9.5/postgresql-jdbc/EL-6/postgresql-jdbc.spec
@@ -23,7 +23,6 @@
# on the rpm command line
%{!?gcj_support:%global gcj_support 1}
-%{!?upstreamver:%global upstreamver 9.3-1101}
%global pgmajorversion 95
%global pginstdir /usr/pgsql-9.5
%global sname postgresql-jdbc
@@ -33,24 +32,25 @@
Summary: JDBC driver for PostgreSQL
Name: postgresql%{pgmajorversion}-jdbc
-Version: 9.3.1101
+Version: 9.4.1207
Release: 1PGDG%{?dist}
Epoch: 0
License: BSD
Group: Applications/Databases
URL: http://jdbc.postgresql.org/
-Source0: http://jdbc.postgresql.org/download/%{sname}-%{upstreamver}.src.tar.gz
+Source0: https://github.com/pgjdbc/pgjdbc/archive/REL%{version}.tar.gz
Provides: postgresql-jdbc
%if ! %{gcj_support}
BuildArch: noarch
%endif
-BuildRequires: jpackage-utils >= 0:1.5
-BuildRequires: ant >= 0:1.6.2
-BuildRequires: ant-junit >= 0:1.6.2
-BuildRequires: junit >= 0:3.7
+# gettext is only needed if we try to update translations
+#BuildRequires: gettext
+# Maven RPM is in http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
+BuildRequires: apache-maven >= 3.0.0
+BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: findutils gettext
%if %{gcj_support}
BuildRequires: gcc-java
@@ -65,24 +65,22 @@ system. The postgresql-jdbc package includes the .jar files needed for
Java programs to access a PostgreSQL database.
%prep
-%setup -q -n %{sname}-%{upstreamver}.src
+%setup -q -n pgjdbc-REL%{version}/
# remove any binary libs
find -name "*.jar" -or -name "*.class" | xargs rm -f
%build
-export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=
-sh update-translations.sh
-ant
+mvn -DskipTests -P release-artifacts clean package
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_javadir}
# Per jpp conventions, jars have version-numbered names and we add
# versionless symlinks.
-install -m 644 jars/postgresql-%{upstreamver}.jdbc4.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
+install -m 644 pgjdbc/target/postgresql-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd %{buildroot}%{_javadir}
ln -s %{name}-%{version}.jar %{name}.jar
@@ -103,7 +101,7 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root)
-%doc LICENSE doc/*
+%doc LICENSE
%{_javadir}/*
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
@@ -112,6 +110,9 @@ rm -rf %{buildroot}
%endif
%changelog
+* Wed Dec 30 2015 John Harvey <john.harvey@crunchydata.com>
+- Update to 9.4 build 1207 (maven support)
+
* Thu Jul 10 2014 Devrim Gunduz <devrim@gunduz.org> 0:9.3.1101-1PGDG
- Update to 9.3 build 1101
diff --git a/rpm/redhat/9.5/postgresql-jdbc/EL-7/postgresql-jdbc.spec b/rpm/redhat/9.5/postgresql-jdbc/EL-7/postgresql-jdbc.spec
index 1fae9e8..aa15e3b 100644
--- a/rpm/redhat/9.5/postgresql-jdbc/EL-7/postgresql-jdbc.spec
+++ b/rpm/redhat/9.5/postgresql-jdbc/EL-7/postgresql-jdbc.spec
@@ -1,30 +1,27 @@
%global section devel
-%global upstreamver 9.3-1101
%global pgmajorversion 95
%global pginstdir /usr/pgsql-9.5
%global sname postgresql-jdbc
Summary: JDBC driver for PostgreSQL
Name: postgresql%{pgmajorversion}-jdbc
-Version: 9.3.1101
-Release: 1%{?dist}
+Version: 9.4.1207
+Release: 1PGDG%{?dist}
# ASL 2.0 applies only to postgresql-jdbc.pom file, the rest is BSD
License: BSD and ASL 2.0
Group: Applications/Databases
URL: http://jdbc.postgresql.org/
-Source0: http://jdbc.postgresql.org/download/%{sname}-%{upstreamver}.src.tar.gz
+Source0: https://github.com/pgjdbc/pgjdbc/archive/REL%{version}.tar.gz
# originally http://repo2.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/postgresql-8.4-701.jdbc4.pom:
Source1: %{name}.pom
BuildArch: noarch
-BuildRequires: java-1.7.0-openjdk-devel
-BuildRequires: jpackage-utils
-BuildRequires: ant
-BuildRequires: ant-junit
-BuildRequires: junit
# gettext is only needed if we try to update translations
#BuildRequires: gettext
+# Maven RPM is in http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
+BuildRequires: apache-maven >= 3.0.0
+BuildRequires: java-1.8.0-openjdk-devel
Requires: jpackage-utils
Requires: java-headless >= 1:1.8
@@ -41,17 +38,18 @@ Group: Documentation
This package contains the API Documentation for %{name}.
%prep
-%setup -c -q -n postgresql-jdbc-9.3-1101.src/
+%setup -c -q -n pgjdbc-REL%{version}/
-mv -f %{sname}-%{upstreamver}.src/* .
-rm -f %{sname}-%{upstreamver}.src/.gitignore
-rmdir %{sname}-%{upstreamver}.src
+mv -f pgjdbc-REL%{version}/* .
+rm -f pgjdbc-REL%{version}/.gitattributes
+rm -f pgjdbc-REL%{version}/.gitignore
+rm -f pgjdbc-REL%{version}/.travis.yml
+#rmdir pgjdbc-REL%{version}
# remove any binary libs
find -name "*.jar" -or -name "*.class" | xargs rm -f
%build
-export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=
# Ideally we would run "sh update-translations.sh" here, but that results
@@ -60,13 +58,14 @@ export CLASSPATH=
# different platforms don't build in the same minute. For now, rely on
# upstream to have updated the translations files before packaging.
-ant jar publicapi
+mvn -DskipTests -P release-artifacts clean package
+
%install
install -d $RPM_BUILD_ROOT%{_javadir}
# Per jpp conventions, jars have version-numbered names and we add
# versionless symlinks.
-install -m 644 jars/postgresql-%{upstreamver}.jdbc41.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+install -m 644 pgjdbc/target/postgresql-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
pushd $RPM_BUILD_ROOT%{_javadir}
@@ -78,27 +77,27 @@ ln -s postgresql-jdbc.jar postgresql-jdbc3.jar
popd
# Install the pom after inserting the correct version number
-sed 's/UPSTREAM_VERSION/%{upstreamver}/g' %{SOURCE1} >JPP-%{name}.pom
+sed 's/UPSTREAM_VERSION/%{version}/g' %{SOURCE1} >JPP-%{name}.pom
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}/
install -m 644 JPP-%{name}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
-cp -ra build/publicapi $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-install -d build/publicapi docs/%{name}
+cp -ra pgjdbc/target/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+install -d pgjdbc/target/apidocs docs/%{name}
%check
%if 0%{?runselftest}
# Note that this requires to have PostgreSQL properly configured; for this
# reason the testsuite is turned off by default (see org/postgresql/test/README)
-ant test 2>&1 | tee test.log | grep FAILED
+mvn clean package 2>&1 | tee test.log | grep FAILED
test $? -eq 0 && { cat test.log ; exit 1 ; }
%endif
%files -f .mfiles
-%doc LICENSE README.md doc/*
+%doc LICENSE README.md
%{_javadir}/%{sname}2.jar
%{_javadir}/%{sname}2ee.jar
%{_javadir}/%{sname}3.jar
@@ -108,6 +107,9 @@ test $? -eq 0 && { cat test.log ; exit 1 ; }
%doc %{_javadocdir}/%{name}
%changelog
+* Wed Dec 30 2015 John Harvey <john.harvey@crunchydata.com>
+- Update to 9.4 build 1207 (maven support)
+
* Wed Jul 9 2014 Devrim Gunduz <devrim@gunduz.org> 0:9.3.1101-1PGDG
- Update to 9.3 build 1101
- Remove gcj support, now deprecated.
--
2.5.0
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2015-12-30 23:17 Steven Schlansker <stevenschlansker@gmail.com>
parent: John Harvey <john.harvey@crunchydata.com>
0 siblings, 1 reply; 17+ messages in thread
From: Steven Schlansker @ 2015-12-30 23:17 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
On Dec 30, 2015, at 3:06 PM, John Harvey <john.harvey@crunchydata.com> wrote:
> Thank you Dave, for all of the support today.
>
> 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.
>
> Note that you may find some issues building on EL6 due to my dependency on the maven RPM that was discussed earlier in this thread, because it's dependent on openjdk 1.7.0. You'll need to make sure that your JAVA_HOME is set appropriately to compile with Java 1.8, or you'll get a maven enforcer plugin 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.
>
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.
>
> Regards,
> -John
>
> On Wed, Dec 30, 2015 at 3:11 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> John,
>
> No, that file does not exist any more. All documentation exists in the www repo now
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 15:10, John Harvey <john.harvey@crunchydata.com> wrote:
> Hi Dave,
>
> 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.
>
> I think RPM-wise that covers everything except for one last question, about this file:
> doc/pgjdbc.xml
>
> I think this was a docbook that used to be created from all of the javadocs in the ant builds. I don't see that in the current build (note that I am running with -Prelease-artifacts to generate html files). Is that something that needs to be fixed? If so, I could take a stab at it.
>
> Regards,
> -John
>
> On Wed, Dec 30, 2015 at 2:54 PM, Dave Cramer <pg@fastcrypt.com> 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
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 14:51, John Harvey <john.harvey@crunchydata.com> wrote:
> Thanks Dave. I'll have to try that out; it might be what we need.
>
> Devin- I'll try to get you a spec file by tomorrow for testing if that's all right.
>
> BTW, I have a question about the latest PGJDBC release.
>
> 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 have a concern because the sources jar does not appear to contain the pom file for compilation. Typically the RPM code uses a source tarball as a starting point. Just curious if that's going to be hosted somewhere.
>
> Thanks!
> -John
>
> On Wed, Dec 30, 2015 at 2:41 PM, Dave Cramer <pg@fastcrypt.com> wrote:
> seems there is an rpm for maven http://stackoverflow.com/questions/7532928/how-do-i-install-maven-with-yum
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 14:28, Devrim Gündüz <devrim@gunduz.org> wrote:
> Hi,
>
> pgsql-pkg-yum@ is rpm mailing list.
>
> I have zero idea about maven. How much effort would it take to RPMify it?
>
> Can you please send the new spec? I can give a try tomorrow.
>
> Regards, Devrim
>
>
> On December 30, 2015 9:16:20 PM GMT+02:00, John Harvey <john.harvey@crunchydata.com> wrote:
> Hello Devrim,
>
> I've got a functioning spec-file, but I have a question which I think needs to be answered before contributing my spec-file changes (which I'm not quite sure how to do for pgrpms-- I couldn't find a mail-list).
>
> The question has to do with the new build being dependent on maven instead of ant.
> Typically, with a spec file it is expected that we could address this with the following line:
> BuildRequires: maven >= 3.0.0
>
> However, there's a problem. Maven isn't generally packaged as an RPM. In fact, even the official RHEL docs point to the maven project site for installation, and that's via tarball unzipping. I found an abandoned java project where somebody tried RPM-ing maven, but they abandoned the project somewhere with maven 2.x, and personally I could not get it to build.
>
> 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
>
> However, even that doesn't work for me. I keep getting that the dependency 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 even been a valid syntax that was tested.
>
> I guess I'm not sure what the right approach here is. If I leave the maven dependency off, that's not the correct answer, as it's definitely a requirement (more specifically, maven 3.x). However, I'm not sure what I can do to make the spec-file recognize this build dependency.
>
> Note that I'm happy to take this to another list if that's appropriate, or have an offline discussion if that makes sense.
>
> Thank you,
> -John
>
>
>
> On Wed, Dec 30, 2015 at 1:16 PM, Devrim Gündüz <devrim@gunduz.org> wrote:
> Hi Dave,
>
> Well, *building* RPMs are PITA nowadays, so until we get a stable build, I would prefer this list to catch your attention.
>
> Regards, Devrim
>
>
> On December 30, 2015 6:20:40 PM GMT+02:00, Dave Cramer <pg@fastcrypt.com> wrote:
> Hi John,
>
> We don't have anything to do with the RPMS
>
> Dave
>
> Dave Cramer
>
> davec@postgresintl.com
> www.postgresintl.com
>
> On 30 December 2015 at 11:03, John Harvey <john.harvey@crunchydata.com> wrote:
> Hello all,
>
> 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 PGJDBC 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 solely with the team that works on the pgrpm repository?
>
> I'd be more than happy to share my changes here if it's worth a discussion.
>
> Regards,
> -John
>
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
>
>
>
>
>
> <pgjdbc_el6_7.patch>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2016-01-05 15:27 Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
parent: Steven Schlansker <stevenschlansker@gmail.com>
0 siblings, 1 reply; 17+ messages in thread
From: Vladimir Sitnikov @ 2016-01-05 15:27 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc; Steven Schlansker <stevenschlansker@gmail.com>
I think Github tarballs are fine.
Tags with REL${version} are going to be the release tags.
To trigger toolchain usage (and disable enforcer at the same time),
you need to use `mvn package -Prelease` command.
However, it might be better to create -Pactivate-toolchains to make
that explicit.
Sample toolchains.xml file can be found in the source root of pgjdbc project.
You might want to add -DskipTests, otherwise you need to have a
running PostgreSQL instance to execute the tests.
Vladimir
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2016-01-05 16:19 John Harvey <john.harvey@crunchydata.com>
parent: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
0 siblings, 2 replies; 17+ messages in thread
From: John Harvey @ 2016-01-05 16:19 UTC (permalink / raw)
To: ; +Cc: pgsql-jdbc
Hey folks,
Thanks for the suggestions!
I was able to get around it with the following:
yum -y install java-1.8.0-openjdk-devel
wget
http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo
-O /etc/yum.repos.d/epel-apache-maven.repo
yum -y install apache-maven
yum -y install jpackage-utils java-headless
# For my RHEL7 build:
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk.x86_64/jre
And then in the spec file, I use:
mvn -DskipTests -P release-artifacts clean package
It seems to work.
I know that with the new 9.5.0 postgresql release in progress things are
busy for the pgrpm's team, so I'm not sure if/when this patch would go in.
Regards,
-John
On Tue, Jan 5, 2016 at 10:27 AM, Vladimir Sitnikov <
sitnikov.vladimir@gmail.com> wrote:
> I think Github tarballs are fine.
> Tags with REL${version} are going to be the release tags.
>
> To trigger toolchain usage (and disable enforcer at the same time),
> you need to use `mvn package -Prelease` command.
> However, it might be better to create -Pactivate-toolchains to make
> that explicit.
>
> Sample toolchains.xml file can be found in the source root of pgjdbc
> project.
> You might want to add -DskipTests, otherwise you need to have a
> running PostgreSQL instance to execute the tests.
>
> Vladimir
>
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2016-01-05 19:46 Devrim GÜNDÜZ <devrim@gunduz.org>
parent: John Harvey <john.harvey@crunchydata.com>
1 sibling, 0 replies; 17+ messages in thread
From: Devrim GÜNDÜZ @ 2016-01-05 19:46 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
Hi,
On Tue, 2016-01-05 at 11:19 -0500, John Harvey wrote:
> I know that with the new 9.5.0 postgresql release in progress things
> are busy for the pgrpm's team, so I'm not sure if/when this patch
> would go in.
I'll give it a try now.
Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: Are pgrpm changes for JDBC discussed here before submission?
@ 2016-01-05 22:00 Devrim GÜNDÜZ <devrim@gunduz.org>
parent: John Harvey <john.harvey@crunchydata.com>
1 sibling, 0 replies; 17+ messages in thread
From: Devrim GÜNDÜZ @ 2016-01-05 22:00 UTC (permalink / raw)
To: John Harvey <john.harvey@crunchydata.com>; +Cc: pgsql-jdbc
Hi John,
Thank you *very* much for this work. I built binaries for 9.5
repository, and I will be push them along with PostgreSQL 9.5.0.
I had to edit EL-6 spec file a bit, as it does not have some macros.
Also, I added apache-maven spec file to our repo, along with the RPMS
for EL-6. The reason is that apache-maven in the repo you mentioned
depends on JDK 1.7.0, but JDBC driver needs 1.8.0. So, I rebuilt our
own RPMS (that was really easy) and added to repo.
Thanks again, you saved great time!
Once the 9.5 dust settles down, I'll built 9.4 and others, too.
Regards, Devrim
On Tue, 2016-01-05 at 11:19 -0500, John Harvey wrote:
> Hey folks,
>
> Thanks for the suggestions!
> I was able to get around it with the following:
>
> yum -y install java-1.8.0-openjdk-devel
> wget
> http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-ma
> ven.repo
> -O /etc/yum.repos.d/epel-apache-maven.repo
> yum -y install apache-maven
> yum -y install jpackage-utils java-headless
>
> # For my RHEL7 build:
> export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk.x86_64/jre
>
> And then in the spec file, I use:
> mvn -DskipTests -P release-artifacts clean package
>
> It seems to work.
>
> I know that with the new 9.5.0 postgresql release in progress things
> are
> busy for the pgrpm's team, so I'm not sure if/when this patch would
> go in.
>
> Regards,
> -John
>
> On Tue, Jan 5, 2016 at 10:27 AM, Vladimir Sitnikov <
> sitnikov.vladimir@gmail.com> wrote:
>
> > I think Github tarballs are fine.
> > Tags with REL${version} are going to be the release tags.
> >
> > To trigger toolchain usage (and disable enforcer at the same time),
> > you need to use `mvn package -Prelease` command.
> > However, it might be better to create -Pactivate-toolchains to make
> > that explicit.
> >
> > Sample toolchains.xml file can be found in the source root of
> > pgjdbc
> > project.
> > You might want to add -DskipTests, otherwise you need to have a
> > running PostgreSQL instance to execute the tests.
> >
> > Vladimir
> >
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 17+ messages in thread
end of thread, other threads:[~2016-01-05 22:00 UTC | newest]
Thread overview: 17+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-30 16:03 Are pgrpm changes for JDBC discussed here before submission? John Harvey <john.harvey@crunchydata.com>
2015-12-30 16:20 ` Dave Cramer <pg@fastcrypt.com>
2015-12-30 18:16 ` Devrim Gündüz <devrim@gunduz.org>
2015-12-30 19:16 ` John Harvey <john.harvey@crunchydata.com>
2015-12-30 19:28 ` Devrim Gündüz <devrim@gunduz.org>
2015-12-30 19:41 ` Dave Cramer <pg@fastcrypt.com>
2015-12-30 19:51 ` John Harvey <john.harvey@crunchydata.com>
2015-12-30 19:54 ` Dave Cramer <pg@fastcrypt.com>
2015-12-30 20:10 ` John Harvey <john.harvey@crunchydata.com>
2015-12-30 20:11 ` Dave Cramer <pg@fastcrypt.com>
2015-12-30 23:06 ` John Harvey <john.harvey@crunchydata.com>
2015-12-30 23:17 ` Steven Schlansker <stevenschlansker@gmail.com>
2016-01-05 15:27 ` Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
2016-01-05 16:19 ` John Harvey <john.harvey@crunchydata.com>
2016-01-05 19:46 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2016-01-05 22:00 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2015-12-30 18:14 ` Devrim Gündüz <devrim@gunduz.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox