pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Georges Martin <jrjsmrtn@gmail.com>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: Packaging 42.3.0 for MacPorts -- need some clarifications
Date: Tue, 26 Oct 2021 10:28:07 +0200
Message-ID: <0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com> (raw)
In-Reply-To: <CAB=Je-Ea_uG58apWTexs8GMzO5fBLAnB+dR-=8UkhxBfJuY34A@mail.gmail.com>
References: <F72ED693-FCEF-4A24-B368-86D4FAE87C69@gmail.com>
	<CAB=Je-Ea_uG58apWTexs8GMzO5fBLAnB+dR-=8UkhxBfJuY34A@mail.gmail.com>

Thanks, Vladimir, this helps a lot understanding the Maven/Gradle situation.

> There are several ways to build and package pgjdbc:
> 
> a) Build from Git sources. That requires Gradle, and it enables running more tests, so you have better confidence in the resulting artifact
> b) Build from "source release" (see -jdbc-src.tar.gz  https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.0/ <https://repo1.maven.org/maven2/org/postgresql/postgresql/42.3.0/; ). Those are simplified sources,
> and the purpose is to add convenience for cases like Debian that lack Gradle. The set of tests and features is reduced, however, the driver should still work in most cases.


I already have a 42.3.0 Portfile reverting back to Maven builds using source release but, as I would like to add tests to the Portfile in the future, I think I'll switch to Git sources and stay with Gradle builds.

> c) You could grab the official release artifacts from https://repo1.maven.org/maven2/org/postgresql/postgresql/ <https://repo1.maven.org/maven2/org/postgresql/postgresql/;

> For instance, Gradle port of MacPorts grabs Gradle from the official distribution site, and it does not build Gradle from sources: https://github.com/macports/macports-ports/blob/cb0311519f9752e4507cf64ba042045690ac429a/devel/gradl... <https://github.com/macports/macports-ports/blob/cb0311519f9752e4507cf64ba042045690ac429a/devel/gradl...;

You are right: some large codebase like JDK are indeed using upstream binaries, but pgjdbc is not that large... :-) Here, I think I'll stay old school and limit potential "supply chain" issues ;-)

Thanks again :-)

Georges=

view thread (3+ messages)

Message-ID: <0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com>
Permalink:  ../0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com/
Also on:    postgresql.org/message-id/0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jrjsmrtn@gmail.com, sitnikov.vladimir@gmail.com
  Subject: Re: Packaging 42.3.0 for MacPorts -- need some clarifications
  In-Reply-To: <0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com>
  References: <F72ED693-FCEF-4A24-B368-86D4FAE87C69@gmail.com> <CAB=Je-Ea_uG58apWTexs8GMzO5fBLAnB+dR-=8UkhxBfJuY34A@mail.gmail.com> <0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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