Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421173 - games-action/teeworlds-0.6.1 fails to install with `-dedicated` USE due to missing teeworlds_srv binary.
Summary: games-action/teeworlds-0.6.1 fails to install with `-dedicated` USE due to mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 419343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-14 22:40 UTC by Coacher
Modified: 2016-04-14 14:38 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,7.27 KB, text/plain)
2012-06-14 22:46 UTC, Coacher
Details
emerge --info (info,5.27 KB, text/plain)
2012-06-14 22:46 UTC, Coacher
Details
emerge -pqv (pqv,71 bytes, text/plain)
2012-06-14 22:46 UTC, Coacher
Details
Proposed patch. (421173.patch,628 bytes, patch)
2012-06-15 15:50 UTC, Coacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2012-06-14 22:40:24 UTC
After successfull build teeworlds fails to install with the following output:

>>> Install teeworlds-0.6.1 into /var/tmp/portage/games-action/teeworlds-0.6.1/image/ category games-action
!!! dobin: teeworlds_srv does not exist
dobin failed
 * ERROR: games-action/teeworlds-0.6.1 failed (install phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_install
 *   environment, line 4934:  Called die
 * The specific snippet of code:
 *           dogamesbin ${PN}_srv || die;
 *
 * If you need support, post the output of 'emerge --info =games-action/teeworlds-0.6.1',
 * the complete build log and the output of 'emerge -pqv =games-action/teeworlds-0.6.1'.
 * The complete build log is located at '/var/tmp/portage/games-action/teeworlds-0.6.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-action/teeworlds-0.6.1/temp/environment'.
 * S: '/var/tmp/portage/games-action/teeworlds-0.6.1/work/teeworlds-b177-r50edfd37-source'
 * QA Notice: file does not exist:
 *
 *      dobin: teeworlds_srv does not exist

The error looks logical to me since I build teeworlds without server support and shouldn't care about teeworlds_srv binary.

Reproducible: Always

Steps to Reproduce:
1. Install teeworlds-0.6.1
Comment 1 Coacher 2012-06-14 22:46:18 UTC
Created attachment 315353 [details]
build.log
Comment 2 Coacher 2012-06-14 22:46:34 UTC
Created attachment 315355 [details]
emerge --info
Comment 3 Coacher 2012-06-14 22:46:47 UTC
Created attachment 315357 [details]
emerge -pqv
Comment 4 Coacher 2012-06-15 15:33:59 UTC
Well, after some testing I've located the exact problem.
It is about `jobs` variable in the ebuild: on my machine it is empty and `myopt` contains " server_release client_release" as it should be.

The problem is bam treating " server_release" as parameter for -j option since `jobs` is empty and silently ignores incorrect input for this option. This results in building only "client_release" because server_release was eaten by -j.

Ebuild was ok, but maintainer changed it notably (see bug #335148) without revbump! Too bad. I've hit this bug only during world rebuild. Don't change ebuilds without revbumping, please.

Will try to fix it and report later.
Comment 5 Coacher 2012-06-15 15:38:41 UTC
Workaround is simple: specify MAKEOPTS in make.conf (I have MAKEFLAGS, not MAKEOPTS) or add additional check in ebuild.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2012-06-15 15:41:45 UTC
made it use makeopts_jobs
Comment 7 Coacher 2012-06-15 15:50:31 UTC
Created attachment 315423 [details, diff]
Proposed patch.

Simple patch for teeworlds-0.6.1 ebuild. Works for me.
Comment 8 Coacher 2012-06-15 15:51:08 UTC
(In reply to comment #6)
> made it use makeopts_jobs

Ok. Saw your comment too late.
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2012-06-16 13:33:46 UTC
*** Bug 419343 has been marked as a duplicate of this bug. ***