Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106242 - openldap ebuild does not find existing openldap-data files when upgrading from 2.1.x to 2.2.x
Summary: openldap ebuild does not find existing openldap-data files when upgrading fro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-17 00:51 UTC by Christoph Schulz
Modified: 2005-09-17 15:03 UTC (History)
0 users

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 Christoph Schulz 2005-09-17 00:51:56 UTC
When upgrading from openldap 2.1.x to 2.2.x, there is a check whether data
exists in the openldap-data directory; if this is the case, the upgrade is
aborted and instructions to backup and later restore the data is printed.
Unfortunately, this check doesn't work due to a typo in the ebuild. This means
that there is a possibility to lose data!

Reproducible: Always
Steps to Reproduce:
1. upgrade from openldap 2.1.x to 2.2.x via emerge with data in openldap-data
Actual Results:  
The upgrade is performed.

Expected Results:  
The message "A possible old installation of OpenLDAP was detected" [...] should
be printed and the upgrade aborted.

Change 
    datafiles="${datafiles} $(ls $d/*db*} 2>/dev/null)"
to
    datafiles="${datafiles} $(ls $d/*db* 2>/dev/null)"
in pkg_setup(). This typo has been introduced in the ebuild for openldap 2.2.26.

In the latest ebuilds (2.2.28*), this is in line 83.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-09-17 15:03:43 UTC
fixed now. thanks for the catch.
I've only heard one case of things breaking so far (other than my own testing), 
and that was somebody that disabled the upgrade check themselves.