Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446202 - sys-fs/mtd-utils-1.5.0 does not respect env AR/CC/RANLIB
Summary: sys-fs/mtd-utils-1.5.0 does not respect env AR/CC/RANLIB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 01:55 UTC by Ambroz Bizjak
Modified: 2013-01-03 22:09 UTC (History)
3 users (show)

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


Attachments
build log (mtd-utils-log,2.96 KB, text/plain)
2012-12-06 01:56 UTC, Ambroz Bizjak
Details
mtd-utils-1.5.0.ebuild-cross-compile.patch (mtd-utils-1.5.0.ebuild-cross-compile.patch,535 bytes, patch)
2012-12-06 01:57 UTC, Ambroz Bizjak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ambroz Bizjak 2012-12-06 01:55:05 UTC
It appears that mtd-utils ignores CC.

This is a problem when cross-compiling using my "cross-emerge-ng" tool which sets CC to a wrapper script that calls the compiler with the "--sysroot" option. This allows building a complete system into a folder outside of /usr/CHOST. (more info at http://code.google.com/p/ambro-cross-overlay/ )

Reproducible: Always
Comment 1 Ambroz Bizjak 2012-12-06 01:56:11 UTC
Created attachment 331618 [details]
build log

The build fails because zlib.h is not found, because --sysroot is not being passed to the compiler, because CC is being ignored.
Comment 2 Ambroz Bizjak 2012-12-06 01:57:13 UTC
Created attachment 331620 [details, diff]
mtd-utils-1.5.0.ebuild-cross-compile.patch

Fixes passing CC using a make argument.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-06 04:01:14 UTC
Could you stop CCing random people OR at the very least give a good reason to do so, please. Thanks.
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2012-12-06 05:01:35 UTC
(In reply to comment #3)
> Could you stop CCing random people OR at the very least give a good reason
> to do so, please. Thanks.

we asked him to cc us, thanks.
Comment 5 SpanKY gentoo-dev 2013-01-03 22:04:48 UTC
code currently relies on $CHOST only
Comment 6 SpanKY gentoo-dev 2013-01-03 22:09:52 UTC
should be all set now in the tree; thanks for the report!

Commit message: Respect env AR/CC/RANLIB
http://sources.gentoo.org/sys-fs/mtd-utils/mtd-utils-1.5.0.ebuild?r1=1.5&r2=1.6
http://sources.gentoo.org/sys-fs/mtd-utils/mtd-utils-99999999.ebuild?r1=1.10&r2=1.11