The following snippet should be moved away from pkg_setup (pkg_pretend + MERGE_TYPE or src_prepare or pkg_setup + MERGE_TYPE [don't know if this is allowed, but I guess so]): if use winbind && [[ $(tc-getCC)$ == *gcc* ]] && [[ $(gcc-major-version)$(gcc-minor-version) -lt 43 ]] then eerror "It is a known issue that ${P} will not build with " eerror "winbind use flag enabled when using gcc < 4.3 ." eerror "Please use at least the latest stable gcc version." die "Using sys-devel/gcc < 4.3 with winbind use flag." fi For the following reasons: - on binpkgs systems there is no need to bug GCC (pkg_setup is shared between bin and src) - on binpkgs systems gcc could have been removed (there are split ebuilds in sabayon overlay allowing this) Reproducible: Always
What is it your proposed fix?
Move it to pkg_pretend.
I hit the issue on one of my servers with old gcc, i took the liberty of fixing this in cvs. Hope you won't mind.