Attempts to emerge dev-cpp/asio-0.3.8 with the 'examples' useflag turned on causes the emerge to fail. Reproducible: Always Steps to Reproduce: 1. USE="examples" emerge -vat =dev-cpp/asio-0.3.8 Actual Results: Stops the emerge stating that it was unable to clean: Follows is the error output * * ERROR: dev-cpp/asio-0.3.8 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_install * ebuild.sh, line 1138: Called qa_call 'src_install' * ebuild.sh, line 44: Called src_install * asio-0.3.8.ebuild, line 45: Called die * The specific snippet of code: * emake clean || die "emake clean failed" * The die message: * emake clean failed Expected Results: Package should install normally with no emerge problems. Works for =USE="examples" emerge -vat =dev-cpp/asio-0.3.7 This does not occur with the prior version 0.3.7. It seems as the example stuff is emerged with USE="test" for 3.3.8 and beyond. Changing the following will fix the problem, provided that USE="example" is not used for anything (instead examples seem to be loaded by USE="test"): 1. IUSE="doc examples ssl test" changed to IUSE="doc ssl test" 2. in src_install() remove the last if statement if use examples ; then # Get rid of the object files emake clean || die "emake clean failed" insinto /usr/share/doc/${PF} doins -r src/examples fi This bug can be worked around by either removing USE="examples" from /etc/make.conf or emerging with USE="-examples" emerge -vat =dev-cpp/asio-0.3.8
Please post the *topmost* build error as the message told you next time. For fixes, attach a unified diff.
Would you like both of those now? Or are those for future reference?
The examples USE-flag triggers the installation of the examples (rather the example's source code). when tests run, the examples get built as well and we therefore have to cleanup again to avoid the installation of object files. Is fixed together with the version bump to 0.3.9.