From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp484.redcondor.net (smtp484.redcondor.net [208.80.204.84]) by mail.openembedded.org (Postfix) with ESMTP id 1FBFE6013D for ; Fri, 23 Oct 2015 12:02:20 +0000 (UTC) Received: from astoria.ccjclearline.com ([64.235.106.9]) by smtp484.redcondor.net ({c48374e7-08df-40d9-a0de-96cc9883a037}) via TCP (outbound) with ESMTPS id 20151023120220099_0484 for ; Fri, 23 Oct 2015 12:02:20 +0000 X-RC-FROM: X-RC-RCPT: Received: from [173.38.117.71] (port=43520 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1Zpb3o-00087h-09 for openembedded-core@lists.openembedded.org; Fri, 23 Oct 2015 08:03:04 -0400 Date: Fri, 23 Oct 2015 08:02:11 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost To: OE Core mailing list Message-ID: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 X-MAG-OUTBOUND: ccj.redcondor.net@64.235.106.9/32 Subject: why does sysfsutils-2.1.0.bb set S = "${WORKDIR}/sysfsutils-${PV}"? X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 12:02:22 -0000 Content-Type: text/plain; charset=US-ASCII side note: the first in a small set of posts where i simply want to clarify minor oddities i run across in oe-core, not because they have any desperate need to be fixed, but more because when i'm teaching courses in oe/yocto, i run across the occasional weirdness that puzzles students, and forces me to try to explain it, and sometimes the explanation is, "that's just silly." so here's the first one. as i read in bitbake.conf, the default source directory for any recipe is defined as: S = "${WORKDIR}/${BP}" which suggests that, as long as processing a recipe ends up using that value as the source directory, there is no need for a recipe to redefine S. kind of obvious, no? in the case of sysfsutils-2.1.0.bb, one sees the line: S = "${WORKDIR}/sysfsutils-${PV}" which, given the standard definitions for variables BP and PV, seems to expand into precisely the default value given in bitbake.conf. so, unless i'm missing something, is there any actual need for that line in the sysfsutils recipe file? is there something more subtle going on here that i don't understand? rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================