Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374893 - [PATCH] toolchain-funcs.eclass: add x86_64*freebsd* support to tc-arch-kernel
Summary: [PATCH] toolchain-funcs.eclass: add x86_64*freebsd* support to tc-arch-kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 23:10 UTC by Alexis Ballier
Modified: 2011-07-12 14:29 UTC (History)
0 users

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 Alexis Ballier gentoo-dev 2011-07-11 23:10:52 UTC
On FreeBSD, amd64's kernel dir is amd64, not x86 nor x86_64 like on linux, proposed patch to handle this case:

Index: toolchain-funcs.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v
retrieving revision 1.103
diff -u -B -r1.103 toolchain-funcs.eclass
--- toolchain-funcs.eclass	28 Oct 2010 04:16:27 -0000	1.103
+++ toolchain-funcs.eclass	11 Jul 2011 23:07:35 -0000
@@ -305,6 +305,7 @@
 						|| echo sparc
 					;;
 		vax*)		echo vax;;
+		x86_64*freebsd*) echo amd64;;
 		x86_64*)
 			# Starting with linux-2.6.24, the 'x86_64' and 'i386'
 			# trees have been unified into 'x86'.






This permits me to build a cross compiler. We rely on this on in some parts of sys-freebsd/freebsd-lib, some others are hackishly special cased for amd64, IMHO its much better to have this handled in the eclass.
Comment 1 SpanKY gentoo-dev 2011-07-12 02:34:08 UTC
looks fine ... feel free to commit
Comment 2 Alexis Ballier gentoo-dev 2011-07-12 14:29:48 UTC
(In reply to comment #1)
> looks fine ... feel free to commit

done, thanks