Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131210 - busybox-1.1.2.ebuild waiting for stdin due to outdated .config file with USE=savedconfig
Summary: busybox-1.1.2.ebuild waiting for stdin due to outdated .config file with USE=...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 05:06 UTC by Mark Dominik Bürkle
Modified: 2006-10-11 08:57 UTC (History)
0 users

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


Attachments
ebuild diff (busybox-1.1.2.ebuild.diff,617 bytes, patch)
2006-04-25 06:23 UTC, Mark Dominik Bürkle
Details | Diff
modified patch - now uses "${EBUILD}"... (busybox-1.1.2.ebuild.diff,699 bytes, patch)
2006-04-25 08:21 UTC, Mark Dominik Bürkle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2006-04-25 05:06:55 UTC
# ps fauxw; read pid; lsof -nPp $pid; time strace -p $pid 2>&1
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   1496   516 ?        S    Apr13   0:00 init [3]
...
root      1987  0.0  0.1   3284  1728 ?        Ss   Apr16   0:17 SCREEN -ADR
root      1988  0.0  0.1   2632  1568 pts/2    Ss   Apr16   0:00  \_ -/bin/bash
root     25961 29.3  1.2  14372 12412 pts/2    S+   12:37   0:09      \_ /usr/bin/python -O /usr/bin/emerge -avuND world
root     25999  0.0  0.0   1536   428 pts/2    S+   12:37   0:00          \_ [busybox-1.1.2] sandbox /usr/lib/portage/bin/ebuild.sh unpack
root     26000  0.5  0.2   4560  2744 pts/2    S+   12:37   0:00              \_ /bin/bash /usr/lib/portage/bin/ebuild.sh unpack
root     26027  0.0  0.1   2436  1244 pts/2    S+   12:37   0:00                  \_ make oldconfig
root     26216  0.0  0.1   2360  1140 pts/2    S+   12:37   0:00                      \_ ./scripts/config/conf -o /var/tmp/portage/busyboxroot      3894  0.0  0.0   1520   464 ?        S<s  Apr18   0:00 /sbin/udevd --daemon
...
26216
COMMAND   PID USER   FD   TYPE DEVICE    SIZE    NODE NAME
conf    26216 root  cwd    DIR    3,1    1064 1998890 /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2
conf    26216 root  rtd    DIR    3,1     496       2 /
conf    26216 root  txt    REG    3,1   83608 5367894 /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2/scripts/config/conf
conf    26216 root  mem    REG    0,0               0 [heap] (stat: No such file or directory)
conf    26216 root  mem    REG    3,1  122394 4344526 /lib/ld-2.4.so
conf    26216 root  mem    REG    3,1   27548  844329 /usr/lib/libsandbox.so.0.0.0
conf    26216 root  mem    REG    3,1 1210012 4344237 /lib/libc-2.4.so
conf    26216 root  mem    REG    3,1   10596 4344517 /lib/libdl-2.4.so
conf    26216 root    0u   CHR  136,2               4 /dev/pts/2
conf    26216 root    1w   CHR    1,3            1131 /dev/null
conf    26216 root    2u   CHR  136,2               4 /dev/pts/2
Process 26216 attached - interrupt to quit
read(0, #0x40027000, 1024)               = ? ERESTARTSYS (To be restarted)
--- SIGTSTP (Stopped) @ 0 (0) ---
--- SIGTSTP (Stopped) @ 0 (0) ---
read(0, 0x40027000, 1024)               = ? ERESTARTSYS (To be restarted)
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
read(0, 0x40027000, 1024)               = ? ERESTARTSYS (To be restarted)
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
--- SIGTTIN (Stopped (tty input)) @ 0 (0) ---
... (repeats some 1000s times)
read(0, 0x40027000, 1024)               = ? ERESTARTSYS (To be restarted)
--- SIGCONT (Continued) @ 0 (0) ---
read(0,
 <unfinished ...>
Process 26216 detached

real    77m36.367s
user    0m0.207s
sys     0m0.432s
Comment 1 Mark Dominik Bürkle 2006-04-25 05:12:32 UTC
the (1000s repeats) lines are created by "^z/suspending" and "fg/resuming"
 emerge -avuND world
which has PID 25961 in output above. It's about the fourth or fifth "eix-sync; emerge..." within some five days, still stopping at busybox.


# emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-suspend2-r8 i686)
=================================================================
System uname: 2.6.15-suspend2-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre18
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 -fomit-frame-pointer -ffast-math -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 -fomit-frame-pointer -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LINGUAS="de en fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts cli crypt cups curl dri dvd eds emboss encode esd foomaticdb gdbm gif gpm gstreamer gtk gtk2 imap imlib ipv6 isdnlog jpeg kde libg++ libwww mad mikmod mmap mmx mmx2 motif mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openssh pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spl sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts udev unicode vorbis xml xml2 xmlrpc xorg xv zlib elibc_glibc kernel_linux linguas_de linguas_en linguas_fr userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS

# for f in /etc/portage/package.*; do echo $f; cat $f; done
/etc/portage/package.mask
>app-emulation/cedega-4.2-r1
>dev-db/oracle-instantclient-basic-10.1.0.4
>dev-db/oracle-instantclient-sqlplus-10.1.0.4
<sys-libs/glibc-2.4-r1
>sys-libs/glibc-2.4-r1

=sys-apps/file-4.17
#=www-client/opera-8.52
=app-portage/eix-0.5.3

#=media-video/avifile-0.7.43.20050224-r2
#>=dev-java/blackdown-jdk-1.5
#>=dev-java/sun-j2sdk-1.5.0

/etc/portage/package.use
app-text/acroread -ldap
dev-db/tora oracle
dev-libs/cyrus-sasl -gdbm berkdb
media-video/ffmpeg dts x264
media-video/mplayer X aac alsa arts bl cdparanoia dga dts dv dvb dvd dvdread encode esd gif jack jpeg lirc live lzo mad matroska mmx mmxext musepack nls nvidia opengl png real sdl sse sse2 theora truetype unicode v4l v4l2 vorbis win32codecs x264 xanim xmms xv xvid xvmc -oss
net-fs/autofs -ldap
net-misc/ssh openssh
net-wireless/hostap-driver pcmcia
net-wireless/kismet ethereal
sys-apps/busybox static savedconfig
sys-kernel/gentoo-sources symlink
sys-kernel/suspend2-sources symlink
sys-libs/glibc userlocales
sys-devel/gcc doc
media-libs/libsndfile alsa
media-video/vdr dvbplayer
app-misc/screen multiuser

#app-emulation/cedega cvs
#net-www/apache mpm-prefork

Comment 2 Mark Dominik Bürkle 2006-04-25 05:14:11 UTC
# emerge -avuND world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] sys-apps/busybox-1.1.2 [1.1.0] USE="savedconfig static -debug -floppyboot -make-symlinks -netboot" 0 kB
[ebuild     U ] sys-apps/iproute2-2.6.16.20060323 [2.6.15.20060110] USE="berkdb -atm -minimal" 0 kB

...
[ebuild     U ] app-misc/screen-4.0.2-r5 [4.0.2-r4] USE="multiuser% pam -debug -nethack" 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No]
>>> Emerging (1 of 76) sys-apps/busybox-1.1.2 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
>>> Unpacking source...
>>> Unpacking busybox-1.1.2.tar.bz2 to /var/tmp/portage/busybox-1.1.2/work
 * Applying bb.patch ...                                                                                                            [ ok ]
 * Found your //etc/busybox/i686-pc-linux-gnu/busybox.config and using it.
.config:264: trying to assign nonexistent symbol CONFIG_FEATURE_INIT_SWAPON
.config:267: trying to assign nonexistent symbol CONFIG_POWEROFF
.config:268: trying to assign nonexistent symbol CONFIG_REBOOT
.config:440: trying to assign nonexistent symbol FEATURE_CPU_USAGE_PERCENTAGE
.config:442: trying to assign nonexistent symbol CONFIG_SYSCTL
.config:532: trying to assign nonexistent symbol CONFIG_NFSMOUNT
.config:534: trying to assign nonexistent symbol CONFIG_FEATURE_MOUNT_FORCE
.config:541: trying to assign nonexistent symbol CONFIG_FEATURE_MTAB_FILENAME

[1]+  Stopped                 emerge -avuND world
# g
bash: g: command not found
# fg
emerge -avuND world

Comment 3 Mark Dominik Bürkle 2006-04-25 06:23:08 UTC
Created attachment 85455 [details, diff]
ebuild diff

ebuild uses "yes '' | make oldconfig", so missing options can be filled with the defaults...
Comment 4 Mark Dominik Bürkle 2006-04-25 06:47:01 UTC
a) please note that the patch includes "ewarn" output, I didn't know the correct variable for "${ebuildfile}" so I used "${0}" which is wrong.

