diff options
author | Sam James <sam@gentoo.org> | 2023-02-08 01:54:30 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-02-08 01:54:35 +0000 |
commit | c7a2be13f19326cf632100f8ad8f325c340d5384 (patch) | |
tree | cec65cc33740fe20cb5ef782df8acb5369446653 | |
parent | dev-libs/openssl: forward ~ppc64 (diff) | |
download | gentoo-c7a2be13f19326cf632100f8ad8f325c340d5384.tar.gz gentoo-c7a2be13f19326cf632100f8ad8f325c340d5384.tar.bz2 gentoo-c7a2be13f19326cf632100f8ad8f325c340d5384.zip |
net-nds/openldap: adapt safety check for 2.4->2.6 upgrade
Drops berkdb.
See https://forums.gentoo.org/viewtopic-p-8775222.html.
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | net-nds/openldap/openldap-2.6.3-r7.ebuild (renamed from net-nds/openldap/openldap-2.6.3-r6.ebuild) | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net-nds/openldap/openldap-2.6.3-r6.ebuild b/net-nds/openldap/openldap-2.6.3-r7.ebuild index 2645e95da094..0c699006bb9c 100644 --- a/net-nds/openldap/openldap-2.6.3-r6.ebuild +++ b/net-nds/openldap/openldap-2.6.3-r7.ebuild @@ -231,7 +231,16 @@ openldap_find_versiontags() { OLDVER="$(/usr/bin/ldd ${SLAPD_PATH} \ | awk '/libdb-/{gsub("^libdb-","",$1);gsub(".so$","",$1);print $1}')" local fail=0 - if [[ -z "${OLDVER}" ]] && [[ -z "${NEWVER}" ]]; then + + if has_version "${CATEGORY}/${PN}[berkdb]" ; then + eerror " OpenLDAP >= 2.6.x has dropped support for Berkeley DB." + eerror " You will need to migrate per upstream's migration notes" + eerror " at https://www.openldap.org/doc/admin25/appendix-upgrading.html." + eerror " Your existing database will not be accessible until it is" + eerror " converted to mdb!" + echo + fail=1 + elif [[ -z "${OLDVER}" ]] && [[ -z "${NEWVER}" ]]; then : # Nothing wrong here. elif [[ -z "${OLDVER}" ]] && [[ -n "${NEWVER}" ]]; then @@ -287,8 +296,8 @@ openldap_upgrade_howto() { eerror " 7. slapadd -l ${l}" eerror " 8. chown ldap:ldap /var/lib/openldap-data/*" eerror " 9. /etc/init.d/slapd start" - eerror "10. check that your data is intact." - eerror "11. set up the new replication system." + eerror "10. Check that your data is intact." + eerror "11. Set up the new replication system." eerror if [[ "${FORCE_UPGRADE}" != "1" ]]; then die "You need to upgrade your database first" |