Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230173 - net-misc/dibbler-0.7.3 version bump
Summary: net-misc/dibbler-0.7.3 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Guy Martin (RETIRED)
URL: http://klub.com.pl/dhcpv6/#NEWS
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 12:31 UTC by Petr Pisar
Modified: 2009-04-25 11:22 UTC (History)
1 user (show)

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


Attachments
cross-compile fix (dibbler-0.7.1.ebuild.patch,748 bytes, patch)
2008-07-03 11:54 UTC, impulze
Details | Diff
Ebuild for 0.7.2 with crosscompile patch (dibbler-0.7.2.ebuild,1.45 KB, text/plain)
2008-09-09 14:46 UTC, Petr Pisar
Details
Ebuild for version 0.7.3 (dibbler-0.7.3.ebuild,1.51 KB, text/plain)
2009-04-07 11:16 UTC, Petr Pisar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2008-06-30 12:31:16 UTC
New version 0.7.1 of DHCPv6 implementation Dibbler has been released. Copying ebuild for 0.6.1 is fine.
Comment 1 impulze 2008-07-03 11:54:11 UTC
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 :)
Comment 2 Petr Pisar 2008-07-03 12:09:46 UTC
(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?
Comment 3 impulze 2008-07-04 12:45:14 UTC
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 :)
Comment 4 Petr Pisar 2008-07-05 17:27:27 UTC
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.
Comment 5 Philipp Riegger 2008-09-07 10:12:54 UTC
Kind of a 0day, but 0.7.2 is out.
Comment 6 Petr Pisar 2008-09-09 14:46:20 UTC
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.
Comment 7 Petr Pisar 2009-04-07 11:11:53 UTC
Version 0.7.3 has been released.

Important change is fix allowing compilation on glibc-2.8 (which is stable in Gentoo now).
Comment 8 Petr Pisar 2009-04-07 11:16:56 UTC
Created attachment 187549 [details]
Ebuild for version 0.7.3

This is ebuild for version 0.7.3. Cross-compile tweak included.
Comment 9 Patrick Lauer gentoo-dev 2009-04-25 11:22:46 UTC
+  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.