b) to apply this patch:

# patch -i /path/to/downloaded/busybox-1.1.2.ebuild.diff /usr/portage/sys-apps/busybox/busybox-1.1.2.ebuild
patching file /usr/portage/sys-apps/busybox/busybox-1.1.2.ebuild
# ebuild /usr/portage/sys-apps/busybox/busybox-1.1.2.ebuild digest
>>> Creating Manifest for /usr/portage/sys-apps/busybox
# emerge ...
(...)
>>> Unpacking busybox-1.1.2.tar.bz2 to /var/tmp/portage/busybox-1.1.2/work
 * Applying bb.patch ...                                                                                                            [ ok ]
 * Found your //etc/busybox/i686-pc-linux-gnu/busybox.config and using it.
 *
 * You should check if //etc/busybox/i686-pc-linux-gnu/busybox.config needs any adjustments.
 * Commands for this task:
 *   ebuild "/usr/lib/portage/bin/ebuild.sh" unpack
 *   cd "/var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2"
 *   yes '' | make oldconfig
 *   diff "//etc/busybox/i686-pc-linux-gnu/busybox.config" .config
 *
.config:31: trying to assign nonexistent symbol CONFIG_FEATURE_SUSv2
.config:32: trying to assign nonexistent symbol CONFIG_FEATURE_SUSv2_OBSOLETE
.config:291: trying to assign nonexistent symbol CONFIG_POWEROFF
.config:292: trying to assign nonexistent symbol CONFIG_REBOOT
.config:347: trying to assign nonexistent symbol BB_APPLET_RUNLEVEL
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/busybox-1.1.2/work/busybox-1.1.2 ...
...

Comment 5 Mark Dominik Bürkle 2006-04-25 08:21:39 UTC
Created attachment 85464 [details, diff]
modified patch - now uses "${EBUILD}"...


BTW: the "saved config" files are not removed with busybox-packages, are they?
>>> /etc/busybox/i686-pc-linux-gnu/busybox-1.1.2-r0.config
Comment 6 Mark Dominik Bürkle 2006-04-25 11:29:10 UTC
patch is working for me, resolved to TEST-REQUEST.

Anyone who created some default config file /etc/busybox/${CHOST}/busybox.config, could You verify if it's working for You?

It's possible that this won't work in certain circumstances, but usually it will take the defaults where nothing is set in Your old busybox.config.
Comment 7 Mark Dominik Bürkle 2006-04-25 11:32:05 UTC
SpanKY, would You mind to have a look at the diff? Thanks!
Comment 8 SpanKY gentoo-dev 2006-04-25 16:27:03 UTC
i'm already on the embedded alias
Comment 9 SpanKY gentoo-dev 2006-04-25 22:17:08 UTC
thanks, fixed in 1.1.2
Comment 10 Mark Dominik Bürkle 2006-10-11 08:57:28 UTC
confirming: verified/fixed.
Would also do close/fixed so it could be purged, can't it?