The code has been altered by kernel devels in linux-2.6.7/include/asm-x86_64/unistd.h from #ifndef __ASSEMBLY__ to a one line && statement... this time including #ifdef __KERNEL in it, however there is no #endif /* __KERNEL__ */ at the end of the header file, I'm not sure if this is needed or not but I created a patch to do that. Reproducible: Always Steps to Reproduce: 1.emerge linux-headers-2.6.7 on a amd64 system. 2. 3. Actual Results: linux-headers-2.6.4-unistd-nptl-fix.patch fails because it cannot find the right code to patch. Expected Results: It shouldn't have failed. :) Patch created, however not sure if needed or not.
Created attachment 34145 [details, diff] Fixed patch Try implementing this patch into the current linux-headers-2.6.7.ebuild and see what happens and if it actually does what the original fix was supposed to do... My linux-headers compiled successfully however I don't know how this affects other apps that require use of these headers.
Actually, with the changes made in 2.6.7, no patch is necessary any longer. This should now be fixed in our CVS. Thanks.