Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 121635

Summary: detect GNU/kFreeBSD as ELF platform
Product: Gentoo Linux Reporter: Robert Millan <rmh>
Component: EclassesAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED INVALID    
Severity: normal CC: toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: GNU/kFreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---

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