The ebuild does not compile when Linux kernel 2.6.27 is installed (currently, only the vanilla kernel 2.6.27 is available, but the gentoo variant will follow soon). Reproducible: Always Steps to Reproduce: 1. Have Linux kernel 2.6.27 installed. 2. emerge pcfclock Actual Results: Emerge fails. Two reasons: 1. Header file "asm/semaphore.h" was obsoleted for some time already, as stub to linux/semaphore.h. Finally, in 2.6.27 it has been removed completely. 2. The device API changed again (additional parameter). This is more fatal than 1 because it is only visible as compiler warning, but leads to wrong pointer arg assignments! Expected Results: emerge should succeed (and compile module correctly). [...] make[2]: Entering directory `/var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux' make -C /usr/src/linux M=/var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux modules make[3]: Entering directory `/usr/src/linux-2.6.27' CC [M] /var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux/pcfclock.o /var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux/pcfclock.c:66:27: error: asm/semaphore.h: No such file or directory /var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux/pcfclock.c: In function 'pcfclock_register': /var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux/pcfclock.c:480: warning: passing argument 5 of 'device_create' makes pointer from integer without a cast make[4]: *** [/var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux/pcfclock.o] Error 1 make[3]: *** [_module_/var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux] Error 2 make[3]: Leaving directory `/usr/src/linux-2.6.27' make[2]: *** [pcfclock.ko] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44/linux' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/pcfclock-0.44-r4/work/pcfclock-0.44' make: *** [all] Error 2 * * ERROR: sys-apps/pcfclock-0.44-r4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3226: Called linux-mod_src_compile * environment, line 2490: Called die [...]
Created attachment 167882 [details, diff] Patch for kernel 2.6.27 Attaching a proposed patch to make the ebuild also compile against kernel 2.6.27 (and earlier). It should replace pcfclock-0.44-kernel-2.6.26.diff in the ebuild.
new revision in portage. Thanks!