Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220089 - net-nds/openldap-2.3.41 with dev-lang/perl-5.8.8-r4 fails to emerge
Summary: net-nds/openldap-2.3.41 with dev-lang/perl-5.8.8-r4 fails to emerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-03 04:13 UTC by opello@opello.org
Modified: 2008-05-03 07:55 UTC (History)
1 user (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 opello@opello.org 2008-05-03 04:13:00 UTC
While updating a few packages on my system, I came to openldap via php.  Which yielded:
 * ERROR: net-nds/openldap-2.3.41 failed.
 * Call stack:
 *                ebuild.sh, line   49:  Called pkg_setup
 *   openldap-2.3.41.ebuild, line  155:  Called built_with_use 'pkg_setup' 'pkg_setup'
 *            eutils.eclass, line 1729:  Called die
 * The specific snippet of code:
 *                                      die)   die "$PKG does not actually support the $1 USE flag!";;
 *  The die message:
 *   dev-lang/perl-5.8.8-r4 does not actually support the minimal USE flag!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-nds:openldap-2.3.41:20080503-021806.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-nds/openldap-2.3.41/temp/die.env'.

In net-nds/openldap-2.3.41 pkg_setup there is:
        if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then
                die "You must have a complete (USE='-minimal') Perl install to use the perl backend!"
        fi

So I added another test:
        if has_version "<=dev-lang/perl-5.8.8_rc1" ; then
                die "debug test 1"
        fi

Which caused the emerge to die as well.  I guess dev-lang/perl-5.8.8-r4 <= dev-lang/perl-5.8.8_rc1?  I didn't dig into has_version, but:
*  dev-lang/perl
      Latest version available: 5.8.8-r4
      Latest version installed: 5.8.8-r4

equery uses =dev-lang/perl-5.8.8-r4:
[ Searching for packages matching =dev-lang/perl-5.8.8-r4... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for dev-lang/perl-5.8.8-r4 ]
 U I
 + + berkdb        : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - build         : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping [make stage1]
 - - debug         : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc           : Adds extra documentation (API, Javadoc, etc)
 - - elibc_FreeBSD : <unknown>
 + + gdbm          : Adds support for sys-libs/gdbm (GNU database libraries)
 - - ithreads      : Enable Perl threads, has some compatibility problems
 - - perlsuid      : Enable Perl SUID install. Has some risks associated.
 
Since dev-lang/perl-5.8.8-r4 is 'current' and doesn't seem to support the minimal flag, I imagine something needs fixing.  Looks like none of the 3 'current' versions of dev-lang/perl support the 'minimal' use flag, so maybe it should be removed from the test?  Or, further reaching, making sure that foo_rcN versions compare as earlier than foo or foo-rN revisions of the package?

emerge --info:
Portage 2.1.4.4 (default-linux/x86/2007.0/server, gcc-3.3.6, glibc-2.3.5-r2,glibc-2.2.5-r4, 2.4.28-gentoo-r5 i586)
=================================================================
System uname: 2.4.28-gentoo-r5 i586 AMD-K6(tm) 3D processor
Timestamp of tree: Sat, 03 May 2008 01:21:01 +0000
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     2.05a-r2, 3.2_p17-r1
dev-lang/python:     2.3.5, 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.7.8-r1, 1.12.6
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10
sys-devel/binutils:  2.11.92.0.12.3-r2, 2.17
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.4.18, 2.4.19-r1, 2.4.26-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=k6 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallelfetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb cli cracklib crypt cups dri fortran gd gdbm gpm iconv isdnlog ldap maildir mailwrapper midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl php pppd python readline reflection session snmp spl ssl tcpd truetype unicode userlocales x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access auth auth_basic auth_dbm auth_anon auth_digest authz_host alias file_cache echo charset-lite cache disk_cache mem_cache filter case_filter deflate mime_magic cern_meta expires headers proxy proxy_http info include cgi cgid dav dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

(this are a bit old, but I'm working at updating it, and this problem doesn't seem like it would be unique to my configuration.)
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-05-03 07:55:40 UTC
I think it's very possible your setup may be broken:
app-shells/bash:     2.05a-r2, 3.2_p17-r1
What's the output of "bash --version" ?

Bash is not slottable. This would also explain why I can't reproduce this bug.
Also, I don't see multislot in your USE flags, though it might be in package.use:
sys-devel/binutils:  2.11.92.0.12.3-r2, 2.17
Also, you seem to have 2 baselayouts installed:
sys-apps/baselayout: 1.7.8-r1, 1.12.6

If I were to hazard a guess, I'd say you waited too long to upgrade, then didn't upgrade in the right order. Everything in portage uses Bash arrays, which may have been what screwed this up. <=bash-3 doesn't support bash arrays.