Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39421 - mkinitrd-3.5.7-r2's removal of dietlibc prevents nash from executing on the initrd
Summary: mkinitrd-3.5.7-r2's removal of dietlibc prevents nash from executing on the i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-25 23:13 UTC by Andy Wang
Modified: 2006-08-09 02:17 UTC (History)
0 users

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 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. ***