In a nutshell: * running make clean... ... make -C /var/tmp/portage/net-misc/asterisk-1.6.2.0/image//usr/src/asterisk-1.6.2 .0 clean /bin/sh: +make: command not found I shall attach a full build.log. Intially, MAKEOPTS="-j5" was defined but I have confirmed that the same error occurs in its absence. Reversing out "asterisk-1.6.1.12-parallel-make-v2.patch" allowed it to build without error. I shall also CC in the owner of the box on which this problem was realised.
Created attachment 216626 [details] build.log
The plot thickens. Federico Santulli, who originally brought the bug to my attention, proceeded to re-work the parallel-make patch. However, even after the patch had been updated and fixed, I soon discovered that the make clean phase was still failing (that's at line #344 of the current ebuild). It then ocurred to me that redirecting the output of the statement to /dev/null was not particularly helpful, so I removed the redirection in order to obtain a detailed error instead of a generic 'exception'. That's when the penny dropped. To summarise: 1) The corrected patch is needed to repair the issue noted in Comment 1. 2) Even then, asterisk will steadfastly refuse to make anything at all unless the "makeopts" file generated by the existing build is removed. If condition (2) is not satisfied, this is the result: make: Entering directory `/usr/src/asterisk-1.6.2.0' **** **** The configure script must be executed before running 'make'. **** Please run "./configure". **** make: *** [makeopts] Error 1 make: Leaving directory `/usr/src/asterisk-1.6.2.0' Therefore, we need to rm "${D}"/usr/src/${PF}/makeopts beforehand. Now, I'm also wondering if there is any point in using emake for this particular step. Although it does not appear to cause a problem once the aforementioned fixes have been applied, I'm not entirely sure that it gains us anything either. Federico, would you be so kind as to attach the required patch to this bug?
Created attachment 216877 [details, diff] Fixed parallel Make Patch over 1.6.2.0 sources Here is the patch. I don't want to forget credits to flameeyes for his help on this!
+*asterisk-1.6.2.1 (19 Jan 2010) + + 19 Jan 2010; <chainsaw@gentoo.org> +asterisk-1.6.2.1.ebuild, + +files/1.6.2/asterisk-1.6.2.1-parallel-make.patch: + Version bump, upstream bugfix release. New & improved parallel make fixes + by Federico "Freddy" Santulli and Diego E. "FlameEyes" Pettenò close bug + #300832. Warn about SIP (NAT) connection tracking as suggested by Jaco + Kroon in bug #300644. Thanks also to Kerin "kerframil" Miller for bug + triage.