Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 161678

Summary: openldap-2.3.30-r2 "preserve_old_lib_notify() must be called from pkg_postinst() only"
Product: Gentoo Linux Reporter: Willie Wong <wongwwy>
Component: New packagesAssignee: Gentoo LDAP project <ldap-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Willie Wong 2007-01-12 04:44:50 UTC
The portage log for openldap-2.3.30-r2 ends with 6 lines of 
   "* preserve_old_lib_notify() must be called from pkg_postinst() only"

Somewhere in the middle of the log is also six lines of 
   "* preserve_old_lib() must be called from pkg_preinst() only"

Perchance they are related?

Reproducible: Always

Steps to Reproduce:
1.  emerge openldap
2.  Wait and read the last few lines of the emerge output. 
3.

Actual Results:  
The emerge ends with several lines of 
" * preserve_old_lib_notify() must be called from pkg_postinst() only"


Expected Results:  
Judging from experience, it probably should have told me to run revdep-rebuild against old versions of lber and ldap libs and say that I can remove those libs after running revdep-rebuild. 


emerge --info:
Portage 2.1.1-r2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.16-hardened-r10 i686)
=================================================================
System uname: 2.6.16-hardened-r10 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.12.6
Last Sync: Fri, 12 Jan 2007 03:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en fr de ja ko zh_CN zh_TW"
MAKEOPTS="-j1"
PKGDIR="/home/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/home/tmp"
PORTDIR="/home/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acpi aim alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 asf audiofile bash-completion bcmath bidi bitmap-fonts blender-game bzip2 cairo canna cdparanoia cdr cjk crypt cups curl dlloader doc dri dts dv dvd dvdread effects elibc_glibc encode exif expat fame ffmpeg firefox flac fpx ftp gd gdbm ggi gif gimp gimpprint glitz glut gphoto2 gpm graphviz gs gtk gtk2 guile hardened iconv imagemagick imap imlib inkjar input_devices_joystick input_devices_keyboard input_devices_mouse java javascript jbig joystick jpeg jpeg2k kernel_linux lcms ldap libcaca libwww linguas_de linguas_en linguas_fr linguas_ja linguas_ko linguas_zh_CN linguas_zh_TW lzo mad maildir math matroska mbox mbrola mikmod mime mjpeg mmx mmxext mng motif mozilla moznocompose moznomail moznoroaming mozsvg mp3 mp4 mpeg musepack nas ncurses nethack network nls nptl nptlonly nsplugin offensive ogg opengl oscar pcre pdf perl pic plotutils png pop posix python quicktime readline real recode reiserfs rle rtc samba sasl sdl sftplogging slang slp smime soap sox spell sse sse2 ssl stroke subtitles svg tcltk tcpd tetex theora tidy tiff timidity tools truetype truetype-fonts type1-fonts unicode usb userland_GNU userlocales uudeview vcd video_cards_nv video_cards_nvidia vim-pager vorbis win32codecs wmf x264 xanim xchatdccserver xchattext xine xinetd xml xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2007-01-13 13:01:25 UTC
moved preserve_old_lib from src_install to pkg_preinst

vapier still gives errors:
 * preserve_old_lib() must be called from pkg_preinst() only
 * preserve_old_lib_notify() must be called from pkg_postinst() only
Comment 2 SpanKY gentoo-dev 2007-01-13 19:25:43 UTC
doesnt look like it to me

src_install() {
...
    # keep old libs if any
    LIBSUFFIXES=".so.2.0.130 -2.2.so.7"
    for LIBSUFFIX in ${LIBSUFFIXES} ; do
        for each in lber libldap libldap_r ; do
            preserve_old_lib "${ROOT}usr/$(get_libdir)/${each}${LIBSUFFIX}"
        done
    done
}
Comment 3 SpanKY gentoo-dev 2007-01-13 19:34:32 UTC
ignoring that, i see the issue with eutils.eclass ... fixed in cvs
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2007-01-17 22:00:45 UTC
Fixed in current versions