Bug 2121696

Summary: postgresql-private-devel conflicts with libpq-devel over pkgconfig(libpq), blocks rebuild of LibreOffice flatpak
Product: [Fedora] Fedora Reporter: Stephan Bergmann <sbergman>
Component: postgresqlAssignee: Filip Januš <fjanus>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: anon.amish, devrim, fjanus, hhorak, jmlich83, mkulik, panovotn, pkubat, praiskup, tgl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-07 10:26:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.