Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68179 - slmodem-2.9.10-r1 will not build with USE=-alsa (w/fix)
Summary: slmodem-2.9.10-r1 will not build with USE=-alsa (w/fix)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 10:26 UTC by Ryan Finnie
Modified: 2004-10-24 13:53 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 Ryan Finnie 2004-10-19 10:26:27 UTC
If the alsa USE flag is not used, slmodem-2.9.10-r1 will not build.  This is due to a conditional "export SUPPORT_ALSA=0" in src_compile() if alsa is not used.  Instead, the behavior in slmodem's modem/Makefile expects SUPPORT_ALSA to be unset rather than 0.  Compilation works if you change "export SUPPORT_ALSA=0" to "unset ALSA":

src_compile() {
        if use alsa
        then
                export SUPPORT_ALSA=1
        else
                unset SUPPORT_ALSA
        fi


Reproducible: Always
Steps to Reproduce:
USE=-alsa emerge =net-dialup/slmodem-2.9.10-r1

Actual Results:  
flexo ~ # USE=-alsa emerge =net-dialup/slmodem-2.9.10-r1
Calculating dependencies ...done!
>>> emerge (1 of 1) net-dialup/slmodem-2.9.10-r1 to /
>>> md5 src_uri ;-) slmodem-2.9.10.tar.gz
>>> Unpacking source...
>>> Unpacking slmodem-2.9.10.tar.gz to /var/tmp/portage/slmodem-2.9.10-r1/work
>>> Source unpacked.
 * /usr/src/linux is a symbolic link
 * Determining the real directory of the Linux kernel source code
 *
 * The kernel Makefile says that this is a 2.6.8-gentoo-r3-5 kernel
 * but the source is in a directory for a 2.6.8-gentoo-r3 kernel.
 *
 * This goes against the recommended Gentoo naming convention.
 * Please rename your source directory to 'linux-2.6.8-gentoo-r3-5'
 *
 * Building for Linux 2.6.8-gentoo-r3-5 found in /usr/src/linux
make -C modem all
make -C drivers KERNEL_DIR=//usr/src/linux
make[1]: Entering directory
`/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/modem'
rebuild profile...
make[1]: *** No rule to make target `-lasound', needed by `slmodemd'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/modem'
make[1]: Entering directory
`/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers'
gcc -I//usr/src/linux/include -o kernel-ver kernel-ver.c
make: *** [modem] Error 2
make: *** Waiting for unfinished jobs....
make all KERNEL_VER=2.6.8-gentoo-r3-5
make[2]: Entering directory
`/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers'
make modules -C //usr/src/linux
M=/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers
make[3]: Entering directory `/usr/src/linux-2.6.8-gentoo-r3'
  CC [M] 
/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/amrmo_init.o
  CC [M] 
/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/sysdep_amr.o
  CC [M]  /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/st7554.o
  LD [M]  /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/slamr.o
  LD [M]  /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/slusb.o
  Building modules, stage 2.
  MODPOST
  CC      /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/slamr.mod.o
  CC      /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/slusb.mod.o
  LD [M]  /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/slamr.ko
  LD [M]  /var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers/slusb.ko
make[3]: Leaving directory `/usr/src/linux-2.6.8-gentoo-r3'
make[2]: Leaving directory
`/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers'
make[1]: Leaving directory
`/var/tmp/portage/slmodem-2.9.10-r1/work/slmodem-2.9.10/drivers'

!!! ERROR: net-dialup/slmodem-2.9.10-r1 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! Failed to compile driver



Expected Results:  
success
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-10-24 13:53:04 UTC
fixed - thankyou.