Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aMC6I-0005PE-Qv for pgsql-jdbc@arkaria.postgresql.org; Thu, 21 Jan 2016 10:04:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aMC6I-0004Fl-AK for pgsql-jdbc@arkaria.postgresql.org; Thu, 21 Jan 2016 10:04:22 +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 1aMC5n-0003hs-9k for pgsql-jdbc@postgresql.org; Thu, 21 Jan 2016 10:03:51 +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 1aMC5i-0004WV-Co for pgsql-jdbc@postgresql.org; Thu, 21 Jan 2016 10:03:50 +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 0554EA2A12; Thu, 21 Jan 2016 10:03:42 +0000 (UTC) Received: from unused-4-241.brq.redhat.com (unused-4-241.brq.redhat.com [10.34.4.241]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0LA3dYG009787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 21 Jan 2016 05:03:41 -0500 Message-ID: <1453370619.3932.22.camel@redhat.com> Subject: Re: [pgjdbc] Implement JDBC specs via pre-processor step (#435) From: Pavel Kajaba To: Vladimir Sitnikov Cc: Stephen Nelson , List , Pavel Raiskup , Dave Cramer Date: Thu, 21 Jan 2016 11:03:39 +0100 In-Reply-To: References: <1358320242.19481317.1453213885688.JavaMail.zimbra@redhat.com> <48112715.19853068.1453234429084.JavaMail.zimbra@redhat.com> <20160119203844.29253718.8068.7048@gmail.com> <488246730.19885917.1453236547410.JavaMail.zimbra@redhat.com> <1255064726.20279027.1453281864770.JavaMail.zimbra@redhat.com> <1453289369.3932.8.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Wed, 2016-01-20 at 14:58 +0300, Vladimir Sitnikov wrote: > > Why do you think it's a time bomb? > > it won't build because osgi end up somewhere else. > > It is a time bomb because it does not ensure it achieves "exclude all > osgi classes" goal. > For instance, suppose in a week I add a *test* class to validate that > OSGi does work in pgjdbc as designed? > That would add some new files to ".../src/test/java/...". > You would miss to delete them, thus your build will fail. > > Once again: if you delete/add/modify random files from source > distribution, you are building on sand. > Expect random failures in that case. > > If current pgsql's build procedure somehow does not suit you, go > ahead > and raise the discussion on mailing list and/or GitHub's issue. > > > Can you think about better solution? > > A proper solution starts from "gathering the requirements". > I have not seen your requirements on the build procedure except "no > internet". > Well, at some point there was a statement like "maven cannot be used > at all". > > I perfectly understand, that distribution of "waffle" in linux world > makes little sense. > So, I could understand the requirement of "there should be a build > parameter that excludes waffle from dependencies". > It is easy to test, so we setup just another Travis job that builds > "no waffle" variant and it will ensure the build would not get > corrupted by some random accident here or there. > > On the other hand, you go right into the implementation details and > claim that if you change some "direct call" to "reflective call", > then > it would magically solve the problem for you. > That does not work. > Even if that fix somehow gets merged in, I expect a pull request in a > day or two with exactly reverse change set: "improve performance of > waffle calls..." > > That is why I strongly advice you to present your requirements in a > clear & testable way. > Does that make sense? > Ok, I try to present them: 1) all pgjdbc maven dependencies have in Fedora in form of RPMs.   - we are missing osgi-enterpise and waffle-jna 2) If We are not able to get any dependency into Fedora repositories we need to find a way how to resolve it without any time bombs/hacks.   - basicaly we need to find way how to remove/disable waffle-jna and osgi-enterpise. That's pretty much all we require. I would like to shed some light into way how we work with maven. There is tool called XMvn [1]. It works like maven but it is getting jar files from RPMs which are already installed. > Vladimir > > [1] https://mizdebsk.fedorapeople.org/xmvn/site/ -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc