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

Bug 29230

Summary: Links with USE=fbcon depends on gpm
Product: Gentoo Linux Reporter: Owen Gunden <ogunden>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Owen Gunden 2003-09-20 16:46:28 UTC
The following line in the links ebuild (both links-2.1_pre9 and links-2.1_pre11):

    fbcon? ( >=media-libs/libpng-1.2.1 sys-libs/gpm )

seems to indicate that gpm is required when the framebuffer is used, but this is
not so.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 AMD Athlon(tm) XP 1800+
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg
ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml
alsa gdbm berkdb slang readline tetex aalib bonobo svga tcltk java guile ruby X
sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl
mozilla cdr apache2 fbcon gtk2 imap maildir mozcalendar moznocompose moznoirc
mozsvg mozxmlterm plotutils ppds samba scanner usb -oss -apm -arts -gpm -kde
-nls -qt"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-09-21 19:20:24 UTC
you're the nth person to say so, so it is done
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-10-29 01:59:54 UTC
gpm is needed when compiling links with framebuffer support. The
configure script will only allow the framebuffer graphics driver
to be built if all of the following header files are present:


	/usr/include/linux/fb.h 
        /usr/include/linux/kd.h 
        /usr/include/linux/vt.h 
        /usr/include/sys/mman.h 
        /usr/include/sys/ioctl.h 
        /usr/include/gpm.h	<-- this is provided by sys-apps/gpm


And of course the framebuffer source file itself needs the gpm.h
header file:


	/* framebuffer.c
	 * Linux framebuffer code
	 * (c) 2002 Petr 'Brain' Kulhavy
	 * This file is a part of the Links program, released under GPL.
	 */

	#include "cfg.h"

	#ifdef GRDRV_FB

	#define USE_GPM_DX

	/* #define FB_DEBUG */
	/* #define SC_DEBUG */

	#if defined(FB_DEBUG) || defined(SC_DEBUG)
	#define MESSAGE(a) fprintf(stderr,"%s",a);
	#endif

	#ifdef TEXT
	#undef TEXT
	#endif

	#include "links.h"

	#include <gpm.h>	<-- once again there's that gpm.h

	.....


gpm has been re-added as a dependency of fbcon.