Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121635 - detect GNU/kFreeBSD as ELF platform
Summary: detect GNU/kFreeBSD as ELF platform
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All GNU/kFreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-05 01:17 UTC by Robert Millan
Modified: 2006-02-05 12:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Millan 2006-02-05 01:17:10 UTC
This patch makes binutils eclass detect GNU/kFreeBSD (and any other Glibc system) as ELF platform.

(I've noticed bug 57406.  Note that this one is unrelated to that)

--- /usr/portage/eclass/toolchain-binutils.eclass.old   2006-02-05 09:17:59 +0000
+++ /usr/portage/eclass/toolchain-binutils.eclass       2006-02-05 09:22:41 +0000
@@ -183,7 +183,7 @@
        find . -name '*.1' -a -size 0 | xargs rm -f

        # elf2flt only works on some arches / targets
-       if [[ -n ${ELF2FLT_VER} ]] && [[ ${CTARGET} == *linux* || ${CTARGET} == *-elf* ]] ; then
+       if [[ -n ${ELF2FLT_VER} ]] && [[ ${CTARGET} == *linux* || ${CTARGET} == *-elf* || ${CTARGET} == *-gnu* ]] ; then
                cd "${WORKDIR}"/elf2flt-${ELF2FLT_VER}

                local x supported_arches=$(sed -n '/defined(TARGET_/{s:^.*TARGET_::;s:)::;p}' elf2flt.c | sort -u)
Comment 1 SpanKY gentoo-dev 2006-02-05 12:58:18 UTC
uhh i dont think you understand what that code is for

try reading http://www.beyondlogic.org/uClinux/bflt.htm