[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

ALSA .src.rpm and Phoebe beta kernel



http://videl.ics.hawaii.edu/~warren/temp/alsa-driver-0.9.0-0.rc7.fedora.1.src.rpm
This package is slightly modified from Matthias' latest alsa-driver package, with Gordon Messmer's CFLAGS changes.


This package can be compiled against a specified kernel and arch with the following command:

rpmbuild --rebuild --target ARCH \
alsa-driver-0.9.0-0.rc7.fedora.1.src.rpm \
--define 'kunamer kernel-(SMP-)VERSION'


Two questions
1) The build process relies on /boot/kernel.h for the arch, UP|SMP or bigmem status. /boot/kernel.h seems to be generated during boot. What is the proper way to modify the .src.rpm in order to be able to build within a clean chroot without installing and booting a specified kernel?


I'm thinking that I should generate a specific kernel.h depending on the kunamer value and --target arch, and edit the build process to use kernel.h somewhere in BUILD rather than /boot. Is this the cleanest way to implement this?


2) Some changes in Red Hat's 2.4.20 Rawhide kernel seems to cause ALSA to fail compilation. There are many warnings like this, I don't know how serious they are in nature:


/usr/src/linux-2.4.20-2.36/include/linux/sched.h:564:1: warning: "cpu_online" redefined
/usr/src/linux-2.4.20-2.36/include/linux/smp.h:87:1: warning: this is the location of the previous definition


The build finally fails each time at this point:

/usr/src/redhat/BUILD/alsa-driver-0.9.0rc7/include/adriver.h:292:1: warning: this is the location of the previous definition
In file included from ../alsa-kernel/core/init.c:29,
from init.c:2:
/usr/src/linux-2.4.20-2.36/include/linux/workqueue.h:42:1: warning: "INIT_WORK"
redefined
In file included from /usr/src/redhat/BUILD/alsa-driver-0.9.0rc7/include/sound/driver.h:43,
from ../alsa-kernel/core/init.c:22,
from init.c:2:
/usr/src/redhat/BUILD/alsa-driver-0.9.0rc7/include/adriver.h:287:1: warning: this is the location of the previous definition
make[1]: *** [init.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/alsa-driver-0.9.0rc7/acore'
make: *** [compile] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.90481 (%build)



Any ideas? Thanks, Warren Togami warren togami com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]