Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btZ1c-0000Do-GN for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 10 Oct 2016 11:45:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btZ1b-0002ZB-Pw for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 10 Oct 2016 11:45:43 +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_2) (envelope-from ) id 1btZ1b-0002Z4-E8 for pgsql-pkg-yum@postgresql.org; Mon, 10 Oct 2016 11:45:43 +0000 Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1btZ1W-0006nD-P7 for pgsql-pkg-yum@postgresql.org; Mon, 10 Oct 2016 11:45:42 +0000 Received: by mail-vk0-x236.google.com with SMTP id b186so84650357vkb.1 for ; Mon, 10 Oct 2016 04:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kRBz1tppDCHEhGWq+gy2XITo8UR3bSxRhnlsUXSJugg=; b=srndXM+2UUP/qkob1nPjIXiaP5Qa836GhRYnBlhaV1zL2DrQroHYQ3BazqW+cix0fQ oBrP3eXioUpWw2LnjXyyzIs1lqnldg/0hHK04FBAf3BH/oT04bWf/PpUDDbPxmu52c7/ K0adxRqHNJlafgBljIjaqE7acrDSMDBjWeHV1/+KjLgTmxRJtmRf73046j/rX3TvQQ/Z u3fRcf3S0C17Tvw14D0ka1SUCA6F/sGQxbtyWXMdTsfyxK//HLMdyWeJfWBoRfblr6pV CXTYTFg4e0Dw17L9X9qUVmNbupV+63O4Tyd1PrqeU0EjY3VHVEyQa4vz6pcroz2kEWmG 6obA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kRBz1tppDCHEhGWq+gy2XITo8UR3bSxRhnlsUXSJugg=; b=Fwm8N673JWHSkCWYR6jUEw56wmeGI1yf1EIrFheX2RpznWIXBrjqdpCiwLhesCg2t2 HAOtkxnXUt2Sz5nmJha8MjpnUhBfy9G6rhQtgN3v5zC+zt0mgIwuqkvaN/FRCaA/4BCj +vB8kdC3VeCqdnmAgohqExekre2St5RrzA0iQo25gqDnBPO2HLCbO5v0azlSCFGPxS/e vf3GIIi4uHzvPHUnx3co+x5Rxn5kQ1bDBhSUsQCWx4LTEHgjKZMGNwb7Q0TU0m38EEjc bJYpVG3ZYX5VbrEz5XUrKYNLWQZi2FWlXYQVEFZt1C7BJLothjZGp0O40KsxQoGGKCuF DXbA== X-Gm-Message-State: AA6/9RlX5bhq7Sj+IPh5aa5U8hdfEciYDu1nKs0dJmTv3BIZWIucmYgOK+/lVW9ZtYKPzKSsBq+ymuUgR8IX2foQ X-Received: by 10.31.254.69 with SMTP id l66mr22297525vki.36.1476099936672; Mon, 10 Oct 2016 04:45:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.16.17 with HTTP; Mon, 10 Oct 2016 04:45:36 -0700 (PDT) In-Reply-To: <1476084497.2867.17.camel@gunduz.org> References: <1476081846.2867.10.camel@gunduz.org> <1476084497.2867.17.camel@gunduz.org> From: Craig Ringer Date: Mon, 10 Oct 2016 19:45:36 +0800 Message-ID: Subject: Re: Providing libpq explicitly To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: pgsql-pkg-yum , Talha Bin Rizwan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org On 10 October 2016 at 15:28, Devrim G=C3=BCnd=C3=BCz wr= ote: > > Hi Craig, > > On Mon, 2016-10-10 at 15:20 +0800, Craig Ringer wrote: >> I'd argue that such packages are simply incorrectly packaged. There's >> no such thing as "libpq 9.1". > > Well, this actually "works". This means "libpq provided by PostgreSQL 9.1 > RPMs", for example, and prevents users to be able to install PostgreSQL <= 9.0: > > =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 > Requires: libpq.so >=3D 9.0 > Available: postgresql-libs-8.4.20-6.el6.i686 (base) > libpq.so =3D 8.4.20-6.el6 > You could try using --skip-broken to work around the problem. > > =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 >> They should be using rpm's automatic library dependencies to ensure >> that dependency, and shouldn't declare an explicit dependency. > > Then, they would need to generate RPMs for each PostgreSQL version just f= or > this piece, and it creates other problems. Huh? Why? If the soname is the same (which it must be for linking to work) and the target library version is >=3D the one it was built against (which it should be to be compatible) then it'll be fine. Otherwise it won't work because it shouldn't work. At minimum it should be Provides: libpq not Provides: libpq.so . But in the end, since I can't even remember the original reason to get rid of it, if you put it back it's your call. --=20 Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 Sent via pgsql-pkg-yum mailing list (pgsql-pkg-yum@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum