Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aMXPa-0003ib-Ig for pgsql-jdbc@arkaria.postgresql.org; Fri, 22 Jan 2016 08:49:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aMXPZ-0003jh-T9 for pgsql-jdbc@arkaria.postgresql.org; Fri, 22 Jan 2016 08:49:41 +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 1aMXPY-0003h4-TI for pgsql-jdbc@postgresql.org; Fri, 22 Jan 2016 08:49:40 +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 1aMXPT-0007QI-9B for pgsql-jdbc@postgresql.org; Fri, 22 Jan 2016 08:49:39 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id D078BC0AC914; Fri, 22 Jan 2016 08:49:31 +0000 (UTC) Received: from nb.usersys.redhat.com (unused-4-197.brq.redhat.com [10.34.4.197]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0M8nU1n025418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 Jan 2016 03:49:31 -0500 From: Pavel Raiskup To: Vitalii Tymchyshyn Cc: Dave Cramer , Vladimir Sitnikov , =?ISO-8859-1?Q?=C1lvaro_Hern=E1ndez?= Tortosa , Pavel Kajaba , Stephen Nelson , List Subject: Re: Step towards being able to build on Linux (Pull request #435) Date: Fri, 22 Jan 2016 09:49:29 +0100 Message-ID: <1885902.CVk9m1gFGk@nb.usersys.redhat.com> User-Agent: KMail/4.14.10 (Linux/4.3.3-300.fc23.x86_64; KDE/4.14.14; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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 Hi Vitalii, On Friday 22 of January 2016 00:39:17 Vitalii Tymchyshyn wrote: > I did some research. The OSGi dependencies can be replaced to the OSS one= s: > osgi-core to org.apache.felix:osgi-core:1.4.0 that is already in Fedora > osge-enterprise to org.ops4j.pax.jdbc:pax-jdbc-spec:0.6.0. This one is not > there, but other OPS4J packages are in there, so I presume this one can be > added too. Please confirm. Let me check please, OSS alternative is definitely better! But if we could make this optional build/runtime dependancy, that would be better. Pavel > The only change other than dependency needed is due to a little older spec > used: >=20 > Index: pgjdbc/src/main/java/org/postgresql/osgi/PGBundleActivator.java > IDEA additional info: > Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP > <+>UTF-8 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- pgjdbc/src/main/java/org/postgresql/osgi/PGBundleActivator.java > (revision 0f979c3bbe1a36e6614e3d448ea43de7be27448b) > +++ pgjdbc/src/main/java/org/postgresql/osgi/PGBundleActivator.java > (revision ) > @@ -22,7 +22,7 @@ > * This class is an OSGi Bundle Activator and should only be used > internally by the OSGi Framework > */ > public class PGBundleActivator implements BundleActivator { > - private ServiceRegistration _registration; > + private ServiceRegistration _registration; >=20 > public void start(BundleContext context) throws Exception { > Dictionary properties =3D new Hashtable(); >=20 >=20 >=20 > =D0=A7=D1=82, 21 =D1=81=D1=96=D1=87. 2016 =D0=BE 17:41 Dave Cramer =D0=BF=D0=B8=D1=88=D0=B5: >=20 > > Yes, Alvaro found one that should work > > https://fedoraproject.org/wiki/PackagingDrafts/OSGiGuidelines, although= I > > don't see a ubuntu one > > > > Dave Cramer > > > > davec@postgresintl.com > > www.postgresintl.com > > > > On 21 January 2016 at 17:04, Vladimir Sitnikov < > > sitnikov.vladimir@gmail.com> wrote: > > > >> >So it seems like one solution to osgi is just to copy the sources into > >> the project. These are all interfaces, and a minimal number of files, I > >> think around 4 > >> > >> What's the problem with packaging OSGi interfaces as usual rpms (or > >> whatever is used for packaging)? > >> As for me, "copy&pasting < >> 4>>" does not solve legal issues if there are any. > >> On top of that, exposing OSGi interfaces as part of pgjdbc.jar would > >> probably void OSGi compliance. The jar would just not load due to > >> invalid contents. > >> > >> Vladimir > >> > > > > --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc