Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576210 - dev-python/pypy3-bin-2.4.0-r2 should depend on sys-libs/ncurses:5/5
Summary: dev-python/pypy3-bin-2.4.0-r2 should depend on sys-libs/ncurses:5/5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Arisu Tachibana
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 09:14 UTC by Dennis Schridde
Modified: 2016-03-03 23:08 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 Dennis Schridde 2016-03-02 09:14:52 UTC
Hopefully that says it all:

!!! existing preserved libs:
>>> package: sys-libs/ncurses-5.9-r101
 *  - /usr/lib64/libncurses.so.5
 *      used by /usr/lib64/pypy3/libpypy-c.so (dev-python/pypy3-bin-2.4.0-r2)

# emerge --info ncurses pypy3
Portage 2.2.26 (python 3.4.3-final-0, hardened/linux/amd64/selinux, gcc-4.9.3, glibc-2.21-r2, 4.3.3-hardened-r4 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.3-hardened-r4-x86_64-AMD_Athlon-tm-_64_Processor_3700+-with-gentoo-2.2
KiB Mem:     2044896 total,    352244 free
KiB Swap:    4194300 total,   4005380 free
Timestamp of repository gentoo: Tue, 01 Mar 2016 20:15:02 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /var/cache/portage/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /var/cache/portage/local
    masters: gentoo local

hhvm
    location: /var/lib/layman/hhvm
    sync-type: laymansync
    sync-uri: git://github.com/reanimus/hhvm-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -mtune=generic -O2"
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/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -mtune=generic -O2"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --nospinner --usepkg --buildpkg --binpkg-respect-use --binpkg-changed-deps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j2"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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"
USE="acl amd64 audit berkdb bzip2 caps cli cracklib crypt cxx dri gdbm gpg hardened iconv ipv6 jit justify luajit lz4 lzma lzo mmx mmxext modules multilib ncurses nls nptl open_perms openmp pam pax_kernel pcre pie readline sctp seccomp selinux session sse sse2 ssl ssp systemd tcpd udev unconfined unicode urandom vhosts xattr xtpax xz 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" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" DRACUT_MODULES="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 ublox ubx" 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 php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 pypy pypy3" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-libs/ncurses-6.0-r1::gentoo was built with the following:
USE="cxx unicode -ada -debug -doc -gpm -minimal (-profile) -static-libs -test -threads -tinfo -trace" ABI_X86="64 -32 -x32"


virtual/pypy3-2.4.0::gentoo was built with the following:
USE="bzip2 gdbm ncurses -sqlite -tk" ABI_X86="64"
CHOST=""
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-03-02 12:23:23 UTC
Hmm, it has:

  =sys-libs/ncurses-5*:0

I guess...

  =sys-libs/ncurses-5*

would be better there. @Dennis, could you try changing that and seeing what happens?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-03-02 12:23:52 UTC
Oh wait... we're talking about -r2? It should be using the new ABI from 6.0...
Comment 3 Dennis Schridde 2016-03-02 22:39:23 UTC
(In reply to Michał Górny from comment #2)
> Oh wait... we're talking about -r2? It should be using the new ABI from
> 6.0...

Indeed we are. I even found a bug where someone requested the exact opposite: A dependency on ncurses:0/6.

I really have no idea what's different about the version of libpypy-c.so that I have here, but it definitely depends on libncurses.so.5:

# scanelf -n /usr/lib/pypy3/libpypy-c.so 
 TYPE   NEEDED FILE 
ET_DYN libdl.so.2,libm.so.6,libz.so.1,libssl.so.1.0.0,libcrypto.so.1.0.0,libexpat.so.1,libbz2.so.1,librt.so.1,libcrypt.so.1,libffi.so.6,libutil.so.1,libncurses.so.5,libpthread.so.0,libc.so.6,ld-linux-x86-64.so.2 /usr/lib/pypy3/libpypy-c.so 

 # q file -v /usr/lib/pypy3/libpypy-c.so
dev-python/pypy3-bin-2.4.0-r2 (/usr/lib64/pypy3/libpypy-c.so)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-03-03 08:40:55 UTC
Hmm, I think I know what's wrong.

ncurses is handled via CFFI, so it uses whatever SONAME is there when it's imported. Since it's imported during build in order to pregenerate the CFFI cache, it uses whatever ncurses you had when you built it. So, the problem is that the ebuild lists ncurses as RDEPEND-only, so it might have been built before ncurses was upgraded.

I'll fix that ASAP.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-03-03 10:48:38 UTC
commit c5967f52754515991653499d1615d6e132e5d52b
Author: Michał Górny <mgorny@gentoo.org>
Date:   Thu Mar 3 10:27:33 2016

    dev-python/pypy3-bin: Add RDEPs to DEPEND, and subslots everywhere
    
    Add RDEPENDs to DEPEND since we run the built PyPy in order to generate
    CFFI caches and byte-compile modules.
    
    Fixes: https://bugs.gentoo.org/576210
Comment 6 Dennis Schridde 2016-03-03 23:08:10 UTC
(In reply to Michał Górny from comment #5)
> commit c5967f52754515991653499d1615d6e132e5d52b

Thanks!