New version 0.7.1 of DHCPv6 implementation Dibbler has been released. Copying ebuild for 0.6.1 is fine.
Created attachment 159402 [details, diff] cross-compile fix If you copy the original ebuild and just change the version as the original poster stated you also have to apply this patch to the ebuild to make cross compilation possible :)
(In reply to comment #1) > Created an attachment (id=159402) [edit] > cross-compile fix > > If you copy the original ebuild and just change the version as the original > poster stated you also have to apply this patch to the ebuild to make cross > compilation possible :) > Does 0.6.1 support cross-compilation without this patch? Wouldn't be better to export CC and CXX? Actually, I enabled cross-compilation in upstream by accepting CC and CXX from enviroment. Isn't your patch gentoo-specific? What's official Gentoo guidlines about cross-compilation? Is it in lines with Make well-defined interface?
AFAIK one should always use the full compiler name as in host-gcc/g++ etc. and one shouldn't set CC/CXX by default because usually Makefiles set those on their own. And no i didn't check 0.6* for cross-compilation, I just tried to x-compile 0.7.1 yesterday and fixed that in my own repository, then found that bug here and thought i post this information :)
I think it's better to call "CC=$(tc-getCC) emake" from ebuild instead of patching Makefile. Otherwise you will need to patch all packages which don't use autoconf. Therefore the dibbler's Makefile uses CC?=gcc, which allows compiler redefinition from outside. The same thing happens with CFLAGS. Actually I have cross-compiled whole system and other packages for embedded MIPS router last year and I found out that exporting variables like CC and CC_FOR_BUILD is the only way how to enable cross-compilation without patching. (Unfortunately it did not solve everything and I had to patch a lot of sources due to other reasons). Of course I didn't do it by hand, I wrote a nice wrapper which queried the data using emerge --info with and without ROOT variable. So finally I issued command like "rbmerge EMERGE_OPTS ATOM" which behaves like ordinal emerge but the cross-compilation.
Kind of a 0day, but 0.7.2 is out.
Created attachment 165012 [details] Ebuild for 0.7.2 with crosscompile patch This is ebuild for version 0.7.2 including previous patch adding support for native cross-compilation.
Version 0.7.3 has been released. Important change is fix allowing compilation on glibc-2.8 (which is stable in Gentoo now).
Created attachment 187549 [details] Ebuild for version 0.7.3 This is ebuild for version 0.7.3. Cross-compile tweak included.
+ 25 Apr 2009; Patrick Lauer <patrick@gentoo.org> +dibbler-0.7.3.ebuild: + Bump to 0.7.3. Fixes #230173. Ebuild modifications by Petr Pisar.