Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304969 - emerge sys-libs/readline.6.1 compiles but cannot install, ${D} contains a path with trailing slash and 'make install' appends a path with slash
Summary: emerge sys-libs/readline.6.1 compiles but cannot install, ${D} contains a pat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 21:16 UTC by nsimic
Modified: 2010-02-15 08:42 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 nsimic 2010-02-13 21:16:52 UTC
emerge readline fails with 
unable to read SONAME from libreadline.so

libreadline

Additional problem is the:
make -j2 DESTDIR=/var/tmp/portage/sys-libs/readline-6.1/image/ install 

which produces:
mv /var/tmp/portage/sys-libs/readline-6.1/image//usr/lib/libreadline.a /var/tmp/portage/sys-libs/readline-6.1/image//usr/lib/libreadline.old
mv: cannot stat `/var/tmp/portage/sys-libs/readline-6.1/image//usr/lib/libreadline.a': No such file or directory



Reproducible: Always

Steps to Reproduce:
1. emerge -u readline
Comment 1 nsimic 2010-02-13 21:18:01 UTC
Portage 2.1.6.13 (default/linux/powerpc/ppc64/10.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-ps3 ppc64)
=================================================================
System uname: Linux-2.6.23-ps3-ppc64-Cell_Broadband_Engine,_altivec_supported-with-glibc2.3
Timestamp of tree: Fri, 12 Feb 2010 22:30:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.1.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc64 ~ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl altivec berkdb bzip2 cblas cli cracklib crypt cups cxx dri fbcon fortran gdbm gnutls gpm gsl iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppc64 pppd ps3 python readline reflection session spl ssl subversion sysfs tcpd unicode wifi xorg" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev mouseeyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Rafał Mużyło 2010-02-14 02:16:28 UTC
Attach full build log.
Comment 3 nsimic 2010-02-15 08:42:18 UTC
(In reply to comment #2)
> Attach full build log.
> 

Do not have it any more.

I hacked a bit in the toolchain-funcs.eclass and modified the gen_usr_ldscript() function to ignore the -a (auto) parameter. This caused the readline to install properly.

The problem was probably a very old stage4 distribution (cca. 2007). It simply could not be easily updated (wasted an entire day on it, too much to update, too many dependencies). 

I scraped the entire system and installed a fresh stage3.