Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900621 - net-nds/openldap: please add 2.5 LTS
Summary: net-nds/openldap: please add 2.5 LTS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-03-09 20:54 UTC by Tomáš Mózes
Modified: 2023-03-19 03:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2023-03-09 20:54:40 UTC
Can we please add openldap 2.5 as an LTS release for people that just need an openldap instance that works with no or minimal changes?

https://www.symas.com/post/openldap-project-release-maintenance-policy

Seems like 2.6 will be only supported for 1 year while 2.5 will receive updates for 5 years.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-11 21:58:27 UTC
Could you do a pr? I'm happy to merge it.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-11 21:59:05 UTC
(Use the old 2.5 ebuilds from git as a basis then diff it with 2.6 and backport any safe changes)
Comment 3 Tomáš Mózes 2023-03-12 06:54:25 UTC
Thanks for the tips Sam, didn't know we have 2.5 in the tree. However, it really lacks behind 2.6, so I tried using 2.6.4-r1 instead and it seems to compile and run. Running the tests to see if all goes fine, this is the current diff (needs polishing of course):

--- openldap-2.6.4-r1.ebuild    2023-03-12 05:51:01.381155540 +0000
+++ openldap-2.5.14.ebuild      2023-03-12 06:20:19.527530399 +0000
@@ -139,7 +139,7 @@
        "${FILESDIR}"/${PN}-2.6.1-system-mdb.patch
        "${FILESDIR}"/${PN}-2.6.1-cloak.patch
        "${FILESDIR}"/${PN}-2.6.1-flags.patch
-       "${FILESDIR}"/${PN}-2.6.1-fix-missing-mapping.patch
+#      "${FILESDIR}"/${PN}-2.6.1-fix-missing-mapping.patch
        "${FILESDIR}"/${PN}-2.6.4-clang16.patch
 )

@@ -669,7 +669,7 @@
                # emake test => runs only lloadd & mdb, in serial; skips ldif,sql,wt,regression
                # emake partests => runs ALL of the tests in parallel
                # wt/WiredTiger is not supported in Gentoo
-               TESTS=( plloadd pmdb )
+               TESTS=( lloadd mdb )
                #TESTS+=( pldif ) # not done by default, so also exclude here
                #use odbc && TESTS+=( psql ) # not done by default, so also exclude here
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-12 19:26:24 UTC
Does 2.5 drop berkdb or is that just 2.6? If so, we need to make sure to keep berkdb bits in 2.5.
Comment 5 Tomáš Mózes 2023-03-12 19:39:29 UTC
(In reply to Sam James from comment #4)
> Does 2.5 drop berkdb or is that just 2.6? If so, we need to make sure to
> keep berkdb bits in 2.5.

https://www.openldap.org/doc/admin25/appendix-upgrading.html

B.7. hdb and bdb backends
The Berkeley DB based slapd-bdb and slapd-hdb backends have been removed from OpenLDAP 2.5. Deployments making use of these backends must migrate their configurations to use slapd-mdb(5) prior to upgrade.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-12 19:41:15 UTC
(In reply to Tomáš Mózes from comment #5)
> (In reply to Sam James from comment #4)
> > Does 2.5 drop berkdb or is that just 2.6? If so, we need to make sure to
> > keep berkdb bits in 2.5.
> 
> https://www.openldap.org/doc/admin25/appendix-upgrading.html
> 
> B.7. hdb and bdb backends
> The Berkeley DB based slapd-bdb and slapd-hdb backends have been removed
> from OpenLDAP 2.5. Deployments making use of these backends must migrate
> their configurations to use slapd-mdb(5) prior to upgrade.

excellent, that makes things much simpler!
Comment 7 Larry the Git Cow gentoo-dev 2023-03-19 03:22:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=849ed2778d87b605e764e603d9acbff6ca7c2045

commit 849ed2778d87b605e764e603d9acbff6ca7c2045
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2023-03-12 19:19:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-19 03:18:52 +0000

    net-nds/openldap: add 2.5.14 (LTS)
    
    Closes: https://bugs.gentoo.org/900621
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/30080
    Signed-off-by: Sam James <sam@gentoo.org>

 net-nds/openldap/Manifest               |   1 +
 net-nds/openldap/openldap-2.5.14.ebuild | 858 ++++++++++++++++++++++++++++++++
 2 files changed, 859 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32877cf7e18c0ad25c2fa7fded5d6f6725392bd2

commit 32877cf7e18c0ad25c2fa7fded5d6f6725392bd2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-19 03:19:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-19 03:19:44 +0000

    net-nds/openldap: add LTS note
    
    Bug: https://bugs.gentoo.org/900621
    Signed-off-by: Sam James <sam@gentoo.org>

 net-nds/openldap/openldap-2.4.59-r2.ebuild | 3 +++
 net-nds/openldap/openldap-2.5.14.ebuild    | 3 +++
 net-nds/openldap/openldap-2.6.3-r7.ebuild  | 3 +++
 net-nds/openldap/openldap-2.6.4-r1.ebuild  | 3 +++
 4 files changed, 12 insertions(+)