Skip to content

[autobackport: sssd-2-9] SPEC: require reasonably up to date 'libldb' version#8242

Merged
alexey-tikhonov merged 1 commit intoSSSD:sssd-2-9from
sssd-bot:SSSD-sssd-backport-pr8240-to-sssd-2-9
Nov 26, 2025
Merged

[autobackport: sssd-2-9] SPEC: require reasonably up to date 'libldb' version#8242
alexey-tikhonov merged 1 commit intoSSSD:sssd-2-9from
sssd-bot:SSSD-sssd-backport-pr8240-to-sssd-2-9

Conversation

@sssd-bot
Copy link
Contributor

This is an automatic backport of PR#8240 SPEC: require reasonably up to date 'libldb' version to branch sssd-2-9, created by @alexey-tikhonov.

Caution

@alexey-tikhonov The patches did not apply cleanly. It is necessary to resolve conflicts before merging this pull request. Commits that introduced conflict are marked with CONFLICT!.

You can push changes to this pull request

git remote add sssd-bot git@github.com:sssd-bot/sssd.git
git fetch sssd-bot refs/heads/SSSD-sssd-backport-pr8240-to-sssd-2-9
git checkout SSSD-sssd-backport-pr8240-to-sssd-2-9
git push sssd-bot SSSD-sssd-backport-pr8240-to-sssd-2-9 --force

Original commits
bbbd150 - SPEC: require reasonably up to date 'libldb' version

Backported commits

  • 67e7da0 - CONFLICT! SPEC: require reasonably up to date 'libldb' version

Original Pull Request Body

Since 'libldb' is built from Samba sources, it uses the same version.

@sssd-bot sssd-bot requested a review from sumit-bose November 26, 2025 13:09
@alexey-tikhonov alexey-tikhonov force-pushed the SSSD-sssd-backport-pr8240-to-sssd-2-9 branch from 67e7da0 to f2392f9 Compare November 26, 2025 13:30
@alexey-tikhonov alexey-tikhonov marked this pull request as ready for review November 26, 2025 13:33
@alexey-tikhonov alexey-tikhonov added no-backport This should go to target branch only. Waiting for review labels Nov 26, 2025
@alexey-tikhonov
Copy link
Member

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the RPM spec file to dynamically determine the required libldb version based on the samba-devel package version present at build time. This is a good improvement as it removes a hardcoded version string. However, I've found a critical issue where the minimum version check for libldb-devel at build time has been removed. Given that there was an ABI break in libldb at version 1.2.0, removing this check could result in building a non-functional package if an older version of libldb-devel is used. I have left a comment with a suggestion to reintroduce this important safety check.

%endif
BuildRequires: libini_config-devel >= 1.1
BuildRequires: libldb-devel >= %{ldb_version}
BuildRequires: libldb-devel

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Removing the version constraint for libldb-devel could lead to building sssd against an older, ABI-incompatible version of the library. The comment on line 193 highlights an ABI break at version 1.2.0. Without this build-time check, it's possible to produce a package that will fail at runtime if the build environment has an older libldb-devel. To prevent this, it's safer to enforce a minimum version for the build dependency. While the goal was to remove hardcoded versions, safety should be prioritized here.

BuildRequires: libldb-devel >= 1.2.0

Copy link
Contributor

@sumit-bose sumit-bose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

thank you for fixing the conflicts, ACK.

bye,
Sumit

@alexey-tikhonov
Copy link
Member

Failing 'FAILED tests/test_access_control_simple.py::test_access_control_simple__permits_user_login_based_on_group' isn't relevant.

Since 'libldb' is built from Samba sources, it uses the same version.

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked with amendments from commit bbbd150)

Reviewed-by: Sumit Bose <sbose@redhat.com>
@sssd-bot
Copy link
Contributor Author

The pull request was accepted by @alexey-tikhonov with the following PR CI status:


🟢 CodeQL (success)
🟢 rpm-build:centos-stream-9-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 Build / make-distcheck (success)
🟢 ci / prepare (success)
🔴 ci / system (centos-9) (failure)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

@sssd-bot sssd-bot force-pushed the SSSD-sssd-backport-pr8240-to-sssd-2-9 branch from f2392f9 to 31ff199 Compare November 26, 2025 19:09
@alexey-tikhonov alexey-tikhonov merged commit 1c4c6b5 into SSSD:sssd-2-9 Nov 26, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accepted no-backport This should go to target branch only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants