Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128306 - sys-libs/timezone-data fails on cross-compilation
Summary: sys-libs/timezone-data fails on cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-31 15:47 UTC by Josu López Fernández
Modified: 2006-04-18 21:53 UTC (History)
0 users

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


Attachments
timezone-data-2006a.ebuild.patch (timezone-data-2006a.patch,768 bytes, patch)
2006-03-31 15:49 UTC, Josu López Fernández
Details | Diff
timezone-data-makefile-cc.patch (timezone-data-makefile-cc.patch,392 bytes, patch)
2006-04-01 05:24 UTC, Josu López Fernández
Details | Diff
timezone-data-2006a.ebuild.patch to export CC (timezone-data-2006a.ebuild.patch,774 bytes, patch)
2006-04-17 06:55 UTC, Josu López Fernández
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Josu López Fernández 2006-03-31 15:47:53 UTC
Hi!
sys-libs/timezone-data fails on cross-compilation, because in the Makefile the compiler is simply 'cc', instead of '${CHOST}-gcc'. This causes a problem on cross-compilation, in my case between x86 and amd64 plataforms. I attach a patch for timezone-data-2006a.ebuild which fixes that, and in timezone-data-2006b.ebuild the fix is the same. It works to me with both versions.

Good bye!
Comment 1 Josu López Fernández 2006-03-31 15:49:41 UTC
Created attachment 83572 [details, diff]
timezone-data-2006a.ebuild.patch
Comment 2 SpanKY gentoo-dev 2006-03-31 17:15:33 UTC
Comment on attachment 83572 [details, diff]
timezone-data-2006a.ebuild.patch

no, better to have makefile respect CC and do `tc-export CC`
Comment 3 Josu López Fernández 2006-04-01 05:23:46 UTC
Ok, I think that now it is ok. I have changed one line on the Makefile previously patched with timezone-data-2005n-makefile.patch, and applying this patch in the ebuild with epatch works well. I attach the patch for the Makefile.
Comment 4 Josu López Fernández 2006-04-01 05:24:54 UTC
Created attachment 83611 [details, diff]
timezone-data-makefile-cc.patch
Comment 5 SpanKY gentoo-dev 2006-04-15 23:19:54 UTC
thanks, added your update to cvs
Comment 6 Josu López Fernández 2006-04-17 06:53:49 UTC
Hello!
The other day, when I do the patch for the Makefile, the cross-compilation of timezone-data has worked for me, but yesterday, when I have tryed with the fixed version of portage, it doesn't work, CC is still defined as 'cc'. I think that it was my fault, because the other day I was trying to fix with 'tc-export CC', but I don't attach a patch for the ebuild because I thought that it wasn't needed. To work well, CC must be exported in the enviroment, so, here I attach a patch to the ebuild, which with the new Makefile patch works very well.

Sorry for fault.

Good bye!
Comment 7 Josu López Fernández 2006-04-17 06:55:08 UTC
Created attachment 84832 [details, diff]
timezone-data-2006a.ebuild.patch to export CC
Comment 8 SpanKY gentoo-dev 2006-04-18 21:53:40 UTC
fixed in cvs, thanks