Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326175 - net-nds/openldap-2.4.19-r1 doesn't present upgrade howto when it finds an existing data dir
Summary: net-nds/openldap-2.4.19-r1 doesn't present upgrade howto when it finds an exi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LDAP project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 15:29 UTC by Rodrigo Severo
Modified: 2012-02-12 21:39 UTC (History)
0 users

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


Attachments
Simple patch to make ebuild present upgrade instructions (openldap-2.4.19-r1.ebuild.patch,644 bytes, patch)
2010-06-29 15:32 UTC, Rodrigo Severo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Severo 2010-06-29 15:29:29 UTC
openldap-2.4.19-r1 dies during emerge with the following message:

 * Scanning datadir(s) from slapd.conf and
 * the default installdir for Versiontags
 * (/var/lib/openldap-data may appear twice)
 * 
 * - Checking /var/lib/openldap-hdb...
 *    Non-tagged dir /var/lib/openldap-hdb
 *    EEK! Non-empty non-tagged datadir, counting 28 files

 * 
 * Your OpenLDAP Installation has a non tagged datadir that
 * possibly contains a database at /var/lib/openldap-hdb
 * 
 * Please export data if any entered and empty or remove
 * the directory, installation has been stopped so you
 * can take required action
 * 
 * For a HOWTO on exporting the data, see instructions in the ebuild
 * 
 * ERROR: net-nds/openldap-2.4.19-r1 failed:
 *   Please move the datadir /var/lib/openldap-hdb away

There are upgrade instructions on the ebuild but they are not presented to the user.

My emerge --info:

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-1.12.13
Timestamp of tree: Tue, 29 Jun 2010 09:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://prometheus.cs.wmich.edu/gentoo http://gentoo.osuosl.org/"
LANG="en_US"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en pt_BR"
MAKEOPTS="-j5"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-fabrica /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext a52 aac acpi amd64 branding bzip2 cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss exif firefox flac fortran gif gpm iconv jbig jpeg jpeg2k lcms ldap libnotify md5sum mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nptl nptlonly openmp pam pango pcre pdf perl png pnm ppds pppd python qt3support readline reflection session spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode vorbis wmf x264 xcb xml xorg xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex dav dav_fs dav_lock deflate dir expires filter headers imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id usertrack vhost_alias cache env" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt_BR" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rodrigo Severo 2010-06-29 15:32:34 UTC
Created attachment 236923 [details, diff]
Simple patch to make ebuild present upgrade instructions

This simple patch calls the upgrade instructions method of the ebuild so user know what to do to upgrade safely.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-12 21:39:22 UTC
Added in 2.4.28-r1.