Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171525 - [patch] dev-embedded/avr-libc-1.4.5-r1
Summary: [patch] dev-embedded/avr-libc-1.4.5-r1
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gustavo Zacarias (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 06:39 UTC by Mike Lundy
Modified: 2007-07-15 10:24 UTC (History)
0 users

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


Attachments
dev-embedded/avr-libc-1.4.5-r1.ebuild (avr-libc-1.4.5-r1.ebuild,2.34 KB, text/plain)
2007-03-20 06:40 UTC, Mike Lundy
Details
diff between -r0 and -r1 (avr-libc-ebuild.diff,2.26 KB, patch)
2007-03-20 06:48 UTC, Mike Lundy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lundy 2007-03-20 06:39:29 UTC
avr-libc assumes that the host tuple will be avr (as in avr-gcc, avr-ld, etc). It's common in the avr community, but it's not really correct (should be avr-elf or the like).

I've revised the ebuild to add support for the correct case without removing support for the old method.

Reproducible: Always

Steps to Reproduce:
Comment 1 Mike Lundy 2007-03-20 06:40:20 UTC
Created attachment 113833 [details]
dev-embedded/avr-libc-1.4.5-r1.ebuild

The new ebuild
Comment 2 Mike Lundy 2007-03-20 06:48:47 UTC
Created attachment 113834 [details, diff]
diff between -r0 and -r1

a diff for easy comparison and application
Comment 3 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-13 12:47:31 UTC
What's the reasoning behind this other than "i wanna use my own gcc instead of the one built with crossdev"? (which is the path we recommend for cross toolchains).
Comment 4 Mike Lundy 2007-07-13 14:07:21 UTC
"avr" is not a tuple, regardless of the fact that crossdev allows it to be built like that. The fact that crossdev needs a "special target" in order to do so illustrates my point. If people want to use it that way, that's fine, but the ebuild should support the correct use.
Comment 5 Gustavo Zacarias (RETIRED) gentoo-dev 2007-07-13 14:15:54 UTC
Sorry but no.
I don't wanna get more bugs for the silly uses some user will make of this and thus get bugs, my time is already lacking.
Also avr isn't supposed to work in a standard gnu fashion with a standard libc anyway.
Comment 6 Mike Lundy 2007-07-15 10:24:41 UTC
CTARGET is the community-wide standard for building cross-compilers. It's also the gentoo-standard way to do it. Every gcc-based cross-compiler I've used has been named correctly, even platforms like the ppc cores inside virtex-4 LX series, and coldfire chips. AVR is the only aberration. I corrected this, while still maintaining backwards-compatibility with the old, incorrect method. In addition, I fixed the stupidity where the ebuild errors out if it cannot find gcc instead of properly DEPENDing on it. This patch is /correct/, and will cause less breakage that the current situation.

But it's up to you, obviously. This can join my ever-growing list of ignored patches in my overlay.