From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D21CFE00A0A; Thu, 13 Apr 2017 08:33:17 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (mats.dev.list[at]gmail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.215.49 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.215.49 listed in list.dnswl.org] Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 89F4DE007B5 for ; Thu, 13 Apr 2017 08:33:15 -0700 (PDT) Received: by mail-lf0-f49.google.com with SMTP id t144so31574229lff.1 for ; Thu, 13 Apr 2017 08:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=YWGQWcYJcj6ZeCEYKPbiQ8yDRIYES/XErm00DLzAazk=; b=VcfGtC/fUeHyVDcVwIaP8Gdlz/ohQdsn4jAb3Pz5J/ZUItr1lCz/jM3TL9Orgbx7pR 5ZFOmPHml6z82dDlu3GzFPCwTQz7VC0Ke61yRqj6oDicyr0WT65oohpkJMegQkz/QFJz RHFqdQ87wPiv/79wjdbj51ftivlAZScoakLh2Gz1jxN8pnqVAJ5/2+CuyY+dRYmh0IIa ludEBxL5wGLE+bk/P1sChxeHoyjW+mh/Sfd+IzIs42gR/hWnve9b2rQaqHbnFohdSmRw Vse6d8e6TPm+eULcJiKO4Q/X4JY/5fagjz2tyEcHfI6qaDs3rekO0Xu8nrfO2/Du5kcS 1Dcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=YWGQWcYJcj6ZeCEYKPbiQ8yDRIYES/XErm00DLzAazk=; b=PzifJP9fUayIxCnGgxhQdL915ZGpEsEPuDeJK2TVlW1m5j2xnAm8CIt9goJTTdrXrU gSl47dTwGOzM8CP8cek+HvXihoE1ZHUOcxylx9wQl2jlbDvnmnOtSEGYyeqjfLZbc/Bm EJTQcY9C3toUMA1d4kthuCdLYw/pVMze7BHgCsoGNkbAl4ID/aRC5oBe6Br5qBSqf3uY ver+elAnZ45b3B0e+Z2opj1tXMeorUmfBjcvd9oc62WmVU3GosbndiytHuWIPCbl281V 8CrmKEdHRElsOsESrshVMUu2155lEdVRgk4S62tNAM2PiYvwkTsBw/GcbhXGjaUjfzMd ppiQ== X-Gm-Message-State: AN3rC/5yJt5wwAEUtxEy1jkPWAAE+qWtGgdplahUo7Of76aVVSah8KoA OXzMait5c3dKxUKN X-Received: by 10.25.16.78 with SMTP id f75mr1383285lfi.86.1492097594000; Thu, 13 Apr 2017 08:33:14 -0700 (PDT) Received: from [192.168.1.216] ([195.84.96.49]) by smtp.gmail.com with ESMTPSA id t30sm4650754ljd.39.2017.04.13.08.33.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Apr 2017 08:33:13 -0700 (PDT) To: meta-freescale@yoctoproject.org, fabio.berton@ossystems.com.br From: Mats Karrman Message-ID: <744dfea1-8cb1-3444-afbd-facbcb5a58eb@gmail.com> Date: Thu, 13 Apr 2017 17:33:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Subject: [PATCH] fsl-kernel-localversion: Add preconfigure dependency on do_unpack X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2017 15:33:17 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit From: Mats Karrman Date: Thu, 13 Apr 2017 17:11:58 +0200 Subject: [PATCH] fsl-kernel-localversion: Add preconfigure dependency on do_unpack Even if 'externalsrc' is used, SRC_URI may specify a 'defconfig'. However as the use of 'externalsrc' will do away with the do_patch task, do_preconfigure is in risk of being run before the defconfig is copied to the build directory. This patch adds a second dependency on 'do_unpack' that makes sure this does not happen. --- classes/fsl-kernel-localversion.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Typical error message: ERROR: linux-rabbit-4.10-r0 do_preconfigure: Function failed: do_preconfigure (log file is located at /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/log.do_preconfigure.10215) ERROR: Logfile of failure stored in: /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/log.do_preconfigure.10215 Log data follows: | DEBUG: Executing shell function do_preconfigure | /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/run.do_preconfigure.10215: line 116: /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/defconfig: No such file or directory | WARNING: /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/run.do_preconfigure.10215:1 exit 1 from 'sed -e "${CONF_SED_SCRIPT}" < '/home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/defconfig' >> '/home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/linux-rabbit-4.10//.config'' | ERROR: Function failed: do_preconfigure (log file is located at /home/mats/projects/cubox/oe/build/tmp/work/rabbit-poky-linux-gnueabi/linux-rabbit/4.10-r0/temp/log.do_preconfigure.10215) ERROR: Task 49 (/home/mats/projects/cubox/oe/meta-local/recipes-kernel/linux/linux-rabbit_4.10.bb, do_preconfigure) failed with exit code '1' The fix is tested on krogoth but should apply equally to master as nothing has changed here as far as I can tell. --- diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass index 48e5403..c0306a0 100644 --- a/classes/fsl-kernel-localversion.bbclass +++ b/classes/fsl-kernel-localversion.bbclass @@ -38,4 +38,4 @@ do_preconfigure() { printf "%s%s" +g $head > ${S}/.scmversion fi } -addtask preconfigure before do_configure after do_patch +addtask preconfigure before do_configure after do_unpack do_patch -- 2.1.4