Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btrZS-0003Oa-J9 for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 11 Oct 2016 07:33:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1btrZS-0005zB-60 for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 11 Oct 2016 07:33:54 +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_2) (envelope-from ) id 1btrZR-0005xI-HK for pgsql-pkg-yum@postgresql.org; Tue, 11 Oct 2016 07:33:53 +0000 Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1btrZK-0001Mu-Hy for pgsql-pkg-yum@postgresql.org; Tue, 11 Oct 2016 07:33:52 +0000 Received: by mail-vk0-x22e.google.com with SMTP id 192so11106060vkl.2 for ; Tue, 11 Oct 2016 00:33:46 -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=cBSO5K5PDwejbmV7cympSidbp7qj+sZizsw5yj1lDiM=; b=wet13mnY3j0Jj05vt38c5hVARDaZaYHQP8I89o9qb7L7SVcy1+gBCBc9Wv93sJe+bv YgLZMyPzIuvUOcEF9FtgKYp1uQrqALj8IqdmzOmHnOYHF9rBZhVztXoR0a6zMGPbIsbu 8X/x/uho4AhWjTV+MG8QGWKR0VWs1fCVdLzcf9WBr5QUdUgwg3US9vp0m9sq5//FaqsJ 6Z6GTMxKLRktvAyV2JAX6yzJzkY6W43KtwASpGOv7Wgk/ZkpcEdBdYi1MT52h/n5w0CV 5rXaEiwM08TnQ1z423LPffdE479nMrtxxgu7rallqsbdFy4UgHvwko3aKT2r7Plvx6K3 gUTQ== 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=cBSO5K5PDwejbmV7cympSidbp7qj+sZizsw5yj1lDiM=; b=iiNv5KheWuSonp71FrX+kHKrXJ7/Xbjy+iK00WRm+TSOq7W4q+2PLEfI5xugeePmSp 2xZcTrHrkclmXK/RppheOcg69H32FHVK9Fn+JNM14WcTn4BAQpA5aaCpiAYA7ZyAtLyL uQf9mrbvMBZ/cpbBv1jfV5FZ5ftJUeyiUEAK2rblcLjHeaQyc+UGjeuVmlkvJfzouZ2F qoy2wudkHZGkB1cnMb05aoHRAgbum/WG73IIylpNH/oD+2OH+gtniOnTUqmkJhvnO0au zBa1Wa5UySRK5vygsuG2rCTbrfwILlt9vi62nTYXrWyk5ta46I9kdffU+spYEdI9DPLI zTHw== X-Gm-Message-State: AA6/9RkJxwPyp5KDh1ryyYlQ2SeBN0uQKYmG6SOx/uL4GOlgqC7a5jmijw8HfKM0kUsIYedXliz/BijN0vtVGmXO X-Received: by 10.31.7.138 with SMTP id 132mr1967377vkh.154.1476171225539; Tue, 11 Oct 2016 00:33:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.16.17 with HTTP; Tue, 11 Oct 2016 00:33:45 -0700 (PDT) In-Reply-To: <1476170033.2670.1.camel@gunduz.org> References: <1476081846.2867.10.camel@gunduz.org> <00796832-f6b7-ef8c-4c5f-6c5e09efc89f@2ndquadrant.com> <1476170033.2670.1.camel@gunduz.org> From: Craig Ringer Date: Tue, 11 Oct 2016 15:33:45 +0800 Message-ID: Subject: Re: Providing libpq explicitly To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: Peter Eisentraut , 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 11 October 2016 at 15:13, Devrim G=C3=BCnd=C3=BCz wr= ote: > On Mon, 2016-10-10 at 21:59 -0400, Peter Eisentraut wrote: >> What is an example of such a package? > > One of EDB packages. It uses functions exported by the libpq of 9.1+. I see, and you don't want to depend on postgresql9x-libs because you want to allow install against any postgresql9x-libs that installs a libpq. It's a binary distribution issue. Fair enough. You could have alternatives listed in Requires, but that requires enumerating all postgresql9x variants into the future, which is messy and fragile. What should IMO be done here is to add a version on the Provides: postgresq-llibs that already exists: $ rpm -q --provides postgresql96-libs config(postgresql96-libs) =3D 9.6beta3-1PGDG.f23 libecpg.so.6()(64bit) libecpg_compat.so.3()(64bit) libpgtypes.so.3()(64bit) libpq.so.5()(64bit) libpqwalreceiver.so()(64bit) postgresql-libs postgresql96-libs =3D 9.6beta3-1PGDG.f23 postgresql96-libs(x86-64) =3D 9.6beta3-1PGDG.f23 I think it's also fine to have a versioned Provides: libpq but *not* Provides: libpq.so, because that should be rpm autodeps job. That's likely why I asked for its removal originally; as I said I just don't remember anymore. --=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