| Summary: | sys-auth/sssd-1.6.4 ldb: module version mismatch aftrer upgrade ldb in memberof.so | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Olivier Huber <oli.huber> |
| Component: | Current packages | Assignee: | Andreis Vinogradovs ( slepnoga ) <andreis.vinogradovs> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | CC: | maksbotan, proxy-maint, samba |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Olivier Huber
2012-02-17 16:52:30 UTC
So we should start adding warnings to all packages that install libraries that other packages link against? It's better to temporarily preserve the old libraries - we have a mechanism in place for that. (In reply to comment #1) > So we should start adding warnings to all packages that install libraries that > other packages link against? It's better to temporarily preserve the old > libraries - we have a mechanism in place for that. I don't think the issue is the library's SONAME here. It didn't changed : objdump -p /usr/lib64/libldb.so.1.1.4 | grep SONAME SONAME libldb.so.1 Plus I'm using portage 2.2 so I'm usually protected against this kind of issues. It looks more that when a ldb module is build, it stores internally the version of ldb it was build against. At startup it checks if the version if was build and the current version are so same. The version here is not the soname, but the version of the package (1.1.4 for instance). If we look at the source code (https://fedorahosted.org/sssd/browser/src/ldb_modules/memberof.c), we have a call to LDB_MODULE_CHECK_VERSION defined in ldb_module.h : #define LDB_MODULE_CHECK_VERSION(version) do { \ if (strcmp(version, LDB_VERSION) != 0) { \ fprintf(stderr, "ldb: module version mismatch in %s : ldb_version=%s module_version=%s\n", \ __FILE__, version, LDB_VERSION); \ return LDB_ERR_UNAVAILABLE; \ }} while (0) At the moment I see only one solution - that would display a warning about the need to rebuild sssd. For portage 2.2 can create a dynamic set in the likeness of need-rebuild Warning has been added to all ldb ebuilds telling users to rebuild sssd. |