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

Bug 99445

Summary: vkeybd-0.1.15.ebuild doesn't build with LADCCA USE flag
Product: Gentoo Linux Reporter: Joe Button <gentoobugzilla>
Component: New packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 85914    

Description Joe Button 2005-07-18 10:11:36 UTC
as per summary, pretty much.

Same problem as the inexplicably closed http://bugs.gentoo.org/show_bug.cgi?id=85914

Reproducible: Always
Steps to Reproduce:
1.USE=ladcca emerge -vp =vkeybd-0.1.15
Actual Results:  
...
cc -o vkeybd vkb.o vkb_device.o oper_awe.o oper_midi.o oper_alsa.o -ltk8.4
-ltcl8.4 -L/usr/X11R6/lib -lX11 -ldl -lasound -lm
vkb.o(.text+0x19): In function `main':
: undefined reference to `cca_extract_args'
oper_alsa.o(.text+0x1fb): In function `seq_open':
: undefined reference to `cca_init'
oper_alsa.o(.text+0x20c): In function `seq_open':
: undefined reference to `cca_server_connected'
oper_alsa.o(.text+0x21c): In function `seq_open':
: undefined reference to `cca_event_new_with_type'
oper_alsa.o(.text+0x25a): In function `seq_open':
: undefined reference to `cca_event_set_string'
oper_alsa.o(.text+0x26b): In function `seq_open':
: undefined reference to `cca_send_event'
oper_alsa.o(.text+0x343): In function `seq_open':
: undefined reference to `cca_server_connected'
collect2: ld returned 1 exit status
make: *** [vkeybd] Error 1



This seems to happen because vkeybd requires hacking the Makefile to tell it to
use ladcca. Putting this line in src_compile() fixed the problem for me:

use ladcca && sed -i "s/USE_LADCCA *=.*$/USE_LADCCA = 1/" ${S}/Makefile || \
        die "Error altering Makefile"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-18 10:20:56 UTC
I'll reopen the original bug
Comment 2 Frank van de Pol (RETIRED) gentoo-dev 2005-07-18 11:00:19 UTC
Hi Joe, thanks for your fix! This indeed solves the problem with the Makefile. 
I just committed it to portage cvs as vkeybd-0.1.15-r1.