Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79257 - net-tools did not install properly. ifconfig and others were missing
Summary: net-tools did not install properly. ifconfig and others were missing
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 79991 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-23 13:45 UTC by Dave Chilson
Modified: 2006-01-10 10:02 UTC (History)
4 users (show)

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


Attachments
emerge net-tools &log (net-tools_log.rtf,28.90 KB, text/rtf)
2005-01-25 21:04 UTC, Dave Chilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Chilson 2005-01-23 13:45:46 UTC
i brought a system up from stage 1. Over night I kicked of the bootstrap.sh script and emerge system. In the morning ifconfig was missing.

Here are a few things Sven Vermeulen suggested I look at:

livecd / # ls /sbin/i*                                                         
/sbin/idectl  /sbin/insmod.old         /sbin/insmod_ksymoops_clean
/sbin/init    /sbin/insmod.static      /sbin/installkernel
/sbin/insmod  /sbin/insmod.static.old
livecd / # emerge -p net-tools                                                 

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/net-tools-1.60-r9  

livecd / # cat /var/db/pkg/sys-apps/net-tools-1.60-r9/CONTENTS                 
dir /bin
obj /bin/hostname 7c7261f805c6cdc302624429c1f8598c 1105549721

my make.conf if you need it.
CFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="x86 mmx 3dnow sse alsa avi crypt cscope dvd flac gif imlib jpeg lirc mad mpeg mysql oggvorbis opengl png quicktime sdl tiff truetype X xmms xv zlib nvidia -arts transcode xinerama -nls net joystick matroska -ldap apache2 xvid v4l2 theora

And lastly the forum post that that references this problem

http://forums.gentoo.org/viewtopic.php?t=283808

Reproducible: Didn't try
Steps to Reproduce:
1.Boot from x86 LiveCD
2.Follow gentoo manual for a stage1 install.
Actual Results:  
net-tools did not install properly

Expected Results:  
Install net-tools properly

Portage 2.0.51-r14 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 
i686)
===============================================================
==
System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 22 2005, 10:57:03)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/
kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm avi berkdb bitmap-fonts crypt cscope cups dvd encode f77 fam flac 
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 joystick jpeg kde libg++ libwww lirc mad 
matroska mikmod mmx motif mpeg mysql ncurses net nvidia oggvorbis opengl oss pam pdflib perl png 
python qt quicktime readline sdl spell sse ssl svga tcpd theora tiff transcode truetype truetype-fonts 
type1-fonts v4l2 x86 xinerama xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-01-25 06:39:27 UTC
run `emerge net-tools >& log` and post the log file as an attachment
Comment 2 Jean-Michel Smith 2005-01-25 13:45:51 UTC
I can confirm this for a 32-bit x86 build.

emerge -Dup system

shows everything current, yet

emerge -p net-tools shows that net-tools-1.60-r9 is installed.

finally, qpkg -l net-tools shows:

sys-apps/net-tools-1.60-r9 *
CONTENTS:
/bin
/bin/hostname

emerge -pv net-tools shows
[ebuild   R   ] sys-apps/net-tools-1.60-r9  -build* -debug +nsl* -static (-uclibc) 203kB

remerging net-tools and rerunning qpkg -l shows that, emerging it again by hand once the build is complete works, and arp, rarp, route, iptunnel, plipconfig mii-tool, slattach, anemif, ifconfig, and ipmaddr are all where they belong.

It appears something is broken when net-tools is first emerged during the initial 'emerge system' procedure.
Comment 3 Dave Chilson 2005-01-25 21:04:06 UTC
Created attachment 49539 [details]
emerge net-tools &log

Don't know how much this will help since I've re-emerged net-tools and it
works. Looks like Jean-Michel Smith confirms this only happens on
emerge-system.

But for the record there you are and I hope it helps somewhat.
Comment 4 SpanKY gentoo-dev 2005-01-28 22:27:23 UTC
well, if net-tools is built with USE=build, then the ebuild deletes everything but /bin/hostname
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-01-30 10:51:45 UTC
*** Bug 79991 has been marked as a duplicate of this bug. ***
Comment 6 Lance Albertson (RETIRED) gentoo-dev 2005-02-02 15:56:06 UTC
I just had this happen to me also. Says the package is installed, yet none of the binaries like ifconfig were installed. Could somethign have changed in bootstrap.sh lately to cause this? wolk has been doing some different things to it lately and I'm wondering about that. This is quite annoying when you have a box a few thousand miles away and it doesn't come up because ifconfig is missing :P
Comment 7 SpanKY gentoo-dev 2005-02-02 15:58:32 UTC
wouldnt be suprised if it was the recent -e change
Comment 8 Lance Albertson (RETIRED) gentoo-dev 2005-02-02 16:03:30 UTC
It seems to coincide with it, wouldn't surprise me either!
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-03 06:38:17 UTC
Here is my comment from bug #80396

Actually, the docs have already been updated for 2005.0 to give three choices.

1.  The user can simply do "emerge system" and only new portions of their system will be rebuilt with their new USE/CFLAGS, anything made during bootstrap will remain as compiled at that time.  This is the quickest method, but I am not sure that everything will work as expected, and therefore, is not recommended.

2.  The user can do an "emerge --newuse system" and it will compile the new portions of their system with their new USE/CFLAGS, and anything made during bootstrap that has had changed USE flags will be rebuilt.

3.  The user can do an "emerge -e system" and it will recompile everything using their new USE/CFLAGS.  This is obviously the slowest method, but this ensures that every package is completely recompiled using the user's given USE/CFLAGS.

This really is not required for 2004.3 or earlier, but due to the changes in the stages for 2005.0, these options are all being presented.



The problem is that people are asking users to test stages without giving them any notice of what may have changed.
Comment 10 Lance Albertson (RETIRED) gentoo-dev 2005-02-03 06:41:40 UTC
Ah, thanks for that info. Makes sense now! I've been running emerge --newuse world on all my recent boxes to fix that since I missed that in the releng mails. I will make sure I read those before using test stages like that again. 

Cheers!
Comment 11 SpanKY gentoo-dev 2005-02-03 07:48:21 UTC
ok, but that doesnt change the fact that bootstrap runs emerge with -e which is breaking 2004.3

if the 2005.0 approach is to update our docs, then please revert the `emerge -e` in bootstrap.sh
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-03 10:55:37 UTC
Done.

Also, if you're using a new version of catalyst (anything > 1.1.1) then you'll want to rename bootstrap-new.sh to bootstrap.sh before building stages.  If you're using pre-built stages (like 2004.3) then all should be well (now).
Comment 13 Michal Suchanek 2006-01-10 10:02:28 UTC
ifconfig is still missing and not merged by emerge system in 2005.1-r1.
Remerging net-tools helps.