Re: BUG #18833: libpq.so doesn't contain declared symbol in rpm --provides

From: Bruno Friedmann <bruno(at)ioda-net(dot)ch>
To: pgsql-pkg-yum(at)lists(dot)postgresql(dot)org, Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Subject: Re: BUG #18833: libpq.so doesn't contain declared symbol in rpm --provides
Date: 2025-03-11 08:23:10
Message-ID: 2082217.Jadu78ljVU@x-wing
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-pkg-yum

On mardi, 11 mars 2025 03.21:13 h heure normale d’Europe centrale Devrim
Gündüz wrote:
> Hi,
>
> On Mon, 2025-03-10 at 18:08 +0100, Álvaro Herrera wrote:
> > This should allow a software build against rhel libpq-devel to be
> > satisfied with pgdg packaged libpq
>
> I don't think so. I think Red Hat adds a small patch to libpq package:
>
> https://src.fedoraproject.org/rpms/libpq/blob/rawhide/f/libpq-12.1-symbol-ve
> rsioning.patch
>
> <rant>PGDG packages are PostgreSQL compatible. Red Hat packages are Red
> Hat compatible.</rant>
>
> > bareos-dir: /usr/pgsql-14/lib/libpq.so.5: no version information
> > available (required by /usr/lib64/bareos/libbareossql.so.24)
>
> That said, IIRC this message means bareos did not build their packages
> against our libpq.
>
> -HTH
>
> Regards,

Here the situation, if I didn't explain it correctly.

We (Bareos dev's team) build our software on what's distributed by the OS
editor. which means for RHEL9 libpq5-devel 13.20 (rhel)

From time to time people want (for good reasons :-) ) use pgdg binaries,

if you go that way libpq from pgdg is installed and as the rpm provides all RH
symbol you will get only this.

The problem is: if the rpm provides the symbol the pgdg libpq build is not
providing them. As such any software that try to use that "pseudo" compatible
lib doesn't find the searched symbol and emit in the least worse case a
warning.

I (we) believe that the patch now included in fedora, is the way to go, if
100% ABI compatible is still a moto for pgdg.

Please no offense on that, it's just really better for either consumer of pgdg
software in redhat/rpm world whatever they are: software editor, end users.

Regards.

--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
expertise en open-source

GPG KEY: E4720D8715B696B4
irc: tigerfoot
Computing freedom with openSUSE Tumbleweed - 20250307
Linux 6.13.5-1-default x86_64 GNU/Linux, nvidia:
, , Plasma: 6.3.2, kmail2 6.3.3 (24.12.3)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Wright 2025-03-11 08:45:33 Unqualified name not resolved in function called from materialized view (17.4)
Previous Message Tender Wang 2025-03-11 06:11:47 Re: Attribute of type record has wrong type error with MERGE ... WHEN NOT MATCHED BY SOURCE THEN DELETE

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Álvaro Herrera 2025-03-11 09:11:27 Re: BUG #18833: libpq.so doesn't contain declared symbol in rpm --provides
Previous Message Devrim Gündüz 2025-03-11 02:21:13 Re: BUG #18833: libpq.so doesn't contain declared symbol in rpm --provides