Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 39421

Summary: mkinitrd-3.5.7-r2's removal of dietlibc prevents nash from executing on the initrd
Product: Gentoo Linux Reporter: Andy Wang <dopey>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andy Wang 2004-01-25 23:13:50 UTC
The resolution for bug #35138 completely breaks mkinitrd.
The following is the block in the nash Makefile:
ifeq (i386, $(ARCH))
CC:=diet $(CC)
CFLAGS += -DUSE_DIET=1
else
STATIC=-static
endif

The fix for the above mentioned block removes the "diet" string from the CC
line.  However, this isn't enough.  For one, the "fix" does nothing to address
the fact that nash is linked dynamically by default on i386 systems.
With nash linked dynamically, and dietlibc support removed, mkinitrd doesn't
copy libc.so.6 into the initrd's /lib.  This prevents nash from executing and
pretty much makes the ramdisk useless.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-01-26 00:22:10 UTC
added diet back in ...

i guess we'll try to figure out why it breaks so horribly
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-08 23:20:54 UTC
*** Bug 143283 has been marked as a duplicate of this bug. ***