Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13985 - consolefont comes back after some emerge -u actions
Summary: consolefont comes back after some emerge -u actions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-15 13:45 UTC by Randy Dees
Modified: 2004-03-20 14:34 UTC (History)
2 users (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 Randy Dees 2003-01-15 13:45:41 UTC
I prefer to run with vga=extended on most of my systems, which gives me a nice
43-line display when passed to the kernel.  Using this requires that I disable
the consolefont script.  rc-update del consolefont, no problem.  reboot and I
get the nice text terminal that I am looking for.  Unfortunately, it doesn't
stay that way.

I dunno what it is that keeps re-enabling the consolefont rc-script, but it is
annoying.  Once deleted it should not be reinstated by any package.

Thanks
Comment 1 SpanKY gentoo-dev 2003-01-15 14:53:09 UTC
my guess is when you update baselayout it setups the 'base' rcscripts again 
 
you could just do what i do, comment out CONSOLEFONT in /etc/rc.conf ... the comments 
above it say that is how you can use the default (or vga based) font 
 
ill leave it to azarah to see if tweaking needs to be done ... but could you verify that it is indeed 
baselayout that is adding consolefont back to your rcscripts ?  just `rc-update del consolefont` 
and then `emerge baselayout` and see if its back 
Comment 2 Randy Dees 2003-01-15 15:14:37 UTC
You are indeed correct.  baselayout is the offending package.

I will comment it out in rc.conf, as suggested, but still maintain that this
ebuild is broken.  It does not matter _what_ service I delete, updating
baselayout will reconfigure my system to add that service back into the
runlevels it started in.

That's just bad.  I should _always_ be able to reconfigure my system however I
want it without expecting a package to overwrite those settings later.

It shouldn't be too tough to script:  

  for file in {list of rc-scripts in package}; do 
    if [ -r $file ]; then 
      {update file}; 
    else 
      {echo something here maybe}; 
    fi; 
  done

A little basic but better than current behavior IMHO.
Which doesn't handle the initial emerge but would handle the _substantially_
more common update case.
Comment 3 SpanKY gentoo-dev 2003-01-15 15:26:11 UTC
yeah it'll be up to azarah to tweak it 
 
baselayout is a special case to rcscripts + auto setup which is why these assumptions exist in 
the pkg ... its the 'base' of Gentoo :) 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-18 12:46:35 UTC
Its actually not a bug in baselayout.  If ROOT == "/", then it 'should' not
install the base symlinks.  Seems like portage do not set ROOT during src_install:

---------------------------------------------
>>> Install baselayout-1.8.6.3 into
/space/var/tmp/portage/baselayout-1.8.6.3/image/ category sys-apps
 * *** ROOT: 
man:
gzipping man page: .keep
gzipping man page: .keep
info:
gzipping GNU info page: .keep
strip:
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/runscript
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/start-stop-daemon
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/init
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/halt
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/killall5
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/runlevel
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/shutdown
/space/var/tmp/portage/baselayout-1.8.6.3/image//sbin/sulogin
/space/var/tmp/portage/baselayout-1.8.6.3/image//lib/rcscripts/filefuncs.so
/space/var/tmp/portage/baselayout-1.8.6.3/image//bin/last
/space/var/tmp/portage/baselayout-1.8.6.3/image//bin/mesg
/space/var/tmp/portage/baselayout-1.8.6.3/image//bin/utmpdump
/space/var/tmp/portage/baselayout-1.8.6.3/image//bin/wall
>>> Completed installing into /space/var/tmp/portage/baselayout-1.8.6.3/image/

>>> Merging sys-apps/baselayout-1.8.6.3 to /tmp/foo
Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 37, in ?
    a=portage.doebuild(pargs[0],x,getroot(),debug=debug)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1309, in doebuild
    return
merge(settings["CATEGORY"],settings["PF"],settings["D"],settings["BUILDDIR"]+"/build-info",myroot,myebuild=settings["EBUILD"])
  File "/usr/lib/python2.2/site-packages/portage.py", line 1539, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 4033, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild)
  File "/usr/lib/python2.2/site-packages/portage.py", line 3715, in treewalk
    counter=db[destroot]["vartree"].dbapi.counter_tick()
KeyError: /tmp/foo
-----------------------------------------------------------------------------

Nick, also got a traceback ....


-----------------------------------------------------------------------------
 # emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3)
=================================================================
System uname: 2.5.59 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS="http://mirrors.twobit.net/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/space/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 slang readline gpm berkdb gdbm tcpd pam libwww ssl lm_sensors mmx sse
mitshm ngpt nptl esd jpeg gif png sdl oggvorbis lcms gnome gtk X qt opengl cups
perl python tcltk guile ruby xml xml2 java fbcon svga tex bonobo oss libg++
aalib gs ungif gtkhtml pdflib gb libgda spell evo dvd decss css xv dga encode
avi mpeg truetype moznomail moznoirc"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe"
CXXFLAGS="-march=pentium3 -O2 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j6"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache digest cvs sandbox noclean noauto prelink"

Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-03-20 14:34:02 UTC
Wow. This is old...
This is also fixed.