Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ad56z-0004Ig-8p for pgsql-jdbc@arkaria.postgresql.org; Tue, 08 Mar 2016 00:02:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ad56y-00059R-Il for pgsql-jdbc@arkaria.postgresql.org; Tue, 08 Mar 2016 00:02:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ad56T-0004Ur-3I for pgsql-jdbc@postgresql.org; Tue, 08 Mar 2016 00:02:21 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ad56P-0008Cu-D8 for pgsql-jdbc@postgresql.org; Tue, 08 Mar 2016 00:02:19 +0000 Received: by mail-wm0-x22c.google.com with SMTP id l68so109022647wml.0 for ; Mon, 07 Mar 2016 16:02:16 -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-transfer-encoding; bh=4YYZMNJWPkbEt23KP7myNXLZF0gTqs8h5uyKZPNFCUI=; b=Od820rq5kdpQaJjYego44FJQwERCmisKjVmclOliwNe7Jrm8qvENf88H/u7GBFfCvd ZEsbLloaZWPuiKsVLSaeqkgRTXVmJr/8GD8pXiyVfDdJO7MZ268cYRmFe/ieuurQNxtC j74cg//gSO5DgVTEY3HLlSZq15REWUd1uMWEmFY40WGokM9QtSUj3rbdrPuxtqhZsM/Y LRfMAXkI13f7AGAitA/c/zf7txRcz/22m1RPQn8jrfm69LUY4j6NW7VOLjlZv5BB6hka WwHgo7D0kyUDlm1AfqtLKFZ88SneWrbG5Xcq0m86iIwitRDgofZvFsDEiK/9lqFAjye6 uRsQ== 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-transfer-encoding; bh=4YYZMNJWPkbEt23KP7myNXLZF0gTqs8h5uyKZPNFCUI=; b=D6gW/xCueGpNJU3W1LZJ9wVyOmslvC7fo3tmgBUOXG0jXBTrRfSlx/UiPJ4ZHqBlOZ EZ6hT/sikUXPUxcp5i38AMa2vOsKcCmlMx9VsvZ9mSfiwgoVgNhJRZwDGaCaW+/jFoGM OhAjTVNDv2Hqckc4eNlG/ig0R5fDgjRCFX3M3Cmiq95H0Zobksx9xgAJ5b0O1r5mVpxg JvJB/xOyRX+6nbWcR6RIa/ElwoRW0vkRqC4ZIZ0Aw1e8Te8IX5ISOFEPd4WOC6m4pft9 6M/r+NjbOUNSZaP5JzwrHgd2obQq+K/fSOStB0MUA9ddSl1E5hVrmBtfgkzvoNUWjowP AvoQ== X-Gm-Message-State: AD7BkJKTHnukixVeU3ewvT7qUZsFOVjq3v/dVcokiYgwigu7AyZaLMzyT+1Y6QfWx7afSg== X-Received: by 10.194.123.131 with SMTP id ma3mr25240167wjb.107.1457395335633; Mon, 07 Mar 2016 16:02:15 -0800 (PST) Received: from [192.168.1.129] (124.77.223.87.dynamic.jazztel.es. [87.223.77.124]) by smtp.gmail.com with ESMTPSA id u202sm16067674wmd.24.2016.03.07.16.02.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Mar 2016 16:02:14 -0800 (PST) Subject: Re: Complicated re-distribution of pgjdbc the "open source way" To: =?UTF-8?B?w4FycMOhZCBNYWdvc8Ohbnlp?= , Pavel Raiskup , pgsql-jdbc@postgresql.org, Matteo Melli Bozza References: <2562462.qBr8q3cvoq@nb.usersys.redhat.com> <56DDF0D3.1000700@8kdata.com> <56DE1374.5030300@magwas.rulez.org> Cc: hhorak@redhat.com, pkajaba@redhat.com, ubuntu@rossfamily.co.uk, doko@debian.org, jesse.jaara@gmail.com, ago@gentoo.org, nicolas.lecureuil@free.fr, =?UTF-8?B?RGV2cmltIEfDnE5Ew5xa?= From: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= Message-ID: <56DE1684.5040409@8kdata.com> Date: Tue, 8 Mar 2016 01:02:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56DE1374.5030300@magwas.rulez.org> Content-Type: text/plain; charset=windows-1252; 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 08/03/16 00:49, Árpád Magosányi wrote: > Hola Álvaro, Hi Árpád, thanks for your Spanish salutation :) > > Just some observations. We've been there and done that with upstream. > Maintaining a package with patches this way can easily get to be a big > burden. At some point it becomes a habit, and the big bad surprise comes > when you want to upgrade after a period of lazyness.. That's surely true. However, the suggested patch to maintain (please see the code when submitted here) is minimal. Indeed, it's not code per se. It's just removing some sections of the code -and their dependencies- that while useful upstream do not make sense in Fedora (like a Windows subsystem). Indeed, it makes sense packager's patch mechanism. After all, you may not need stuff that upstream *does* want to have (like, again, Windows stuff). But obviously, upstream cannot be forced to dump that stuff. I doubt maintaining this kind of patches should become a burden. They are not growing and/or diverging patches, but rather static and straightforward to adapt if upstream modifies related files. > I do not want to have a stand on the underlying conflict. Maybe the > healthy github pulse and the quick, accepting treatment of #252 are just > misleading me... 3:) I guess you're referring to https://github.com/pgjdbc/pgjdbc/pull/252 That was ant, and now we're on maven. Things may or may not be different, but as I have so far seen, upstream is not considering removing these dependencies as of today, and that's why a fork has been suggested. > _If you do think that there will be things which should be permanently > patched_ , I would recommend the following to keep the gap (hence > maintenance burden) as small as possible: > - Use a fork on github. Could be a nice way of maintaining it. > - Have integration branches for all important upstream branches, where a > CI job continously merges upstream and tests whether it is still working. Right. > - Open a pull request in upstream for every commit you have. Give them a > chance to sync up. As I mentioned, I don't think this will work. The patches that Fedora requires are considered necessary by upstream, as they make sense there (but not in Fedora). That's why there's all this discussion ;P > - Change only what is absolutely necessary, including not just code, but > also development practices and standards. I would keep it to the minimal, for sure. > > Side note: My understanding of maven is that you can exactly control > your direct dependencies in the pom, and you can have a list including > transitives with the dependency plugin. You can check and abort build if > an unexpected dependency comes up. So no need to have an inferior build > system just because dependencies. I'm not sure if I got what you mean here, but if you mean ant is an inferior solution the answer is yes and pgjdbc will not move back to and, maven is the choice and for good reasons. Thanks for your comments, Álvaro -- Álvaro Hernández Tortosa ----------- 8Kdata > > > On 03/07/2016 10:21 PM, Álvaro Hernández Tortosa wrote: >> Hi Pavel. >> >> As you are well aware :) we (as in 8Kdata) are packaging ToroDB, >> java software that relies on pgjdbc. Since we saw that this issue was >> not moving forward, we investigated the issue on our own. >> >> While as of today the current ToroDB spec that we have is >> depending on an older version of JDBC --which is highly undesirable-- >> we have also built a simple mean of packaging pgjdbc for Fedora >> without having to modify upstream. >> >> Since RPM packages allow (and some of them heavily use) patches >> against upstream, this is easy to accomplish. Having a parent pom is >> neither a problem --it is packaged as a subpackage (might not be >> ideal, but hey, it works, and it doesn't harm). All in all, with all >> the obvious advantages and disadvantages, we have working source code. >> Rather than a will to patch upstream or fork pgjdbc, we have a working >> spec that packages pgjdbc, removing (by patching) all the non-foss and >> windows dependencies and code, and packaging the parent pom too. >> >> I believe iterating over this effort is better than either forking >> or patching upstream. >> >> I don't have the code, but Matteo (cc'ed), who did this work, will >> share it tomorrow. >> >> I'd suggest to work on this, which seems to me as a compromise >> solution, and agree all on this solution, rather than plan longer-term >> plans that, while ideal for some, aren't for the rest and, and above >> all, will take significantly more effort. Our main goal is to deliver >> packaged and foss pgjdbc to the users asap, and here we have an >> already working solution. >> >> Matteo, please share the code whenever possible. >> >> Cheers, >> >> Álvaro >> -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc