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

Bug 284817

Summary: net-nds/nsscache should be ported to use bsddb3 module (dev-python/bsddb3)
Product: Gentoo Linux Reporter: Brandon Vargo <brandon.vargo>
Component: New packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: russ
Priority: Highest Flags: robbat2: Bugday+
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 286972    

Description Brandon Vargo 2009-09-13 20:18:23 UTC
net-nds/nsscache fails to compile if dev-lang/python is installed without the berkdb use flag.

Reproducible: Always

Steps to Reproduce:
1. Install dev-lang/python without the berkdb use flag
2. Try to install net-nds/nsscache
Actual Results:  
net-nds/nsscache fails to install

>>> Compiling source in /var/tmp/portage/net-nds/nsscache-0.8.3-r1/work/nsscache-0.8.3 ...
python setup.py build
Traceback (most recent call last):
  File "setup.py", line 25, in <module>
    import nss_cache
  File "/var/tmp/portage/net-nds/nsscache-0.8.3-r1/work/nsscache-0.8.3/nss_cache/__init__.py", line 33, in <module>
    import app
  File "/var/tmp/portage/net-nds/nsscache-0.8.3-r1/work/nsscache-0.8.3/nss_cache/app.py", line 36, in <module>
    from nss_cache import command
  File "/var/tmp/portage/net-nds/nsscache-0.8.3-r1/work/nsscache-0.8.3/nss_cache/command.py", line 31, in <module>
    from nss_cache import caches
  File "/var/tmp/portage/net-nds/nsscache-0.8.3-r1/work/nsscache-0.8.3/nss_cache/caches/__init__.py", line 25, in <module>
    from nss_cache.caches import nssdb
  File "/var/tmp/portage/net-nds/nsscache-0.8.3-r1/work/nsscache-0.8.3/nss_cache/caches/nssdb.py", line 23, in <module>
    import bsddb
ImportError: No module named bsddb
 *
 * ERROR: net-nds/nsscache-0.8.3-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3063:  Called distutils_src_compile
 *             environment, line  758:  Called die
 * The specific snippet of code:
 *           ${python} setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 *  The die message:
 *   Building failed
 *
 * 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:nsscache-0.8.3-r1:20090913-195832.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-nds/nsscache-0.8.3-r1/temp/environment'.
 *

Expected Results:  
net-nds/nsscache should require python to be installed with the berkdb use flag

emerge --info

Portage 2.2_rc40 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4-cluster x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-cluster-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 11 Sep 2009 03:20:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildpkg collision-protect distlocks fixpackages metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.netnitco.net http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=""
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/layman/science"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion bzip2 cli cracklib crypt dri fortran gpm iconv ipv6 isdnlog kerberos mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd readline reflection session spl sse sse2 ssl sysfs tcpd unicode vim-syntax xorg 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="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-09-29 19:35:35 UTC
net-nds/nsscache should be ported to use bsddb3 (dev-python/bsddb3) instead of bsddb module.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-30 22:31:43 UTC
bugday: python skills needed
Comment 3 Alec Warner archtester Gentoo Infrastructure gentoo-dev Security 2013-01-05 21:16:42 UTC
Did anyone file a bug upstream?

-A
Comment 4 Mike Gilbert gentoo-dev 2015-05-16 08:14:58 UTC
The nssdb backend is broken on any modern system; upstream no longer supports it.

https://github.com/google/nsscache/issues/28
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-01-01 19:10:58 UTC
InGit, 0.23-r1