Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241126 - sys-apps/pcfclock-0.44-r4 + kernel 2.6.27 -
Summary: sys-apps/pcfclock-0.44-r4 + kernel 2.6.27 -
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 16:00 UTC by Robert Schedel
Modified: 2008-10-26 23:38 UTC (History)
0 users

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


Attachments
Patch for kernel 2.6.27 (pcfclock-0.44-kernel-2.6.27.diff,4.94 KB, patch)
2008-10-10 16:04 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-10-10 16:00:14 UTC
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
[...]
Comment 1 Robert Schedel 2008-10-10 16:04:21 UTC
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.
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2008-10-26 23:38:12 UTC
new revision in portage. Thanks!