Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557318 - dev-lang/rust-bin-1.1.0 is missing libraries
Summary: dev-lang/rust-bin-1.1.0 is missing libraries
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 19:36 UTC by Alex Crawford
Modified: 2016-08-08 23:27 UTC (History)
2 users (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 Alex Crawford 2015-08-11 19:36:04 UTC
After building dev-lang/rust-bin, I see a number of shared objects listed under /var/db/pkg/dev-lang/rust-bin-1.1.0/REQUIRES that aren't actually exported to the system:

    x86_64: librustc_resolve-7d23ff90.so
    x86_64: libgraphviz-7d23ff90.so
    x86_64: librustc_borrowck-7d23ff90.so
    x86_64: libflate-7d23ff90.so
    x86_64: libfmt_macros-7d23ff90.so
    x86_64: libtest-7d23ff90.so
    x86_64: librustc_lint-7d23ff90.so
    x86_64: libgetopts-7d23ff90.so
    x86_64: libstd-7d23ff90.so
    x86_64: librustc_data_structures-7d23ff90.so
    x86_64: librustc_back-7d23ff90.so
    x86_64: librustc-7d23ff90.so
    x86_64: libsyntax-7d23ff90.so
    x86_64: librustc_llvm-7d23ff90.so
    x86_64: librustc_trans-7d23ff90.so
    x86_64: librustc_privacy-7d23ff90.so
    x86_64: librustc_driver-7d23ff90.so
    x86_64: libterm-7d23ff90.so
    x86_64: librustdoc-7d23ff90.so
    x86_64: libserialize-7d23ff90.so
    x86_64: librbml-7d23ff90.so
    x86_64: liblog-7d23ff90.so
    x86_64: librustc_typeck-7d23ff90.so

My understand is that this is due to these objects not specifying SONAME. For example:

    $ scanelf --soname /opt/rust-bin-1.1.0/lib/librustc_resolve-7d23ff90.so
     TYPE   SONAME FILE 
    ET_DYN  /opt/rust-bin-1.1.0/lib/librustc_resolve-7d23ff90.so

vs

    $ scanelf --soname /usr/lib/libc-2.20.so
     TYPE   SONAME FILE 
    ET_DYN libc.so.6 /usr/lib/libc-2.20.so


I believe REQUIRES_EXCLUDE will need to include this list of libraries since it doesn't look like these should be exported.

Reproducible: Always

Steps to Reproduce:
1. emerge rust-bin-1.1.0
2. for line in $(< /var/db/pkg/dev-lang/rust-bin-1.1.0/REQUIRES); do echo $line | grep 7d23ff90; done
Actual Results:  
libflate-7d23ff90.so
libfmt_macros-7d23ff90.so
libgetopts-7d23ff90.so
libgraphviz-7d23ff90.so
liblog-7d23ff90.so
librbml-7d23ff90.so
librustc-7d23ff90.so
librustc_back-7d23ff90.so
librustc_borrowck-7d23ff90.so
librustc_data_structures-7d23ff90.so
librustc_driver-7d23ff90.so
librustc_lint-7d23ff90.so
librustc_llvm-7d23ff90.so
librustc_privacy-7d23ff90.so
librustc_resolve-7d23ff90.so
librustc_trans-7d23ff90.so
librustc_typeck-7d23ff90.so
librustdoc-7d23ff90.so
libserialize-7d23ff90.so
libstd-7d23ff90.so
libsyntax-7d23ff90.so
libterm-7d23ff90.so
libtest-7d23ff90.so


Portage 2.2.20 (python 3.4.1-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-5600U_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     8050052 total,    158512 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 10 Aug 2015 21:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000

marineam-misc
    location: /usr/local/overlay/marineam-misc
    sync-type: git
    sync-uri: git://github.com/marineam/misc-overlay.git
    masters: gentoo

rust
    location: /var/lib/layman/rust
    masters: gentoo
    priority: 50

sinustrom
    location: /var/lib/layman/sinustrom
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=6"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ rsync://mirrors.rit.edu/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=5 --load-average=6"
PKGDIR="/usr/portage/packages"
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="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-09-12 22:29:58 UTC
Thanks for reporting, I'll have a look at this when I'll have time.
Comment 2 Sebastian Pipping gentoo-dev 2016-01-05 01:31:01 UTC
It seem like 1.1.0 is no longer in Gentoo.  Could you check if 1.2.0 or later are affected by this issue, too?  Thanks!
Comment 3 Alex Crawford 2016-01-05 03:04:01 UTC
I'm still seeing this with 1.5.0:

for line in $(< /var/db/pkg/dev-lang/rust-bin-1.5.0/REQUIRES); do echo $line | grep 35c36e89; done
libflate-35c36e89.so
libfmt_macros-35c36e89.so
libgetopts-35c36e89.so
libgraphviz-35c36e89.so
liblog-35c36e89.so
librbml-35c36e89.so
librustc-35c36e89.so
librustc_back-35c36e89.so
librustc_borrowck-35c36e89.so
librustc_data_structures-35c36e89.so
librustc_driver-35c36e89.so
librustc_front-35c36e89.so
librustc_lint-35c36e89.so
librustc_llvm-35c36e89.so
librustc_mir-35c36e89.so
librustc_platform_intrinsics-35c36e89.so
librustc_privacy-35c36e89.so
librustc_resolve-35c36e89.so
librustc_trans-35c36e89.so
librustc_typeck-35c36e89.so
librustdoc-35c36e89.so
libserialize-35c36e89.so
libstd-35c36e89.so
libsyntax-35c36e89.so
libterm-35c36e89.so
libtest-35c36e89.so
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2016-08-08 02:47:53 UTC
Please try again with a newer version.
Comment 5 Alex Crawford 2016-08-08 23:27:50 UTC
Still seeing this with 1.8.0:

$ scanelf --soname /opt/rust-bin-1.8.0/lib/librustc_resolve-4fda350b.so      
 TYPE   SONAME FILE 
ET_DYN  /build/amd64-usr/opt/rust-bin-1.8.0/lib/librustc_resolve-4fda350b.so

$ for line in $(< /var/db/pkg/dev-lang/rust-bin-1.8.0/REQUIRES); do echo $line | grep 4fda350b; done
libflate-4fda350b.so
libfmt_macros-4fda350b.so
libgetopts-4fda350b.so
libgraphviz-4fda350b.so
liblog-4fda350b.so
librbml-4fda350b.so
librustc-4fda350b.so
librustc_back-4fda350b.so
librustc_borrowck-4fda350b.so
librustc_data_structures-4fda350b.so
librustc_driver-4fda350b.so
librustc_front-4fda350b.so
librustc_lint-4fda350b.so
librustc_llvm-4fda350b.so
librustc_metadata-4fda350b.so
librustc_mir-4fda350b.so
librustc_passes-4fda350b.so
librustc_platform_intrinsics-4fda350b.so
librustc_plugin-4fda350b.so
librustc_privacy-4fda350b.so
librustc_resolve-4fda350b.so
librustc_trans-4fda350b.so
librustc_typeck-4fda350b.so
librustdoc-4fda350b.so
libserialize-4fda350b.so
libstd-4fda350b.so
libsyntax-4fda350b.so
libsyntax_ext-4fda350b.so
libterm-4fda350b.so
libtest-4fda350b.so