Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152286 - sys-libs/uclibc-0.9.28 emerge destroys the system (do not put new libraries in /lib)
Summary: sys-libs/uclibc-0.9.28 emerge destroys the system (do not put new libraries i...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-21 12:19 UTC by Edoardo Liverani
Modified: 2006-10-22 05:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Log of my uclibc emerge.. (uclibcemerge.log,680.76 KB, text/plain)
2006-10-22 04:36 UTC, Edoardo Liverani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edoardo Liverani 2006-10-21 12:19:33 UTC
Re-emerging sys-libs/uclibc-0.9.28 in a chrooted environment, it happened a very bad thing, during the install part of emerge, /lib/libuClibc-0.9.28.so and so on disappeared, so emerge stopped, and I couldn't chroot again in this partition, so I tried to do the same emerge from my system specifing ROOT="/mnt/gentoo/" and "PORTAGE_CONFIGROOT="/mnt/gentoo/", but the emerge process just don't put nothing in /lib, leaving the system unusable.
In this case it's not very dangerous because i was just installing and configuring a new system, but if someone did it with his/her system or server (I have got, for example, an uclibc-based server) his/her system would crashed without the ability to restart it.

Here is my emerge --info as I could keep it, because the system is not chrootable yet, you can see my command:
localhost ~ # ROOT="/mnt/gentoo/" PORTAGE_CONFIGROOT="/mnt/gentoo/" emerge --info
Portage 2.1.1 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r0, 2.6.17-gentoo-r7-eddy i686)
=================================================================
System uname: 2.6.17-gentoo-r7-eddy i686 Mobile AMD Sempron(tm) Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Sat, 21 Oct 2006 18:00:03 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium2 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig confcache distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://147.162.218.5/pub/Linux/distributions/gentoo-sources/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS=""
PKGDIR="/usr/distfiles/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acpi apache2 bitmap-fonts cli cracklib dlloader dri elibc_uclibc ftp imagemagick input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux latin1 mime mmx mpm-worker mysql mysqli ncurses pcmcia pcre php readline reflection session spl sse ssl symlink threads truetype-fonts type1-fonts uclibc userland_GNU video_cards_dummy video_cards_fbdev video_cards_v4l wordexp xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2006-10-21 15:00:07 UTC
no real information here other than "things broke"

re-emerging in my x86 chroot and everything works fine:
...
 * Runtime Prefix: /
 * Devel Prefix:   /usr
 * Kernel Prefix:  /usr
 * CBUILD:         i386-gentoo-linux-uclibc
 * CHOST:          i386-gentoo-linux-uclibc
 * CTARGET:        i386-gentoo-linux-uclibc
 * CPU:            GENERIC_386
 * ENDIAN:         little
...
Comment 2 Edoardo Liverani 2006-10-22 04:36:03 UTC
Created attachment 100206 [details]
Log of my uclibc emerge..

COMMAND:
 ROOT="/mnt/gentoo/" PORTAGE_CONFIGROOT="/mnt/gentoo/" emerge -v uclibc &> /tmp/uclibcemerge.log
Comment 3 SpanKY gentoo-dev 2006-10-22 04:38:46 UTC
ok, so this is PEBKAC
Comment 4 Edoardo Liverani 2006-10-22 04:39:01 UTC
Comment on attachment 100206 [details]
Log of my uclibc emerge..

As you see, it do not put nothing in /lib, just in /usr/i686-pc-linux-uclibc/
Comment 5 SpanKY gentoo-dev 2006-10-22 04:39:30 UTC
from your log:
 * CBUILD:         i686-pc-linux-gnu
 * CHOST:          i686-pc-linux-gnu
 * CTARGET:        i686-pc-linux-uclibc

you failed to set up the env properly for the emerge so of course it failed to install the way you expected
Comment 6 Edoardo Liverani 2006-10-22 05:05:31 UTC
Ok you are right, i did overwrite my make.conf bringing the conf from a stage3-i686. (urgh)