Return-Path: Received: from mail.cvg.de (mail.cvg.de [193.158.56.148]) by mail.openembedded.org (Postfix) with ESMTP id A80457D52B for ; Tue, 30 Apr 2019 11:20:59 +0000 (UTC) Received: from mail-mta-0.intern.sigma-chemnitz.de (mail-mta-0.intern.sigma-chemnitz.de [192.168.12.76]) by mailout-1.intern.sigma-chemnitz.de (8.14.7/8.14.7) with ESMTP id x3UBKwMU010367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Apr 2019 13:20:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-chemnitz.de; s=v2012061000; t=1556623259; bh=U24svCFMwdUXgAIdUJLfCV7nv/eXipo2RdQrkrPmWek=; l=969; h=From:To:Subject:Date; b=CEQfWnOXfN77TBzzjJZhlFjOcxhCot1wZGjUTvGk3yBIMDvMlkejXammAkEVpU1X/ n3CfigqXm7yTtNNDduPlVJk36CZrMYyguxUbovYZSmoOWKJfQpPn2UsA/suDpHNhKw Dhy+BpATNnQLxTB1eRkc/3ENz3iAW29+XyNsV02Q= Received: from reddoxx.intern.sigma-chemnitz.de (reddoxx.intern.sigma-chemnitz.de [192.168.0.193]) by mail-mta-0.intern.sigma-chemnitz.de (8.14.7/8.14.7) with ESMTP id x3UBKqIi011519; Tue, 30 Apr 2019 13:20:52 +0200 Received: from mail-msa-0.intern.sigma-chemnitz.de ( [192.168.12.77]) by reddoxx.intern.sigma-chemnitz.de (Reddoxx engine) with SMTP id 4799D9D9320; Tue, 30 Apr 2019 13:20:51 +0200 Received: from ensc-virt.intern.sigma-chemnitz.de (ensc-virt.intern.sigma-chemnitz.de [192.168.3.24]) by mail-msa-0.intern.sigma-chemnitz.de (8.14.7/8.14.7) with ESMTP id x3UBKo5N011516 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 30 Apr 2019 13:20:51 +0200 Received: from ensc by ensc-virt.intern.sigma-chemnitz.de with local (Exim 4.92) (envelope-from ) id 1hLQoc-00Cr2I-Oi; Tue, 30 Apr 2019 13:20:50 +0200 From: Enrico Scholz To: openembedded-core@lists.openembedded.org, bitbake-devel@lists.openembedded.org Date: Tue, 30 Apr 2019 13:20:50 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Sender: Enrico Scholz Subject: $PWD in terminal.bbclass 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: Tue, 30 Apr 2019 11:21:00 -0000 Content-Type: text/plain Hi, terminal.bbclass exports the original environment before running the terminal command. This environment includes the original $PWD too so that the generated script (run.do_terminal) looks like | #!/usr/bin/env /bin/bash | ... | export PWD="/srv/projects/.../build" << the directory with conf/local.conf e.g. | ... | do_terminal() { | exec /bin/bash -c ... | } Assigning PWD works like 'cd' and changes the actual path so that do_terminal() will be executed from the directory where bitbake has been started from. But usually, the [dirs] directory (e.g. '${B}') is expected. Is this really intented? Here, this breaks kernel's '-c menuconfig' (at least). A trivial fix would be something like | envdata.delVar("PS1") |+ envdata.delVar("PWD") in terminal.bbclass. But is there any reason to have PWD in ${BB_ORIGENV} at all? imo, there is no reason to keep this variable and it should be removed in bitbake already. Enrico