Bug 2032706 - [F36FTBFS]: apr-util fails to build from source in Fedora Rawhide with openldap-2.6
Summary: [F36FTBFS]: apr-util fails to build from source in Fedora Rawhide with openld...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: apr-util
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luboš Uhliarik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2021662 2032695
TreeView+ depends on / blocked
 
Reported: 2021-12-15 02:39 UTC by Simon Pichugin
Modified: 2022-02-01 09:33 UTC (History)
6 users (show)

Fixed In Version: apr-util-1.6.1-20.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-01 09:33:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Simon Pichugin 2021-12-15 02:39:05 UTC
Your package fails to build with the newest openldap-2.6, which was part of a recent wide Fedora change. More information about Fedora OpenLDAP Change is available here: https://fedoraproject.org/wiki/Changes/Openldap_25#How_To_Test.
Thank you for your cooperation!

Additional Information:
If you have an issue with libldap_r depreciation, you can use the following example for fixing your package:
https://github.com/389ds/389-ds-base/commit/a3375a08a506c3b72a8a23df5238848017691350

Comment 1 Joe Orton 2022-01-28 12:34:28 UTC
Simon, is there a reason openldap-devel is no longer providing a libldap_r.so as a stub we can link against?  This breaks backwards compat needlessly AFAICT.

e.g. in https://bugzilla.redhat.com/show_bug.cgi?id=1626077#c6 Florian suggested how to make two libraries correctly.

<mock-chroot> sh-5.1# rpm -q openldap-devel
openldap-devel-2.6.1-1.fc36.x86_64
<mock-chroot> sh-5.1# rpm -ql openldap-devel | grep .so$
/usr/lib64/liblber.so
/usr/lib64/libldap.so
/usr/lib64/libslapi.so

Comment 2 Joe Orton 2022-01-28 15:53:20 UTC
The apr-util build is simple to fix without that (changing "--with-ldap=ldap_r" to "--with-ldap=ldap" in the configure line), FWIW.

Comment 3 Simon Pichugin 2022-01-28 22:31:49 UTC
Hi Joe,
In the Upstream, libldap_r has been merged with libldap starting from openldap-2.5:
https://lists.openldap.org/hyperkitty/list/openldap-announce@openldap.org/thread/BH3VDPG6IYYF5L5U6LZGHHKMJY5HFA3L/

In Fedora, we completely removed non-threaded Library (libldap), and we made symlinks from libldap_r in Fedora 34 (openldap-2.4.56-4.fc34) - hence making libldap_r and libldap using the same threaded library: 
https://fedoraproject.org/wiki/Changes/OpenLDAPwithoutNonthreadedLibraries
It was done in response to the https://bugzilla.redhat.com/show_bug.cgi?id=1626077 in the first place.

So as OpenLDAP Upstream merged libldap_r with libldap (in 2.5), we, in Fedora, deprecate the symlinks.

But the result is the same for both Upstream and Fedora as we came to the same state - OpenLDAP now uses only the threaded library - libldap.so.

Comment 4 Joe Orton 2022-01-31 08:30:39 UTC
OK, thanks for the response.  Once you merge 2.6 to Rawhide we can update apr-util.spec and it will build again, I'll leave this open to track it.

Comment 5 Simon Pichugin 2022-02-01 00:05:59 UTC
Hi Joe,
Hi Luboš,
The new OpenLDAP build was pushed to Rawhide:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1910731

The deadline for Fedora branching is very close.

The fix for the build issue is probably easy to do (though it may depend on how you do things in the project).
You can find the examples here: 
https://docs.google.com/document/d/17-ndISXL_cidGYdZZWMM9waok50hW3sxj9F1rAEUVoo/edit?usp=sharing

Also, feel free to drop me an email message in google chat or IRC if you'll have any questions, - spichugi (spichugi)

Thanks!
Simon

Comment 7 Joe Orton 2022-02-01 08:49:52 UTC
Package: apr-util-1.6.1-20.fc36
Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1910908


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