Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656466 - dev-lang/rust-1.26.0-r1 32bit libs install location
Summary: dev-lang/rust-1.26.0-r1 32bit libs install location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-25 01:43 UTC by Georgy Yakovlev
Modified: 2020-02-22 10:37 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 Georgy Yakovlev archtester gentoo-dev 2018-05-25 01:43:18 UTC
Hi,

After emerging rust with ABI_X86="32 64" i noticed that it installs 32bit versions of the libraries into /usr/lib32/libname

/usr/lib32/libterm-4e554f4495f10bc9.so
/usr/lib32/libtest-a11b1871063c40b2.so
/usr/lib32/libstd-5589a026d07e82fb.so


yet 64 bit versions get installed into own subdir

/usr/lib64/rust-1.26.0/libtest-a11b1871063c40b2.so
/usr/lib64/rust-1.26.0/libterm-4e554f4495f10bc9.so
/usr/lib64/rust-1.26.0/libstd-4eaf3f46ba0cb6d1.so



emerge --info rust
Portage 2.3.38 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.26-r7, 4.16.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.11-gentoo-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-gentoo-2.5
KiB Mem:    64809584 total,  45171404 free
KiB Swap:   16777208 total,  16777208 free
Timestamp of repository gentoo: Thu, 24 May 2018 23:37:01 +0000
Head commit of repository gentoo: d5c4f3c095f48af5c06ea2b2a6ade6fc68976c6c

Head commit of repository steam-overlay: 46d2624c5f248bf28e25c25e172e60c2eb988e5f

sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p2) 2.30.0
distcc[89069] (dcc_mkdir) ERROR: mkdir '/tmp/portage/.distcc/state' failed: No such file or directory [disabled]
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.6.5-r1::gentoo
dev-util/cmake:           3.11.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.5-r1::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-clone-extra-opts: -b master

gyakovlev
    location: /var/db/repos/gyakovlev
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~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/lib64/libreoffice/program/sofficerc /usr/share/config /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="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=32  --load-average 32"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup collision-protect compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://cosmos.illinois.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j32 -l32"
PKGDIR="/var/cache/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 --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion berkdb bluray branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative djvu dri dts dvd dvdr elogind emboss encode epub exif fam fbcon flac fontconfig fortran gdbm gif glamor gpm gtk iconv ios ipv6 jit jpeg kde kipi kwallet lcms libnotify lm_sensors lz4 lzma lzo mad mng mobi module-sign modules mp3 mp4 mpeg multilib ncurses nls nptl numa ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline seccomp semantic-desktop smp spell ssl startup-notification svg tiff truetype udev udisks unicode upower urandom usb vaapi vdpau vim-syntax vorbis wayland widgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel" 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="karbon plan sheets stage words" CAMERAS="ptp2 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-lang/rust-1.26.0-r1::gentoo was built with the following:
USE="-debug -doc (-extended) -jemalloc" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore"
Comment 1 Cynede (RETIRED) gentoo-dev 2018-05-25 10:34:14 UTC
yes, that look creepy
Comment 3 Oleg 2018-06-07 19:09:26 UTC
This will break slotting for rustc

-		libdir = "$(get_libdir)/${P}"
+		libdir = "$(get_libdir)"
Comment 4 Georgy Yakovlev archtester gentoo-dev 2018-06-07 19:38:59 UTC
Oleg, 
originally, before mentioned commit,
64 bit stuff went into /usr/lib64/rust-1.26.0/*.so
and 32 bit went into  /usr/lib32/*.so

rust ebuild was modified to install in uniform way:
 /usr/lib64/*.so and  /usr/lib64/rust-1.26.0/*.so

in mentioned commit
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92095dbb4b8e52e573348add6e57bd11de3aafc7

it was 2 weeks ago.

When I opened this bug I thought 32bit libs should go into 
/usr/lib32/rust-1.26.0/*.so similar to 64 bit stuff.

I'll reopen this bug and ping rust team to get their input
Comment 5 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-06-11 12:11:53 UTC
I think it makes sense to include $P in the libdir, but I'd rather not stray too far from upstream. Is it clear from the upstream installation tooling what the canonical path for installing this stuff is, for both 32- and 64-bit libs?
Comment 6 Georgy Yakovlev archtester gentoo-dev 2018-06-27 06:22:49 UTC
I checked what rustup does and it installs native libs into
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/*.so

binpkg does the same, installs into 
/opt/rust-bin-1.26.2/lib/*.so


so no ${P} subdir there.


Also I see that ::gentoo rust only has stable slot, beta slot/versions are not provided anymore.
Comment 7 Georgy Yakovlev archtester gentoo-dev 2018-06-27 06:34:51 UTC
but the rust overlay provides git slot, at least now.
Comment 8 Oleg 2018-07-06 07:49:11 UTC
What if use gcc-like installation? It has paths like /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/
Comment 9 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-11-15 10:58:50 UTC
Oleg, I think that could make sense, but I don't have time to work on it myself. If you want to take a swing at it I'll happily accept patches.
Comment 10 Georgy Yakovlev archtester gentoo-dev 2020-02-22 10:37:59 UTC
this has been fixed.