Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474612 - sys-libs/cracklib - python2.7 setup.py build -b build-2.7: ImportError: No module named setuptools
Summary: sys-libs/cracklib - python2.7 setup.py build -b build-2.7: ImportError: No mo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-24 14:57 UTC by Thibaud CANALE
Modified: 2014-03-06 18:27 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 Thibaud CANALE 2013-06-24 14:57:19 UTC
Hello,

when trying to emerge sys-libs/cracklib, it calls setuptools while processing, but it will failed it setuptools is emerged without PYTHON_TARGETS="python2_7"

Reproducible: Always

Steps to Reproduce:
1. "dev-python/setuptools -python_targets_python2_7" in /etc/portage/package.use
2. emerge -vat1 setuptools
3. emerge -vat1 cracklibs
Actual Results:  
In log file of cracklib

 * Building of sys-libs/cracklib-2.8.19 with CPython 2.7...
python2.7 setup.py build -b build-2.7
Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    from setuptools import setup, Extension, find_packages
ImportError: No module named setuptools

Expected Results:  
Emerge successful

Bug related:
https://bugs.gentoo.org/show_bug.cgi?id=456860

# emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.4.44-std360-amd64 x86_64)
=================================================================
System uname: Linux-3.4.44-std360-amd64-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8154616 total,   5957916 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Mon, 24 Jun 2013 09:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync2.fr.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi adns amd64 apm apng areas arts audiofile awesome bash bash-completion berkdb bidi bluetooth branding bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran freetype gcrypt gdbm geoip gif gimp gnutls gpg gstreamer iconv idn iproute2 ipv6 javascript jpeg lcms lilo lm_sensors lua lzma mad mardown matroska mbox mdbox midi mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib ncurses nls nptl odbc ogg oggvorbis openal opengl openmp openssl openvpn pam pango pcre pdf perl pmu png policykit ppds python python3 qt3support radeon readline rtmp sasl sdl session spell sse sse2 ssh ssl startup-notification stream suid svg tcpd theora tiff truetype udev udisks unicode upower usb vcd videos vim-syntax vorbis wifi wxwidgets x264 xcb xml xorg xv xvid xvmc zip zlib zsh zsh-completion" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="crypt crypt-gpg lvm" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python3_2" PYTHON_TARGETS="python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2013-06-25 19:05:13 UTC
(In reply to Thibaud "thican" CANALE from comment #0)

so you disabled python-2.7 support in setuptools, then tried to build a package that needs that, and wonder why it fails ...
Comment 2 Camusensei 2013-06-25 22:32:37 UTC
Hello,

What he means is sys-libs/cracklib should have a dependency on dev-python/setuptools[python_targets_python2_7] instead of dev-python/setuptools.
Comment 3 Tim Harder gentoo-dev 2013-12-17 09:48:25 UTC
Fixed in 2.9.1 which uses the distutils-r1 eclass.
Comment 4 Thibaud CANALE 2014-03-05 19:05:45 UTC
(In reply to Tim Harder from comment #3)
> Fixed in 2.9.1 which uses the distutils-r1 eclass.

Is it possible to update as well the currently 7 other ebuilds?

As we can see with this command (grep -F -e 'setuptools' /usr/portage/sys-libs/cracklib/cracklib-*), it looks like it will be solved by only appending "[${PYTHON_USEDEP}]" once for each ebuild at every depend calls.

Thanks for support.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-03-06 13:12:14 UTC
(In reply to Thibaud "thican" CANALE from comment #4)
> (In reply to Tim Harder from comment #3)
> > Fixed in 2.9.1 which uses the distutils-r1 eclass.
> 
> Is it possible to update as well the currently 7 other ebuilds?
> 
> As we can see with this command (grep -F -e 'setuptools'
> /usr/portage/sys-libs/cracklib/cracklib-*), it looks like it will be solved
> by only appending "[${PYTHON_USEDEP}]" once for each ebuild at every depend
> calls.
> 
> Thanks for support.

It's not going to happen because there is no point in touching the old ebuilds anymore. Rather the fixed version will be stabilized and older versions removed afterwards.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2014-03-06 18:27:59 UTC
bug 503648 for stabilization of 2.9.1