Bug 2121696 - postgresql-private-devel conflicts with libpq-devel over pkgconfig(libpq), blocks rebuild of LibreOffice flatpak
Summary: postgresql-private-devel conflicts with libpq-devel over pkgconfig(libpq), bl...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: postgresql
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Filip Januš
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-26 09:53 UTC by Stephan Bergmann
Modified: 2022-09-07 10:26 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-09-07 10:26:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephan Bergmann 2022-08-26 09:53:45 UTC
As explained in the mailing list thread at <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/LXTYCRTWT5Q443VVTIWDUOB3BA3C2EFK/> "libpq-devel and postgresql-private-devel providing conflicting libpq.so symlink":  The latest libpq-devel-14.1-2.fc36.x86_64 provides "pkgconfig(libpq) = 14.1" and the latest postgresql-private-devel-14.3-2.fc36.x86_64 provides "pkgconfig(libpq) = 14.3".  That will apparently cause new builds of libreoffice (e.g., my scratch build (<https://koji.fedoraproject.org/koji/taskinfo?taskID=91173820>) to grow a dependency on postgresql-private-libs rather than on the expected libpq (as libreoffice-7.3.4.2-4.fc36.x86_64 still has).  Which in turn causes new builds of libreoffice-flatpak-container to fail (because that bundles libpq rather than postgresql-private-libs), blocking a fix for <https://github.com/fedora-silverblue/issue-tracker/issues/336> "LibreOffice flatpak ignores OSTree layers, can't find installed JRE".

Comment 1 Filip Januš 2022-08-26 10:29:39 UTC
Hi Stephan, 
If you are blocked by this issue, I see two possibilities for how to fix(workaround) it fast. 
   1. I can update libpq in the released Fedora 36. Probably without problems, but it's a change that can affect someone.
   2. Switched off pkgconfig in LibreOffice spec and built directly with libpq.

From my point of view, the problem in pkgconfig, it should find a suitable component.

Comment 2 Stephan Bergmann 2022-08-27 07:47:53 UTC
(In reply to Filip Januš from comment #1)
>    1. I can update libpq in the released Fedora 36. Probably without
> problems, but it's a change that can affect someone.
>    2. Switched off pkgconfig in LibreOffice spec and built directly with
> libpq.

So I went with <https://src.fedoraproject.org/rpms/libreoffice/c/98b9b9b60e381737e4451f772e53e49d4c1998a9?branch=f36> "Related: rhbz#2121654 Work around pkgconfig(libpq) conflict" in libreoffice.  That's arguably the better of the above two choices as long as the hijacking of the libpq-devel deliverables by postgresql-private-devel isn't fixed properly.

Comment 3 Filip Januš 2022-08-29 11:19:46 UTC
This issue was addressed by https://src.fedoraproject.org/rpms/postgresql/c/224667bda080f6b84fb4f54ffcec4d8d0a2b1aef?branch=rawhide in Rawhide.


Note You need to log in before you can comment on or make changes to this bug.