Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aMPZQ-0000Z9-Pv for pgsql-jdbc@arkaria.postgresql.org; Fri, 22 Jan 2016 00:27:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aMPZP-0007UN-QL for pgsql-jdbc@arkaria.postgresql.org; Fri, 22 Jan 2016 00:27:19 +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 1aMPYu-0006wC-PS for pgsql-jdbc@postgresql.org; Fri, 22 Jan 2016 00:26:48 +0000 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aMPYp-0005ZM-1A for pgsql-jdbc@postgresql.org; Fri, 22 Jan 2016 00:26:47 +0000 Received: by mail-ob0-x232.google.com with SMTP id is5so49867853obc.0 for ; Thu, 21 Jan 2016 16:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8kdata-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=2irM/xNeBmoQl3nlv05Yruypv7qxe0pG3CZPi2IKj98=; b=XeclyGPI1F2Zl+AJ26RWSQBXrfIoKLy88l3LCpwcnbTAzWO2kOCvqJQCi4LhT4ATup FYmKiye/sERFAsu/J/FbCgWq3TdOI1EQ+f3vZbspKBu7H3sXOcse0lwZJquzjjiAGjna dbQdsVsR9pdyyPgm4ffcmBJtdkn8JjKcc2SitFavvRppL+b0raMa192M8ylAHnPpvtIV OJuzIrCxnhNoyFZMCe+8BR5Fj29uC5NtrGNW1xJRkB/Km0Fpl9uyCNlrp4cBgy0RbwiT UsYfLMXQnD0oteRaLiTN8INf8jtU7uiLB6UUmTWA+VAivT2EcrDcxTvw8BFcgzSMPeJF qibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=2irM/xNeBmoQl3nlv05Yruypv7qxe0pG3CZPi2IKj98=; b=ithqOsWq4TBvUO4o04mICT/X0vZrS0ENivZqAyhHCaDUW8WzgfeoePKMsKtDaCZ/j8 VicsyPs+GAFzRo0jCDYrKgJc+DJUiv60bJFqrZUDE92fN8UvD2knfbAzN/cL2GlZq6ze E0cMHccKpL91hPTC3XnjbYBgajVxjJDq2fnvM3wQr3L4GW0lKATIXv6P2OCRhMB0qRgF X6jqkEFt3nJVkU/5WUAKRsF41tF1y8uhcfxya+W9z0gKPwxm+XmjvPAs9/xDGsPPuKz9 8y8d+hcSLZHgVhhQgr0xZl9+X3XVOr4YsJvRgaunTez7DWgL/jkPwjptlX4l+ZqPdAvG 7KYA== X-Gm-Message-State: AG10YOT7vQzD+RswcnRiQACdZlQpwDJhd9sTqqgVDHVH0t33KyUF/oGkG/do2S6gc5lQWw== X-Received: by 10.60.226.136 with SMTP id rs8mr107164oec.31.1453422400586; Thu, 21 Jan 2016 16:26:40 -0800 (PST) Received: from ?IPv6:2602:304:cdbe:5360:308f:2b0d:1971:9d8? ([2602:304:cdbe:5360:308f:2b0d:1971:9d8]) by smtp.gmail.com with ESMTPSA id mj8sm1831566obc.25.2016.01.21.16.26.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 16:26:39 -0800 (PST) Subject: Re: [pgjdbc] Implement JDBC specs via pre-processor step (#435) To: Pavel Kajaba , Vladimir Sitnikov 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> <1453370619.3932.22.camel@redhat.com> Cc: Stephen Nelson , List , Pavel Raiskup , Dave Cramer From: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= Message-ID: <56A1773C.8060702@8kdata.com> Date: Thu, 21 Jan 2016 16:26:36 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1453370619.3932.22.camel@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.8 (-) 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 21/01/16 02:03, Pavel Kajaba wrote: > [...] > 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 OK, so here's how to reproducible check the dependencies of the maven project: - Clone the repo from github - Do a "mvn package install -DskipTests" - Run "mvn dependency:list" For the pgjdbc (we don't care about the ubenchmark, that's not going to get packaged) looks like this: org.postgresql:postgresql:bundle:9.4.1208-SNAPSHOT [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] +- org.osgi:org.osgi.enterprise:jar:4.2.0:provided [INFO] +- org.osgi:org.osgi.core:jar:4.3.1:provided [INFO] +- xml-resolver:xml-resolver:jar:1.2:compile [INFO] \- com.github.dblock.waffle:waffle-jna:jar:1.7:compile [INFO] +- net.java.dev.jna:jna:jar:4.1.0:compile [INFO] \- net.java.dev.jna:jna-platform:jar:4.1.0:compile Now go to search.maven org and perform queries like: u:org.osgi g:org.osgi.enterprise And read the pom.xml. There the license, dependencies and possible information to the source code repository or developers can be found. Also the source jar. Now looking at some dependencies: - org.osgi.core is already present in Fedora/RH, but a very old version (1.4, pgjdbc is using 4.3.1): http://koji.fedoraproject.org/koji/buildinfo?buildID=649030 But I guess packaging a new version shouldn't be hard. Specially as this module does not contain any transitive dependency. Which brings me to another point: is it easy to just build it, as source code is available and there are no further dependencies? May we contact this 1.4 version package mantainer and ask about updating it or otherwise use that packages building scripts? - org.osgi.enterprise is not packaged for Fedora/RH but doesn't have any other dependencies and source is available. - junit is just a test dependency, it's not required to build the package - xml-resolver: pretty old code, sources available, no dependencies. Maybe we should look at using XML code from the JDK rather than this library, but I haven't checked how big this impact may be. Opinions welcomed. - waffle: the real deal, as it doesn't make any sense on a linux build. Hope this information helps. Cheers, Álvaro > > 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