Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177175 - sys-apps/baselayout-2.0.0_alpha2 /lib/rcscripts/sh/functions.sh problem
Summary: sys-apps/baselayout-2.0.0_alpha2 /lib/rcscripts/sh/functions.sh problem
Status: RESOLVED DUPLICATE of bug 177197
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-05 13:25 UTC by Markus Meier
Modified: 2007-05-05 20:25 UTC (History)
1 user (show)

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 Markus Meier gentoo-dev 2007-05-05 13:25:20 UTC
With the new baselayout I got a problem while booting. The KV_to_int() function didn't work properly anymore. Replacing the following line did the trick for me (and everything works so far...):

-       local KV_MICRO=${x%%-*}
+       local KV_MICRO=${x%%.*}

But I am not shure if this is the proper fix...


Portage 2.1.2.5 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.21.1 i686)
=================================================================
System uname: 2.6.21.1 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System release 2.0.0_alpha2
Timestamp of tree: Fri, 04 May 2007 15:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web
2c"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LINGUAS="en de en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/normal"
SYNC="rsync://192.168.2.1/gentoo-portage"
USE="X a52 aac acpi alsa apache2 avahi berkdb bidi bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus divx divx4linux dri dts dvd dvdr dvdread eds emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gnome gnutls gpm
graphviz gs gstreamer gtk hal iconv ieee1394 ipod ipv6 isdnlog java jpeg kde kdeenablefinal libg++ live mad midi mikmod mmx mono mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin ntfs ogg oggvorbis opengl oss pam pcre pdf perl png ppd
s pppd python qt qt3 qt4 quicktime readline real reflection ruby samba screen sdl session spell spl sse sse2 ssl stream svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wxwin
dows x86 xcb xcomposite xine xinerama xml2 xorg xprint xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm
softvol" ELIBC="glibc" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LINGUAS="en de en_GB" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Avuton Olrich 2007-05-05 16:06:47 UTC
Did something similar, I also don't know if it's correct:

diff --git a/sh/functions.sh b/sh/functions.sh
index d1327ad..c98016b 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -117,6 +117,7 @@ KV_to_int() {
        local KV_MINOR=${x%%.*}
        x=${1#*.*.}
        local KV_MICRO=${x%%-*}
+       KV_MICRO=${KV_MICRO%%.*}
        local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} ))

        # We make version 2.2.0 the minimum version we will handle as
Comment 2 Avuton Olrich 2007-05-05 20:22:33 UTC
I believe the attachment in #177197 fixes this.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-05-05 20:25:55 UTC

*** This bug has been marked as a duplicate of bug 177197 ***