Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513370 - x11-libs/motif-2.3.4-r2 tc-getBUILD_CC picks up crossdev toolchain
Summary: x11-libs/motif-2.3.4-r2 tc-getBUILD_CC picks up crossdev toolchain
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 18:30 UTC by Julian Ospald
Modified: 2015-01-12 14:43 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 Julian Ospald 2014-06-15 18:30:18 UTC
motif links against /usr/lib/libfl.a which is part of sys-devel/flex

the multilib version of sys-devel/flex is not even in stable arch
Comment 1 Ulrich Müller gentoo-dev 2014-06-15 18:47:03 UTC
libfl.a is only needed for the wmluiltok tool which is compiled on the build platform. Therefore we don't need multilib flex.
Comment 2 Julian Ospald 2014-06-15 19:15:59 UTC
seems I got trapped by crossdev breaking multilib again
Comment 3 Julian Ospald 2014-06-15 19:27:37 UTC
it seems to pick up the crossdev CC, not just PKG_CONFIG and I can't find a workaround other than temporarily unmerging my x86 crossdev toolchain
Comment 4 Julian Ospald 2014-06-15 19:37:46 UTC

*** This bug has been marked as a duplicate of bug 500338 ***
Comment 5 Ulrich Müller gentoo-dev 2014-06-15 20:21:29 UTC
(In reply to Julian Ospald (hasufell) from comment #3)
> it seems to pick up the crossdev CC, not just PKG_CONFIG and I can't find a
> workaround other than temporarily unmerging my x86 crossdev toolchain

Does moving the first emake into a conditional help? That is, src_compile like this:

multilib_src_compile() {
	if ! multilib_is_native_abi; then
		emake -C tools/wml CC="$(tc-getBUILD_CC)" LIBS="-lfl" wmluiltok
	fi
	emake
}
Comment 6 Ulrich Müller gentoo-dev 2015-01-12 14:43:55 UTC
This should be fixed in -r3. Please test.