Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aW5GY-0007MZ-2x for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Feb 2016 16:47:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aW5GX-00043z-Ha for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Feb 2016 16:47:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aW5G2-0002wl-55 for pgsql-jdbc@postgresql.org; Wed, 17 Feb 2016 16:47:18 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aW5Fs-0006N5-OL for pgsql-jdbc@postgresql.org; Wed, 17 Feb 2016 16:47:16 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id E7F8280502; Wed, 17 Feb 2016 16:47:05 +0000 (UTC) Received: from nb.usersys.redhat.com (unused-4-210.brq.redhat.com [10.34.4.210]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1HGl4mD004829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Feb 2016 11:47:05 -0500 From: Pavel Raiskup To: =?ISO-8859-1?Q?=C1lvaro_Hern=E1ndez?= Tortosa Cc: pgsql-jdbc@postgresql.org, Matteo Melli , Pavel Kajaba , Craig Ringer , hhorak@redhat.com Subject: Re: [HACKERS] Packaging of postgresql-jdbc Date: Wed, 17 Feb 2016 17:47:03 +0100 Message-ID: <7920241.QS4rtN0h3I@nb.usersys.redhat.com> User-Agent: KMail/4.14.10 (Linux/4.3.5-300.fc23.x86_64; KDE/4.14.16; x86_64; ; ) In-Reply-To: <56C497EC.2030802@8kdata.com> References: <934450056.39552109.1455620714473.JavaMail.zimbra@redhat.com> <25542498.BaYXPhgdKY@nb.usersys.redhat.com> <56C497EC.2030802@8kdata.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Pg-Spam-Score: -6.9 (------) 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 Wednesday 17 of February 2016 16:55:24 =C1lvaro Hern=E1ndez Tortosa wrot= e: > > Yeah, that is something which should be optional. As this is not easy,= we > > should patch it out. >=20 > So I believe this is a simple, good solution. The problem with=20 > waffle is how to "remove" it without asking upstream to change it. Well,= =20 > what Matteo did is simply patch it but as part of the spec to build the=20 > src.rpm. This patch is very simple and makes it buildable as an RPM=20 > without asking upstream to make any changes to the code. Thus I think=20 > this fixes this problem. Right, but Vladimir called this "time-bomb", and I mostly agree. And it fixes RPM packaging only -> not DEB packaging, archlinux, gentoo, etc., .. This deserves central place. > I think that creating and maintaining a pgjdbc-foss is both time=20 > consuming and potentially confusing for end users. I believe what Matteo= =20 > was suggesting is a probably better solution and it's definitely KISS. It is not better solution, just easier -- but as all distros need to do this, it should be done on one place. It wouldn't be confusing, there would definitely be documentation for it. > Summarizing Matteo's suggestion: >=20 > - osgi.enterprise is not allowed in Fedora (and it seems futile to me to= =20 > discuss whether this is right or wrong). Right, the Fedora's POV is off-topic. I'm saying it "might not" be safe for FOSS distribution model to depend on this software. That is why the -foss suffix. > - Apache Felix, which is already packaged for Fedora, provides almost=20 > all the code needed for OSGI support in pgjdbc >=20 > - Only 1 interface is not provided by Felix. Rather than looking for=20 > someone else to provide this interface, we should just re-implement it=20 > (it's just a few lines of code!). It could be done as a clean-room=20 > implementation to avoid actually copying the code. This interface could=20 > either be added to pgjdbc or to a side repo (something like=20 > pgjdbc-osgi-compatibility or any other similar name) and setup a=20 > dependency on this trivial project. It does not seem to be worth the trouble at all, because nobody wants this. Distributions probably don't care about osgi.enterprise too much (=3D=3D obsoleted packages provided, probably unused, patching out the osgi support to allow build, etc.), and upstream does not care (for understandable reasons) to make this soft-dependancy. Who would be this additional work for to make the trouble? > With the above recipe, pgjdbc should also be buildable as an RPM,=20 > without modifying upstream code. I believe no other problems would be=20 > left for packaging it. What do you think? There are other problems (and we probably don't have all): - There is the '*-parent-poms' *separate* project, this makes us to make the package build done in two phases. I still don't understand this artificial split. - non-traditional release practices -- we need 'pgdjbc-X.Y.Z.tar.gz' file, which clearly describes how to build from source. - I haven't been able to run the new tests.., which seem to be Travis (ubuntu && maven?) oriented I agree that this could look like expensive effort, but as I said - we do not want diverge. Just fix the distribution issues ;). Nothing more than what all distributions do anyway with new release, but a consistent way. Pavel --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc