Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231809 - sys-apps/pcfclock-0.44-r3: Emerge fails with kernel 2.6.26
Summary: sys-apps/pcfclock-0.44-r3: Emerge fails with kernel 2.6.26
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-14 21:14 UTC by Robert Schedel
Modified: 2008-10-10 16:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for kernel 2.6.26 (pcfclock-0.44-kernel-2.6.26.diff,1.03 KB, patch)
2008-07-14 21:17 UTC, Robert Schedel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Schedel 2008-07-14 21:14:28 UTC
The ebuild does not compile when Linux kernel 2.6.26 is installed (currently, only the vanilla kernel 2.6.26 is available, but the gentoo variant will follow soon).

Reproducible: Always

Steps to Reproduce:
1. Have Linux kernel 2.6.26 installed.
2. emerge pcfclock

Actual Results:  
Compilation fails because Linux kernel 2.6.26 changed the device API again:

[...]
make[3]: Entering directory `/usr/src/linux-2.6.26'                             
  CC [M]  /var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux/pcfclock.o                                                                        
/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux/pcfclock.c: In function 'pcfclock_register':                                                
/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux/pcfclock.c:474: error: implicit declaration of function 'class_device_create'               
/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux/pcfclock.c: In function 'pcfclock_cleanup_module':                                          
/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux/pcfclock.c:601: error: implicit declaration of function 'class_device_destroy'              
make[4]: *** [/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux/pcfclock.o] Error 1                                                           
make[3]: *** [_module_/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux] Error 2                                                              
make[3]: Leaving directory `/usr/src/linux-2.6.26'                              
make[2]: *** [pcfclock.ko] Error 2                                              
make[2]: Leaving directory `/var/tmp/portage/sys-apps/pcfclock-0.44-r3/work/pcfclock-0.44/linux'                                                                
make[1]: *** [all-recursive] Error 1          
[...]                                  

Expected Results:  
emerge should succeed.

Linux kernel 2.6.26 changed the device API again: class_device_* have been removed.
Comment 1 Robert Schedel 2008-07-14 21:17:04 UTC
Created attachment 160386 [details, diff]
Patch for kernel 2.6.26

Attaching a proposed patch to make the ebuild compile against kernel 2.6.26.

This should be applied on top of "pcfclock-0.44-kernel-2.6.18.diff" in the ebuild (but you may also combine both).
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2008-07-14 22:54:16 UTC
patch looks sane to me. But I will combine it, so we have only one patch.
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2008-07-14 23:06:20 UTC
patch included in pcfclock-0.44-r4