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 1mfHof-00012t-L2 for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Oct 2021 08:28:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mfHod-0001OF-Ph for pgsql-jdbc@arkaria.postgresql.org; Tue, 26 Oct 2021 08:28:15 +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 1mfHod-0001O6-Fg for pgsql-jdbc@lists.postgresql.org; Tue, 26 Oct 2021 08:28:15 +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 1mfHob-0004tY-Ns for pgsql-jdbc@lists.postgresql.org; Tue, 26 Oct 2021 08:28:15 +0000 Received: by mail-ed1-x531.google.com with SMTP id s1so10419265edd.3 for ; Tue, 26 Oct 2021 01:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=tvGSfg7F26QC2UOYSf7lqQEshnm8AxdWQ6Ao8rK2x0w=; b=lalqmm1rticlLJeGiktact/7XNWSR2I4SGF9CPO5CGKhrMwyhrefM+mgcdu8rbcrFh dz/0tuNP1nayCEhxHJhKN7Qq+2aswxfgXK3ZeQTEUIVHVTxiSk1UXxm5NsrcbRSYgO4S cMewDTvzVYxy1auKigRIuVdkUOt+jBrZuNvrNzfhwN3vPvol5mEEvuftbuYyCAWF2l2p ymmx6ULSrBdKjLu/vYtwIdK8XAaeRWiTB4Yg0ocDWABSVitxBLqorqWuCRpC8YJUe4Co RqBldQAjxcShmtv4brU7nI4ytTunuD0lo2j5+fgo8cp+O6ZNnHuAhUxNyNl95Sfcvv88 N/CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=tvGSfg7F26QC2UOYSf7lqQEshnm8AxdWQ6Ao8rK2x0w=; b=sUOdl/rLU3gfG+Aq1kh3hYkkRByNKYgbdiFJ10R5npSJ/J0h4FL8Dn8kCD4WxSdA6w xU6JpGJDvnBUA+Lg8ISgCGdQJEc5WW8Hw4vWaWnmFsfMwfs7Q0n0MY1YwJSvMq2dDo3v qVRYaGazjiiC9Cmkx/+7ls35cBn49vpXCViz/tGgjSNxyeArN5F99uC8YxdZOFnHKseo FYWP/gRrfXo2ZH4ZCXw3P3IUVV0EXcnhHZZDXJmzNw25vr+u5qzcQwSKr5yJ3tendlTM 25kgz1d8/w/Su22Vqbm3R88BOBTl9kN7xuavf9zIMrWKRi/hiRTSP081/CvOoCcnI/p2 uRmw== X-Gm-Message-State: AOAM530NBBaruLKkYoTlnbzkBm9ydXOz1jSWwGmGrqCblHyp01va5PQY R7DC8njBjFJg+Guljwj27zQ= X-Google-Smtp-Source: ABdhPJxNLRH1JWhdgsXmPopCD191nu9KfIkBuofM8yfgu85DBgjnRzefyyv4V2x1LrYcQDCdZ416TA== X-Received: by 2002:a17:907:7da0:: with SMTP id oz32mr3927856ejc.2.1635236889431; Tue, 26 Oct 2021 01:28:09 -0700 (PDT) Received: from smtpclient.apple (ip-62-235-219-205.dsl.scarlet.be. [62.235.219.205]) by smtp.gmail.com with ESMTPSA id b20sm8068908edd.50.2021.10.26.01.28.08 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Oct 2021 01:28:09 -0700 (PDT) From: Georges Martin Message-Id: <0F6676E3-474F-4C63-ADED-C3A3FAB3FF9D@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_1EFACEEF-A5E2-4841-922C-7C7E0006CEA9" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Packaging 42.3.0 for MacPorts -- need some clarifications Date: Tue, 26 Oct 2021 10:28:07 +0200 In-Reply-To: Cc: pgsql-jdbc@lists.postgresql.org To: Vladimir Sitnikov References: X-Mailer: Apple Mail (2.3654.120.0.1.13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_1EFACEEF-A5E2-4841-922C-7C7E0006CEA9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks, Vladimir, this helps a lot understanding the Maven/Gradle = situation. > There are several ways to build and package pgjdbc: >=20 > 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/ = ). = 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/ = > 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/cb0311519f9752e4507cf64ba0= 42045690ac429a/devel/gradle/Portfile#L23-L29 = 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= --Apple-Mail=_1EFACEEF-A5E2-4841-922C-7C7E0006CEA9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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= / ). 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/

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/cb0311519f9752e= 4507cf64ba042045690ac429a/devel/gradle/Portfile#L23-L29

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
= --Apple-Mail=_1EFACEEF-A5E2-4841-922C-7C7E0006CEA9--