All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Quentin Schulz" <quentin.schulz@streamunlimited.com>
To: Dorinda <dorindabassey@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 5/5] sanity.bbclass: verify that user isn't building in PSEUDO_IGNORE_PATHS
Date: Mon, 25 Jan 2021 10:21:40 +0100	[thread overview]
Message-ID: <20210125092140.qzuwucbfplk6mzma@qschulz> (raw)
In-Reply-To: <20210124135559.21894-5-dorindabassey@gmail.com>

Hi Dorinda,

On Sun, Jan 24, 2021 at 02:55:59PM +0100, Dorinda wrote:
> added a check to ensure that a user isn't building in PSEUDO_IGNORE_PATHS
> 

Missing [YOCTO #14179] tag I think :)

> Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com>
> ---
>  meta/classes/sanity.bbclass | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 2040b48595..78c0343f0d 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -703,6 +703,13 @@ def check_sanity_version_change(status, d):
>      if (tmpdirmode & stat.S_ISUID):
>          status.addresult("TMPDIR is setuid, please don't build in a setuid directory")
>  
> +    # Check that user isn't building in PSEUDO_IGNORE_PATHS
> +    pseudoignorepaths = d.getVar('PSEUDO_IGNORE_PATHS', expand=True).split(",")
> +    workdir = d.getVar('WORKDIR', expand=True)
> +    for i in pseudoignorepaths:
> +        if workdir.startswith(i):
> +            status.addresult("you are building in a path under PSEUDO_IGNORE_PATHS, please remove this" + str(i) + "directory in \nParsed WORKDIR: " + str(workdir) + "\n")

Capital Y for the beginning of the sentence?

Missing space before and after str(i).

I'm not familiar with this part of the code, so forgive me if this is
wrong but... is your sentence finished?

You are building in a path under PSEUDO_IGNORE_PATHS, please remove this <dir> directory in
Parsed WORKDIR: <workdir>

That is to me not very telling about what I should do to fix this issue.

I honestly might be missing a lot of context on the issue so wouldn't be
surprised if the issue is with me not understanding the sentence more
than the sentence being "unfinished".

Thanks,
Quentin

  reply	other threads:[~2021-01-25  9:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 13:55 [PATCH 1/5] elfutils: split libdebuginfod into its own package Dorinda
2021-01-24 13:55 ` [PATCH 2/5] elfutils: add PACKAGECONFIG for debuginfod Dorinda
2021-01-24 13:55 ` [PATCH 3/5] elfutils: add support for ipkg Dorinda
2021-01-25  9:01   ` [OE-core] " Quentin Schulz
2021-01-24 13:55 ` [PATCH 4/5] sanity.bbclass: sanity check for bitbake in PATH Dorinda
2021-01-25  9:12   ` [OE-core] " Quentin Schulz
2021-01-24 13:55 ` [PATCH 5/5] sanity.bbclass: verify that user isn't building in PSEUDO_IGNORE_PATHS Dorinda
2021-01-25  9:21   ` Quentin Schulz [this message]
2021-01-25 14:58     ` [OE-core] " Peter Kjellerstedt
2021-01-25 22:53       ` Dorinda
2021-01-25  8:54 ` [OE-core] [PATCH 1/5] elfutils: split libdebuginfod into its own package Quentin Schulz

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=20210125092140.qzuwucbfplk6mzma@qschulz \
    --to=quentin.schulz@streamunlimited.com \
    --cc=dorindabassey@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.