Trying to get this ebuild into a usable state on Alpha. Appears to be a problem with make or bash. [ operator complaining about too many arguments. Perhaps an extra space somewhere? Full transcript of error available at URL cited. Appears to compile, but not install.
Created attachment 19206 [details] Emerge transcript
Can you try i2c 2.7.0 // i2c 2.6.5 to see whether this is an upstream problem?
Created attachment 19221 [details] emerge debug output [unGZipped]
Created attachment 19222 [details] i2c build success - errors still happening, though.
2.8.0, 2.7.0, and 2.6.5 all produce similar errors. 2.6.5 manages to soldier on and actually install, though. I have attached verbose log of successfull build of 2.6.5.
Try sticking this into i2c-velleman.c :- /* $Id: i2c-velleman.c,v ... +#include <asm/params.h> #include <linux/kernel.h> #include <linux/ioport.h> #include <linux/module.h> ... and do a manual compile ...
Works with one small correction - param, not params. Builds ok. +#include <asm/param.h> #include <linux/kernel.h> #include <linux/ioport.h> #include <linux/module.h> I unpacked the ebuild and ran 'make' myself. I touched '.compiled'. Tell me how to merge this in and I'll test it out.
Created attachment 19228 [details, diff] Patch to i2c-2.8.0.ebuild
Created attachment 19229 [details, diff] files/i2c-2.8.0-alphaCompile.patch
OK: Patch to the i2c ebuild attached, and stick the "i2c-2.8.0-alphaCompile.patch" into your sys-apps/i2c/files directory...
Patch has accidental CR in it. There is no line three. Did you forget nano -w ? PATCH COMMAND: patch -p4 < /usr/portage/sys-apps/i2c/files/i2c-2.8.0-alphaCompile.patch ======================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3
Looks fine here... ? Line three is @@ -20,6 +20,8 @@
My mistake. Here is the output, though. do we need to be in ../kernel when we patch?
Yes:- please change to "cd kernel; epatch ${FILESDIR}/i2c-2.8.0-alphaCompile.patch; cd .."
Ebuild now works for me. I have notified the maintainers of our fix. This ebuild puts the compiled modules into drivers/i2c/ , Right on top of the i2c modules build by the stock kernel. Version 2.6.5 put them in misc/ - I am waiting on a reply from the i2c maintainers regarding the canonical location. We should add this patch to the 2.7.0 ebuild also. Can you add the ~alpha flag to these, as well?
In CVS. > We should add this patch to the 2.7.0 ebuild also. Done. > Can you add the ~alpha flag to these, as well? Done.
fix is mainlined in 2.8.1. No patch neccesary.