public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: Anton Mikanovich <amikan@ilbers.de>, isar-users@googlegroups.com
Subject: Re: [PATCH] devshell: Fix wrong PATH value if disabled ccache
Date: Thu, 16 Jan 2025 10:02:31 +0300	[thread overview]
Message-ID: <5009820cd7ae08674a6da1859006adaf524c68dd.camel@ilbers.de> (raw)
In-Reply-To: <20250108152256.851757-1-amikan@ilbers.de>

On Wed, 2025-01-08 at 17:22 +0200, Anton Mikanovich wrote:
> In case USE_CCACHE is set to 0 the value of PATH_PREPEND env variable
> will be empty. This makes PATH in devshell looks like:
> 
> :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> 
> If building the packages having directories named the same as some
> binaries used during the build (like dh-python with dh directory
> inside
> its sources), it will fail with the following error:
> 
> ...
>  debian/rules binary
> dh binary
> make: dh: Permission denied
> make: *** [debian/rules:4: binary] Error 127
> 
> Make devshell expand PATH only if PATH_PREPEND is non-empty.
> 
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/classes/dpkg-base.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-
> base.bbclass
> index c02c07a8..4468a49a 100644
> --- a/meta/classes/dpkg-base.bbclass
> +++ b/meta/classes/dpkg-base.bbclass
> @@ -258,7 +258,7 @@ python do_devshell() {
>          apt-get -y -q update -o
> Dir::Etc::SourceList=\"sources.list.d/isar-apt.list\" -o
> Dir::Etc::SourceParts=\"-\" -o APT::Get::List-Cleanup=\"0\"; \
>          apt-get -y upgrade; \
>          {2}; \
> -        export PATH=$PATH_PREPEND:$PATH; \
> +        if [ -n \"$PATH_PREPEND\" ]; then export
> PATH=$PATH_PREPEND:$PATH; fi; \
>          $SHELL -i \
>      '"
>      oe_terminal(termcmd.format(schroot, pp_pps, install_deps), "Isar
> devshell", d)
> -- 
> 2.34.1
> 

Applied to next.

-- 
Best regards,
Uladzimir.

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/5009820cd7ae08674a6da1859006adaf524c68dd.camel%40ilbers.de.

      reply	other threads:[~2025-01-16  7:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-08 15:22 Anton Mikanovich
2025-01-16  7:02 ` Uladzimir Bely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5009820cd7ae08674a6da1859006adaf524c68dd.camel@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox