Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172204 - x11-misc/keytouch needs kde-base/kdesu
Summary: x11-misc/keytouch needs kde-base/kdesu
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-25 18:00 UTC by Boudewijn Ector
Modified: 2007-03-25 20:40 UTC (History)
0 users

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 Boudewijn Ector 2007-03-25 18:00:21 UTC
Keytouch is crashing when not having kdesu installed, it says.

zeus boudewijn # keytouch
which: no gksu in (/sbin:/bin:/usr/sbin:/usr/bin)
/usr/bin/keytouch-keyboard: line 6: kdesu: command not found


But. it's erroring to after having installed kdesu.


Reproducible: Always

Steps to Reproduce:
1. emerge keytouch on another machine
2. start keytouch daemon
3. start keytouch itself

Actual Results:  
still doesn't work.


_64)
=================================================================
System uname: 2.6.17 x86_64 Dual Core AMD Opteron(tm) Processor 270
Gentoo Base System version 1.12.9
Timestamp of tree: Sun, 25 Mar 2007 17:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     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.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -pipe -O3 -msse3 -funroll-loops"
CHOST="x86_64-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/java-config/vms/ /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/web2c"
CXXFLAGS="-march=opteron -pipe -O3 -msse3 -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="nl"
MAKEOPTS="-j6"
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/portage/local/layman/gfn-overlay /usr/local/portage"
SYNC="rsync://dionysos/gentoo-portage"
USE="X alsa amd64 asterisk berkdb bitmap-fonts branding cli cracklib crypt cups dbus dri dvd dvdr dvdread firefox flac fortran gdbm gpm hal iconv isdnlog jack java jpeg kde kqemu libg++ midi mikmod mp3 mplayer ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl postgres ppds pppd python qemu qt qt3 readline reflection session spl ssl subtitles subversion tcpd theora tiff truetype-fonts type1-fonts unicode vorbis wavpack wma xorg zlib" ALSA_CARDS="emu10k1" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Boudewijn Ector 2007-03-25 18:36:32 UTC
by the way: it's about x11-misc/keytouch-2.3.0.
also gksu is needed.


proposed fix: (yeah dirty, but both are needed while having 'kde' enabled)

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/keytouch/keytouch-2.3.0.ebuild,v 1.1 2007/03/21 00:07:50 nyhm Exp $

inherit eutils versionator linux-info

DESCRIPTION="Easily configure extra keyboard function keys"
HOMEPAGE="http://keytouch.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="acpi kde"

RDEPEND=">=x11-libs/gtk+-2
        gnome-base/gnome-menus
        x11-misc/xbindkeys
        media-libs/alsa-lib
        acpi? ( sys-power/acpid )
        kde-base/kdesu            
        x11-libs/gksu "
DEPEND="${RDEPEND}
        dev-util/pkgconfig"

src_unpack() {
        unpack ${A}
        cd "${S}"

        sed -i 's/install-data-local//1' \
                keytouch{-acpid,d,-init}/Makefile.in \
                || die "sed failed"

        sed -i 's/gnome-calculator/gcalctool/' \
                keyboards/* || die "sed failed"
}

src_compile() {
        local d
        for d in . keytouch-config keytouch-keyboard ; do
                cd "${S}"/${d}
                econf || die
                emake || die "emake ${d} failed"
        done
}

src_install() {
        if use acpi ; then
                newinitd "${FILESDIR}"/${PN}-acpid ${PN} || die "newinitd failed"
        else
                doinitd "${FILESDIR}"/${PN} || die "doinitd failed"
        fi

        newicon keytouch-keyboard/pixmaps/icon.png ${PN}.png
        make_desktop_entry ${PN} keyTouch ${PN}.png System

        dodoc AUTHORS ChangeLog

        local d
        for d in . keytouch-config keytouch-keyboard ; do
                emake -C ${d} DESTDIR="${D}" install \
                        || die "emake install ${d} failed"
        done
}

pkg_postinst() {
        echo
        elog "To use keyTouch, add \"keytouchd\" to your"
        elog "X startup programs and run"
        elog "\"rc-update add keytouch default\""
        elog
        elog "If support for your keyboard is not included in"
        elog "this release, check for new keyboard files at"
        elog "${HOMEPAGE}dl-keyboards.html"
        elog
        elog "x11-misc/keytouch-editor can be used to create"
        elog "your own keyboard files"
        echo
        if use acpi && ! linux_chkconfig_present INPUT_EVDEV ; then
                ewarn "To add support for ACPI hotkeys, CONFIG_INPUT_EVDEV"
                ewarn "must be enabled in your kernel config."
                ewarn
                ewarn "  Device Drivers"
                ewarn "    Input device support"
                ewarn "      <*>/<M> Event interface"
                echo
        fi
}
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-25 20:01:55 UTC
This fix is completely wrong; plus please don't paste ebuilds inline. Also I fail to see how you don't have kdesu installed after you've emerged this w/ USE=kde.
Comment 3 Boudewijn Ector 2007-03-25 20:40:46 UTC
no idea.
Had to install it for myself. Also, it didn't work after having installed kdesu until installing gksu.
Won't paste anymore ebuilds inline.