Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521796 - dev-python/cryptography-0.5.4 compiles in src_install phase
Summary: dev-python/cryptography-0.5.4 compiles in src_install phase
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://bitbucket.org/cffi/cffi/issue...
Whiteboard:
Keywords:
Depends on: 561694
Blocks:
  Show dependency tree
 
Reported: 2014-08-31 08:00 UTC by Patrick Lauer
Modified: 2015-11-12 10:24 UTC (History)
0 users

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 Patrick Lauer gentoo-dev 2014-08-31 08:00:54 UTC
>>> Install cryptography-0.5.4 into /var/tmp/portage/dev-python/cryptography-0.5.4/image/ category dev-python
 * python3_3: running distutils-r1_run_phase distutils-r1_python_install
 * python2_7: running distutils-r1_run_phase distutils-r1_python_install
/usr/bin/python2.7 setup.py install --root=/var/tmp/portage/dev-python/cryptography-0.5.4/image//_python2.7
/usr/bin/python3.3 setup.py install --root=/var/tmp/portage/dev-python/cryptography-0.5.4/image//_python3.3
running install
running install
running build
running build_py
running build_ext
building '_Cryptography_cffi_4ed9e37dx4000d087' extension
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ed9e37dx4000d087.c -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/temp.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ed9e37dx4000d087.o
running build
running build_py
running build_ext
building '_Cryptography_cffi_1253505bx4000d087' extension
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python3.3 -c cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_1253505bx4000d087.c -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python3_3/temp.linux-x86_64-3.3/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_1253505bx4000d087.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/temp.linux-x86_64-2.7/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_4ed9e37dx4000d087.o -L/usr/lib64 -lcrypto -lssl -lpython2.7 -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/lib/cryptography/_Cryptography_cffi_4ed9e37dx4000d087.so
building '_Cryptography_cffi_684bb40axf342507b' extension
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.c -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/temp.linux-x86_64-2.7/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/temp.linux-x86_64-2.7/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.o -L/usr/lib64 -lpython2.7 -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/lib/cryptography/_Cryptography_cffi_684bb40axf342507b.so
building '_Cryptography_cffi_8f86901cxc1767c5a' extension
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.c -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/temp.linux-x86_64-2.7/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.o
x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/temp.linux-x86_64-2.7/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.o -L/usr/lib64 -lpython2.7 -o /var/tmp/portage/dev-python/cryptography-0.5.4/work/cryptography-0.5.4-python2_7/lib/cryptography/_Cryptography_cffi_8f86901cxc1767c5a.so
running install_lib
creating /var/tmp/portage/dev-python/cryptography-0.5.4/image/_python2.7
creating /var/tmp/portage/dev-python/cryptography-0.5.4/image/_python2.7/usr
creating /var/tmp/portage/dev-python/cryptography-0.5.4/image/_python2.7/usr/lib64



Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.16.0-gentoo x86_64)
=================================================================
System uname: Linux-3.16.0-gentoo-x86_64-AMD_A10-7700K_APU_with_Radeon-TM-_R7_Graphics-with-gentoo-2.2
KiB Mem:    15289712 total,  12242552 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Unknown
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.stuhome.net/gentoo/ http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/home/portage"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/var/lib/layman/x11"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sqlite sse sse2 ssl startup-notification svg tcpd tiff tk truetype tty-helpers udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" 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" 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 ublox 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fglrx" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2014-08-31 13:08:39 UTC
Something is causing it to think that the extension modules have not been built. It rebuilds them every time you run setup.py build or setup.py install.

I suspect it has something to do with the way the modules are collected in setup.py (see get_ext_modules()). Perhaps {build,install}.finalize_options() is too late for this?
Comment 2 Mike Gilbert gentoo-dev 2014-08-31 13:18:38 UTC
It seems that cffi is re-generating the C source files on every pass here.

get_ext_modules() calls cffi.verifier.get_extension(), which calls cffi.verifier.write_source().

I wonder if this is just a general problem with modules that use cffi?
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-09-01 05:11:52 UTC
It's not the first and only.  'We' found another recently with the same thingy.  Arfrever referred to it as a broken build system (at the time)
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-09-07 07:55:43 UTC
I think the upstream URL represents this problem, as well.
Comment 5 Mark (voidzero) 2014-09-15 16:41:06 UTC
Hi. I was trying to build this for x86-32bit and ran into the following issue:

running install_egg_info
running egg_info
writing requirements to cryptography.egg-info/requires.txt
writing cryptography.egg-info/PKG-INFO
writing top-level names to cryptography.egg-info/top_level.txt
writing dependency_links to cryptography.egg-info/dependency_links.txt
reading manifest file 'cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'cryptography.egg-info/SOURCES.txt'
Copying cryptography.egg-info to /var/build/portage/dev-python/cryptography-0.5.4-r1000/temp/images/2.7/usr/lib/python2.7/site-packages/cryptography-0.5.4-py2.7.egg-info
running install_scripts
rm: cannot remove ‘/var/build/portage/dev-python/cryptography-0.5.4-r1000/temp/images/2.7/usr/lib64/python2.7/site-packages/cryptography/_Cryptography_cffi_*.so’: No such file or directory

Here it exits, returning me to the prompt.

I'm not sure if it's related, but it might. So I figured to add this as a comment to this bug. If you'd like me to file a separate one, please let me know. Thanks.
Comment 6 Mike Gilbert gentoo-dev 2014-09-15 17:59:34 UTC
(In reply to Marckus Knight from comment #5)

It is not related. It also is not a problem with the Gentoo package. We do not support Funtoo Linux or Progress overlay.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2015-11-12 10:24:01 UTC
commit c3c2f1823de4a8a9c479c2c874a846c4de30d3d9
Author: Justin Lecher <jlec@gentoo.org>
Date:   Thu Nov 12 10:26:21 2015 +0100
    
    dev-python/cryptography: Drop vulnerable versions
    
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=561696
    
    obsoletes:
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=561604
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=559648
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=521796
    
    Package-Manager: portage-2.2.23
    Signed-off-by: Justin Lecher <jlec@gentoo.org>
    
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3c2f1823de4a8a9c479c2c874a846c4de30d3d9