Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609178 - On sparc64 libraries get installed in / and /usr instead of their proper locations
Summary: On sparc64 libraries get installed in / and /usr instead of their proper loca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: Normal major (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
: 611366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-12 22:38 UTC by Chase Rayfield
Modified: 2021-03-06 07:43 UTC (History)
4 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 Chase Rayfield 2017-02-12 22:38:09 UTC
This has happened on my T2000 which was installed originally about 2 years ago as well as on the fresh install I just did on a U45. I upgrade the T2000 every so often so I doubt his bug is more than 5-6mo old.

So some of the things I have noticed so far is that... glibc dumped a bunch of it's libs in / and portage is reporting that the output of localedef is broken as well.

I first noticed the problem when zlib was emerging after an update and it failed... as shared library support is broken as ld.so is in / etc...

localhost ~ # emerge --info
Portage 2.2.26 (python 2.7.10-final-0, default/linux/sparc/13.0/desktop, gcc-4.9.3, glibc-2.22-r4, 4.9.9-gentoo sparc64)
=================================================================
System uname: Linux-4.9.9-gentoo-sparc64-sun4u-with-gentoo-2.2
KiB Mem:     5185984 total,   3005840 free
KiB Swap:   16000728 total,  16000728 free
Timestamp of repository gentoo: Sat, 11 Feb 2017 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::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.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc3 -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
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="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
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 xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 alsa berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session sparc spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xrandr xv xvid zlib" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" INPUT_DEVICES="libinput keyboard mouse" 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-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="r100 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Chase Rayfield 2017-02-12 22:40:41 UTC
I also noticed.. that on a brand new fresh install with nothing changed, pciutils installs one of it's libs in /usr/ not sure if it is related.
Comment 2 Rolf Eike Beer archtester 2017-02-15 19:57:13 UTC
I can confirm this. There are symlinks in /lib pointing to ..//lib*. The "//" makes me think that this is some multiarch stuff gone wrong, as there was probably a ${libdir} in between so it should have been expanded to ../lib/lib* or ../lib64/lib* if everything was correct.
Comment 3 Chase Rayfield 2017-02-18 23:12:16 UTC
..//ld-linux.so.2 is the only one I currently seem formed that way... in both /lib and /usr/lib/
Comment 4 Rolf Eike Beer archtester 2017-03-01 21:48:07 UTC
My way to break the system: start with stage3-sparc64-20160403.tar.bz2, update linux-headers and glibc -> system screwed.
Comment 5 Rolf Eike Beer archtester 2017-03-02 16:48:47 UTC
This is a breakage in profile. Fixed by

echo 'LIBDIR_sparc32="lib"' >> /usr/portage/profiles/arch/sparc/make.defaults
Comment 6 Chase Rayfield 2017-03-02 20:28:04 UTC
From our conversation before I thought 'LIBDIR_sparc32="lib" was supposed to be unset? Not blank but unset...
Comment 7 Rolf Eike Beer archtester 2017-03-02 20:38:18 UTC
The problem as it looks to me is that the LIBDIR_${ABI} is not defined for sparc, but for all other architectures it is. So that echo sets it for sparc (until the next emerge --sync) and everything seems to work fine.
Comment 8 Matt Turner gentoo-dev 2017-03-03 02:09:59 UTC
Reported on IRC that https://gitweb.gentoo.org/repo/gentoo.git/commit/profiles/features/multilib/make.defaults?id=4ab0a72740a3c4bf55c479a7389d91966ebb95ea is the commit that broke things. Cc'ing Michał.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-03 20:14:00 UTC
I'm sorry about the problem. The following commit should fix it. Please let me know if it's fixed.


commit 1445c0f114f75916e313c5ab9a049bf3caaa79b1
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Fri Mar 3 21:11:24 2017
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Fri Mar 3 21:12:00 2017

    profiles/default/linux/sparc/13.0: fix LIBDIR_*, #609178


@sparc, I've readded the LIBDIR_* where multilib was inherited. Not that the whole design makes any sense. Please look into making it sane and predictable to prevent future issues like that.
Comment 10 Rolf Eike Beer archtester 2017-03-07 18:19:10 UTC
Seems to work.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2017-03-09 10:56:30 UTC
*** Bug 611366 has been marked as a duplicate of this bug. ***