From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-28558-garchives=archives.gentoo.org@gentoo.org>)
	id 1JAOWm-0007OW-TM
	for garchives@archives.gentoo.org; Thu, 03 Jan 2008 11:46:25 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.2/8.14.0) with SMTP id m03BjSwO002878;
	Thu, 3 Jan 2008 11:45:28 GMT
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170])
	by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id m03BhLEe032675
	for <gentoo-dev@lists.gentoo.org>; Thu, 3 Jan 2008 11:43:21 GMT
Received: by ug-out-1314.google.com with SMTP id j3so3008647ugf.49
        for <gentoo-dev@lists.gentoo.org>; Thu, 03 Jan 2008 03:43:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
        bh=zXvK/rbubT9Z9BHGxFLCDzqKe9v/cED5LSmhu0awspE=;
        b=Sdt8K2PBs6ITKkybME63l0ngUNyFVKFSc+/bn5Qi4+NLkb6qDf7q+dg/Hd0b0F6ZBGD/mGY7INuHD309FplLrACLzbK3/jeKqT+/H7WWdHAMmNrJd56fRDarsmv19MMzSIPOglfzd2dZLllSvXV7EhwJEuzZnIsqHoKAb017ehQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
        b=qmsixVYSNxBHvxJ6PRN8dc8j0hs48ms4Tlv+zLKUAd8d4BB4MN7ItL5FinXILDeL9Nh2H4M5hRMCLLrkEvYIMUIdTLtM5SpNHGKjoQ5aGufa0mwdT9gqFxpdF4B2tcYRRSPF8/DyX+4FUytTvnCv77VYYkObzvfK+mF66au29o0=
Received: by 10.67.116.7 with SMTP id t7mr4339378ugm.38.1199360601471;
        Thu, 03 Jan 2008 03:43:21 -0800 (PST)
Received: by 10.67.117.17 with HTTP; Thu, 3 Jan 2008 03:43:21 -0800 (PST)
Message-ID: <9e0cf0bf0801030343l2a8b19a1va06abe1680e66cee@mail.gmail.com>
Date: Thu, 3 Jan 2008 13:43:21 +0200
From: "Alon Bar-Lev" <alonbl@gentoo.org>
Sender: alon.barlev@gmail.com
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] OpenRC available for testing.
In-Reply-To: <1199353836.1574.16.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <1199191260.2786.9.camel@uberpc.marples.name>
	 <9e0cf0bf0801030055u3564058fy7f9595d4df86674a@mail.gmail.com>
	 <9e0cf0bf0801030058i7d1819y5d1b07698589993a@mail.gmail.com>
	 <1199353836.1574.16.camel@localhost>
X-Google-Sender-Auth: 327b73be3ea704ca
X-Archives-Salt: a541f550-d6a5-4404-9c16-0969019a3020
X-Archives-Hash: be33b136253313538ad5eae60c442713

On 1/3/08, Roy Marples <roy@marples.name> wrote:
> On Thu, 2008-01-03 at 10:58 +0200, Alon Bar-Lev wrote:
> > At: default.mk, the  _SUBDIR loop is somehow incorrect, as it will not
> > pass subdir make result to rule.
> > So if rule fails the build still considered a success.
> >
> > make[1]: *** [start-stop-daemon.o] Error 1
> > make[1]: *** Waiting for unfinished jobs....
> > make[1]: Leaving directory
> > `/var/tmp/portage/sys-apps/openrc-9999/work/openrc-9999/src'
> > >>> Source compiled.
>
> What version of gnu make?
> What MAKEOPTS do you have set?
> Does it work outside of the ebuild?

I use sys-devel/make-3.81
With MAKEOPTS="-j2"

I think the issue is that the for loop returns true...

Take the following example:
all:
        @for a in a b c; do \
                echo $$a; \
                if [ $$a == b ]; then \
                        echo FAIL; \
                        false; \
                fi; \
        done

And the output is:

$ make
a
b
FAIL
c

And success!

Alon.
-- 
gentoo-dev@gentoo.org mailing list