Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203109 - dev-cpp/asio-0.3.8 USE="examples" stops build.
Summary: dev-cpp/asio-0.3.8 USE="examples" stops build.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-23 00:02 UTC by intelligent.nerd
Modified: 2007-12-24 07:44 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 intelligent.nerd 2007-12-23 00:02:39 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-23 00:10:14 UTC
Please post the *topmost* build error as the message told you next time. For fixes, attach a unified diff.
Comment 2 intelligent.nerd 2007-12-23 01:18:25 UTC
Would you like both of those now? Or are those for future reference?
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2007-12-24 07:44:23 UTC
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.