Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 673700

Summary: sys-libs/gpm-1.20.7-r2 - add kernel configuration check for CONFIG_INPUT_MOUSEDEV
Product: Gentoo Linux Reporter: Kimmo Martimo <kimmo.martimo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: EBUILD
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild with added kernel config checks

Description Kimmo Martimo 2018-12-25 00:37:32 UTC
Created attachment 558460 [details]
ebuild with added kernel config checks

GPM needs kernel CONFIG_INPUT_MOUSEDEV set to work, as there will be no /dev/input/mouseX or /dev/input/mice to read mouse events from without it.

The attached ebuild adds kernel config checking. I'm sure it's in some way incorrect as this is my first ebuild rodeo. The documentation for linux-info.eclass and pulseaudio.ebuild and qemu.ebuild (which I used as references) also seem to conflict each other pretty badly ;)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-12-25 13:06:08 UTC
Comment on attachment 558460 [details]
ebuild with added kernel config checks

--- gpm-1.20.7-r2.ebuild        2018-11-18 11:31:09.608095870 +0100
+++ -   2018-12-25 14:05:11.164637289 +0100
@@ -5,7 +5,7 @@

 EAPI=5

-inherit eutils systemd toolchain-funcs autotools multilib-minimal
+inherit eutils systemd toolchain-funcs autotools multilib-minimal linux-info

 DESCRIPTION="Console-based mouse driver"
 HOMEPAGE="https://www.nico.schottelius.org/software/gpm/"
@@ -24,6 +24,12 @@
        sys-apps/texinfo
        virtual/yacc"

+pkg_pretend() {
+       CONFIG_CHECK="INPUT_MOUSEDEV"
+       ERROR_INPUT_MOUSEDEV="CONFIG_INPUT_MOUSEDEV:\tis not set (required to expose mice for GPM)"
+       check_extra_config
+}
+
 src_prepare() {
        epatch "${FILESDIR}"/${P}-sysmacros.patch
Comment 2 Larry the Git Cow gentoo-dev 2021-04-11 10:40:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38220e8acee091c30031564564ec49f456d65bf9

commit 38220e8acee091c30031564564ec49f456d65bf9
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-04-11 10:40:26 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-04-11 10:40:26 +0000

    sys-libs/gpm: Port to EAPI 7
    
    Bug: https://bugs.gentoo.org/673700
    Bug: https://bugs.gentoo.org/781959
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-libs/gpm/gpm-1.20.7-r3.ebuild | 108 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
Comment 3 Kimmo Martimo 2021-06-15 18:29:31 UTC
Fixed, thanks!