All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: liezhi.yang@windriver.com
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] yq_git: Set apply=no for SRC_URI diff
Date: Mon, 24 Jun 2024 21:00:45 +0000	[thread overview]
Message-ID: <ZnnefcE1K7YSdn1X@gmail.com> (raw)
In-Reply-To: <20240619085432.371189-1-liezhi.yang@windriver.com>

staged on master-next

Bruce

In message: [meta-virtualization][PATCH] yq_git: Set apply=no for SRC_URI diff
on 19/06/2024 Robert Yang via lists.yoctoproject.org wrote:

> From: Robert Yang <liezhi.yang@windriver.com>
> 
> Fixed a do_patch error use git shallow tarball (BB_GIT_SHALLOW = "1"):
> 
> $ bitbake yp -cpatch
> 
> ERROR: do_patch: Importing patch 'github.com.pkg.diff' with striplevel '1'
> 
> The github.com.pkg.diff is ud.clonedir of git://github.com/pkg/diff:
> * When use regular git repo as source, oe.patch.patch_path() will NOT
>   handle it as a patch since the directory github.com.pkg.diff exists,
>   and nothing is wrong.
> 
> * When use git shallow tarball, the github.com.pkg.diff doesn't exist since
>   it is fetched as a tarball, then oe.patch.patch_path() will handle it
>   as a patch, then the error happens.
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  recipes-devtools/yq/yq_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-devtools/yq/yq_git.bb b/recipes-devtools/yq/yq_git.bb
> index 014101ba..a1adfc96 100644
> --- a/recipes-devtools/yq/yq_git.bb
> +++ b/recipes-devtools/yq/yq_git.bb
> @@ -41,7 +41,7 @@ SRC_URI = "git://${GO_IMPORT};name=yq;branch=master;protocol=https;destsuffix=${
>             git://github.com/magiconair/properties;name=properties;destsuffix=build/vendor/src/github.com/magiconair/properties;branch=main;protocol=https \
>             git://github.com/golang/net;name=net;destsuffix=build/vendor/src/golang.org/x/net;branch=master;protocol=https \
>             git://github.com/golang/text;name=text;destsuffix=build/vendor/src/golang.org/x/text;branch=master;protocol=https \
> -           git://github.com/pkg/diff;name=diff;destsuffix=build/vendor/src/github.com/pkg/diff;branch=main;protocol=https \
> +           git://github.com/pkg/diff;name=diff;destsuffix=build/vendor/src/github.com/pkg/diff;branch=main;protocol=https;apply=no \
>             file://run-ptest \
>             "
>  
> -- 
> 2.45.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8804): https://lists.yoctoproject.org/g/meta-virtualization/message/8804
> Mute This Topic: https://lists.yoctoproject.org/mt/106757049/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



      reply	other threads:[~2024-06-24 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19  8:54 [meta-virtualization][PATCH] yq_git: Set apply=no for SRC_URI diff liezhi.yang
2024-06-24 21:00 ` Bruce Ashfield [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=ZnnefcE1K7YSdn1X@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=liezhi.yang@windriver.com \
    --cc=meta-virtualization@lists.yoctoproject.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.