Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25448 - kbd-1.08 needs absolute path of consolefont/keymap in rc.conf
Summary: kbd-1.08 needs absolute path of consolefont/keymap in rc.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 25487 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-28 12:12 UTC by tomgo
Modified: 2004-01-20 03:41 UTC (History)
2 users (show)

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


Attachments
removed /usr from --datadir and --mandir to fix the bug (kbd-1.08.ebuild.patch,144 bytes, patch)
2003-07-28 15:44 UTC, Nicolai Lissner
Details | Diff
removed /usr from --datadir and --mandir to fix the bug (kbd-1.08.ebuild.patch,144 bytes, patch)
2003-07-28 15:45 UTC, Nicolai Lissner
Details | Diff
removed /usr from --datadir and --mandir to fix the bug (kbd-1.08.ebuild.patch,144 bytes, patch)
2003-07-28 15:45 UTC, Nicolai Lissner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tomgo 2003-07-28 12:12:51 UTC
kbd-1.08 which is in portage (~x86) needs absolute paths in /etc/rc.conf to load
consolefonts and keymaps, which is different from the previous version.
Example:
1.06 worked with KEYMAP="de" in /etc/rc.conf. 
1.08 needs KEYMAP="/usr/share/keymaps/i386/qwertz/de" to load it properly.
the same is true for CONSOLEFONT.
There should be either a hint in the ebuild which is prompted after install, or,
even better, this should be changed to work like in 1.06.
It doesn't make a difference for me in this respect if i have USE=nls or USE=-nls.


Reproducible: Always
Steps to Reproduce:
1.emerge sys-apps/kbd/kbd-1.08.ebuild
2./etc/init.d/keymaps restart
3.

Actual Results:  
can't find file de

Expected Results:  
should load the keymap

Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.6.0-test1-mm2 i686 AMD Athlon(tm) XP 2000+
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
ftp://gentoo.inode.at/source/ rsync://linux.rz.ruhr-uni-bochum.de/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.inode.at/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod motif
mpeg ncurses nls pdflib png quicktime truetype xml2 xv slang tetex tcltk java X
gpm tcpd pam python imlib oggvorbis qt opengl cdr acpi clamav dga -dvb dvd
-foreign-package -hyriand readline -svga imap jikes 3dnow nptl mmx sse oav pic
samba tiff wmf -apm ssl -sdl -kde ldap spell xmms -alsa -gdbm -berkdb -arts
-libwww -perl -esd -gnome gtk -xinerama zlib gtk2"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-ffast-math -fmerge-all-constants -frerun-cse-after-loop -frerun-loop-opt
-mfpmath=sse -fforce-addr"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays
-ffast-math -fmerge-all-constants -frerun-cse-after-loop -frerun-loop-opt
-mfpmath=sse -fforce-addr"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="sandbox digest ccache buildpkg"
Comment 1 Nicolai Lissner 2003-07-28 15:44:22 UTC
Created attachment 15157 [details, diff]
removed /usr from --datadir and --mandir to fix the bug

version 1.08 of kbd introduced --prefix support  
the datadir and mandir is changed to $prefix$datadir 
and $prefix$mandir during ./configure and if no prefix is specified 
its default is "/usr"
so "datadir=/usr/share"  becomes "datadir=/usr/usr/share" and that makes 
loadkeys to search at the wrong position for the keymap to load
this patch fixes the bug.
Comment 2 Nicolai Lissner 2003-07-28 15:45:01 UTC
Created attachment 15158 [details, diff]
removed /usr from --datadir and --mandir to fix the bug

version 1.08 of kbd introduced --prefix support  
the datadir and mandir is changed to $prefix$datadir 
and $prefix$mandir during ./configure and if no prefix is specified 
its default is "/usr"
so "datadir=/usr/share"  becomes "datadir=/usr/usr/share" and that makes 
loadkeys to search at the wrong position for the keymap to load
this patch fixes the bug.
Comment 3 Nicolai Lissner 2003-07-28 15:45:28 UTC
Created attachment 15159 [details, diff]
removed /usr from --datadir and --mandir to fix the bug

version 1.08 of kbd introduced --prefix support  
the datadir and mandir is changed to $prefix$datadir 
and $prefix$mandir during ./configure and if no prefix is specified 
its default is "/usr"
so "datadir=/usr/share"  becomes "datadir=/usr/usr/share" and that makes 
loadkeys to search at the wrong position for the keymap to load
this patch fixes the bug.
Comment 4 Nicolai Lissner 2003-07-28 15:50:59 UTC
Comment on attachment 15157 [details, diff]
removed /usr from --datadir and --mandir to fix the bug

version 1.08 of kbd introduced --prefix support  
the datadir and mandir is changed to $prefix$datadir 
and $prefix$mandir during ./configure and if no prefix is specified 
its default is /usr 
so datadir=/usr/share  becomes /usr/usr/share and that made
loadkeys to search at the wrong position for the keymap to be loaded. this
patch fixes the bug.
sorry for posting it three times - but I got an error (malformed multipart
submit or something like that and was confused about that)
Comment 5 Narada Sage 2003-07-29 07:48:56 UTC
Hello.  I was unable to load keymaps and consolefonts too.  Finding this bug helped me out so thanks.  A modification should be made so that the full path is not required rather than asking user to add full path.  With regards.
Comment 6 Christian Stein 2003-07-29 15:43:11 UTC
The proposed solution (http://bugs.gentoo.org/attachment.cgi?id=15159&action=view) works. Please update the ebuild in portage asap.
Comment 7 Christian Stein 2003-07-29 15:50:36 UTC
kbd-1.08-r1 solves the bug. Great and fast as always. :)
Comment 8 SpanKY gentoo-dev 2003-07-29 17:29:55 UTC
*** Bug 25487 has been marked as a duplicate of this bug. ***
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-30 21:37:21 UTC
Thanks Nicolai Lissner, missed your input - did add to changelog though.
Comment 10 Julien Allanos (RETIRED) gentoo-dev 2004-01-20 03:41:05 UTC
updated kbd from 1.06-r1 to 1.08-r4, as it went stable, and i get:

# /etc/init.d/keymaps start
 * Loading key mappings...
cannot open file fr-latin0
 * Error loading key mappings                                    [ !! ]

probably due to a change in the installed paths. i'm still using baselayout-1.8.6.10-r1 (lastest stable). guys, what are you looking at when you move packages to stable?