From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6741467829768290304 X-Received: by 2002:a50:e08c:: with SMTP id f12mr4954270edl.135.1576585443372; Tue, 17 Dec 2019 04:24:03 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:8597:: with SMTP id v23ls5498911ejx.6.gmail; Tue, 17 Dec 2019 04:24:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzwSNn6czTfyFlhCitSrYgML9AotJEv1yL5di6A7u1B9oIe8jsmbQQBxVM/MF0nBeWGxonv X-Received: by 2002:a17:906:4d43:: with SMTP id b3mr4907061ejv.109.1576585442865; Tue, 17 Dec 2019 04:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576585442; cv=none; d=google.com; s=arc-20160816; b=cXJVIWGvQh3iJEs6KTXcAOMSNuePoH3tyijRfu5cnoZEMoOOwnRCwvs11dHPFn8JhR GHSoHFO4oaTzS0tt0ND79H4Py6Btigt+1QgJvmIjEBPU9WDZHKW85qJskZiuTGT7GAyb WxrqFSJXiG5NFA92k+2HBDOh/myyVgBPjJd4tkyS3yGcqwmXHFgz6ZvguCOPmkkm6Nwl 23QESCoDmiWy77IxjourgR6a9fNsCW9whdopBN8YglsJLM+pToK0j1hKFx0uk4P6S2BI iueQPvIBfUSJZAh5fCdho/BFeB1UWQmR/iW9LAKpQTjcCc67uG8Tbg1B147mTUyLrU2l DZRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date; bh=T6RD/Pockd4dnAJmIUwXeAolbbLaGmifp7Na7Hfe9GU=; b=Qf1phFnEGGy07IP56QC4BN8Vx3eU3YObvbMwTNwTfvm27cdlvXOxiizNGwtgknolPT 3/5Wzc7YSMlLq4HOleBod55SWYUIPKpuXioBGb0V1vO6eIbXgRTXwZbcUwsLLo2qyUe2 uv39g8s2M1hb+kHInVdvXveIVNbd9bmJ8gOwlDRSzvAslZAacyK/yIslnFdJisAaJRww z9YTvrBReWBADPwVpolLl7LfaJJj0J8eE9O77kDgVNR5jHnD1BczwtbLPLv6gjgNuvWk ZxGNgj1ddIdO1zaGGjCo35titYKCOvR3kJAAj4wRESItiJG/XWCQ+GL2VmbcIlfEo0sT Uyng== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id j19si1062163edv.5.2019.12.17.04.24.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Dec 2019 04:24:02 -0800 (PST) Received-SPF: neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Received: from yssyq.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id xBHCO0OI004910 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 17 Dec 2019 13:24:02 +0100 Date: Tue, 17 Dec 2019 13:24:00 +0100 From: Baurzhan Ismagulov To: isar-users Subject: Re: [PATCH v2] isar-init-build-env: Always set ISARROOT Message-ID: <20191217122400.3aan3h7c6dct3jq7@yssyq.m.ilbers.de> Mail-Followup-To: isar-users References: <20190927213804.31651-1-Vijaikumar_Kangarajan@mentor.com> <20190927214352.32114-1-Vijaikumar_Kangarajan@mentor.com> <20190930064655.GA10223@lightning> <556d1edf-1533-4c30-b104-58e7f8235325@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <556d1edf-1533-4c30-b104-58e7f8235325@googlegroups.com> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: 3eOMmazqkwAD On Wed, Dec 11, 2019 at 02:14:03AM -0800, vijai kumar wrote: > Ok. On a recent thought, Things would go wrong only when someone moves the > isar-init-build-env and writes > a wrapper script in the same location. In that case, one would need to pass > in the ISARROOT from the caller to isar-init-build-env. A pattern I see in Yocto downstream projects is the project directory containing poky as subdirectory. The project wrapper script calls the poky one from the subdirectory. I think the problem is that there is no reliable way to determine ISARROOT under different shells, e.g.: cd /home/ibr/myprj . myprj-init . isar/isar-init-build-env The desired value is /home/ibr/myprj/isar. This works with shell extensions under bash and zsh, but not with dash, thus the ugly THIS_SCRIPT="$(pwd)/isar-init-build-env" (which also doesn't work for the scenario above). Dash is the default in Debian to speed up the boot process. > The issue we have in hand is more critical than this one feature, which > could very well be written in other ways. I agree this is an important issue. My suggestion: * Keep accepting the preset ISARROOT from the environment. * Remove ISARROOT from the wic scripts. * Restore unsetting ISARROOT. With kind regards, Baurzhan.