diff mbox series

musl: Drop MIRRORS

Message ID 20230922011520.23704-1-raj.khem@gmail.com
State New
Headers show
Series musl: Drop MIRRORS | expand

Commit Message

Khem Raj Sept. 22, 2023, 1:15 a.m. UTC
When using mirrors fetcher gets into a weird state when shallow clones
are enables.

ERROR: Bitbake Fetcher Error: UnpackError('No up to date source found: clone directory not available or not up to date: /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git; shallow clone not available: /mnt/b/yoe/master/downloads/gitshallow_git.musl-libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-libc.org/git/musl.git;branch=master;protocol=https')

Anyway the mirrors were added as backup when we had issues with musl git
in past.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/musl/musl_git.bb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Comments

Richard Purdie Sept. 22, 2023, 10:11 a.m. UTC | #1
On Thu, 2023-09-21 at 18:15 -0700, Khem Raj wrote:
> When using mirrors fetcher gets into a weird state when shallow clones
> are enables.
> 
> ERROR: Bitbake Fetcher Error: UnpackError('No up to date source
> found: clone directory not available or not up to date:
> /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git;
> shallow clone not available:
> /mnt/b/yoe/master/downloads/gitshallow_git.musl-
> libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-
> libc.org/git/musl.git;branch=master;protocol=https')

That sounds like something we should look into and fix?

I don't think it makes sense as a justification in a commit message.

Cheers,

Richard
Khem Raj Sept. 22, 2023, 3:10 p.m. UTC | #2
On Fri, Sep 22, 2023 at 3:11 AM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Thu, 2023-09-21 at 18:15 -0700, Khem Raj wrote:
> > When using mirrors fetcher gets into a weird state when shallow clones
> > are enables.
> >
> > ERROR: Bitbake Fetcher Error: UnpackError('No up to date source
> > found: clone directory not available or not up to date:
> > /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git;
> > shallow clone not available:
> > /mnt/b/yoe/master/downloads/gitshallow_git.musl-
> > libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-
> > libc.org/git/musl.git;branch=master;protocol=https')
>
> That sounds like something we should look into and fix?
>
> I don't think it makes sense as a justification in a commit message.

I tried to do it in several ways and somehow fetch is failing. Only
way I see it work once was when removing the mirrors and rebuilding
after -ccleanall
see - https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/7836

if I git fetch these repos from any of mirrors or upstream clones work
totally fine but git fetcher always complains. No idea whats going on
>
> Cheers,
>
> Richard
Richard Purdie Sept. 22, 2023, 3:16 p.m. UTC | #3
On Fri, 2023-09-22 at 08:10 -0700, Khem Raj wrote:
> On Fri, Sep 22, 2023 at 3:11 AM Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > 
> > On Thu, 2023-09-21 at 18:15 -0700, Khem Raj wrote:
> > > When using mirrors fetcher gets into a weird state when shallow clones
> > > are enables.
> > > 
> > > ERROR: Bitbake Fetcher Error: UnpackError('No up to date source
> > > found: clone directory not available or not up to date:
> > > /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git;
> > > shallow clone not available:
> > > /mnt/b/yoe/master/downloads/gitshallow_git.musl-
> > > libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-
> > > libc.org/git/musl.git;branch=master;protocol=https')
> > 
> > That sounds like something we should look into and fix?
> > 
> > I don't think it makes sense as a justification in a commit message.
> 
> I tried to do it in several ways and somehow fetch is failing. Only
> way I see it work once was when removing the mirrors and rebuilding
> after -ccleanall
> see - https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/7836
> 
> if I git fetch these repos from any of mirrors or upstream clones work
> totally fine but git fetcher always complains. No idea whats going on
> 

Please tell me you're not running -c cleanall on the autobuilder
infrastructure?

Cheers,

Richard
Khem Raj Sept. 22, 2023, 3:25 p.m. UTC | #4
On 9/22/23 8:16 AM, Richard Purdie wrote:
> On Fri, 2023-09-22 at 08:10 -0700, Khem Raj wrote:
>> On Fri, Sep 22, 2023 at 3:11 AM Richard Purdie
>> <richard.purdie@linuxfoundation.org> wrote:
>>>
>>> On Thu, 2023-09-21 at 18:15 -0700, Khem Raj wrote:
>>>> When using mirrors fetcher gets into a weird state when shallow clones
>>>> are enables.
>>>>
>>>> ERROR: Bitbake Fetcher Error: UnpackError('No up to date source
>>>> found: clone directory not available or not up to date:
>>>> /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git;
>>>> shallow clone not available:
>>>> /mnt/b/yoe/master/downloads/gitshallow_git.musl-
>>>> libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-
>>>> libc.org/git/musl.git;branch=master;protocol=https')
>>>
>>> That sounds like something we should look into and fix?
>>>
>>> I don't think it makes sense as a justification in a commit message.
>>
>> I tried to do it in several ways and somehow fetch is failing. Only
>> way I see it work once was when removing the mirrors and rebuilding
>> after -ccleanall
>> see - https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/7836
>>
>> if I git fetch these repos from any of mirrors or upstream clones work
>> totally fine but git fetcher always complains. No idea whats going on
>>
> 
> Please tell me you're not running -c cleanall on the autobuilder
> infrastructure?

ofcourse not.

> 
> Cheers,
> 
> Richard
Alexandre Belloni Sept. 22, 2023, 4:07 p.m. UTC | #5
https://autobuilder.yoctoproject.org/typhoon/#/builders/15/builds/8149/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/7837/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/7859/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7193/steps/13/logs/stdio

On 21/09/2023 18:15:20-0700, Khem Raj wrote:
> When using mirrors fetcher gets into a weird state when shallow clones
> are enables.
> 
> ERROR: Bitbake Fetcher Error: UnpackError('No up to date source found: clone directory not available or not up to date: /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git; shallow clone not available: /mnt/b/yoe/master/downloads/gitshallow_git.musl-libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-libc.org/git/musl.git;branch=master;protocol=https')
> 
> Anyway the mirrors were added as backup when we had issues with musl git
> in past.
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-core/musl/musl_git.bb | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
> index dbc31e1d83b..72253636dc8 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -10,15 +10,11 @@ BASEVER = "1.2.4"
>  
>  PV = "${BASEVER}+git"
>  
> -# mirror is at git://github.com/kraj/musl.git
> -
> -SRC_URI = "git://git.musl-libc.org/git/musl.git;branch=master;protocol=https \
> +SRC_URI = "git://git.musl-libc.org/git/musl;branch=master;protocol=https \
>             file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
>             file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
>            "
>  
> -MIRRORS += "git://git.musl-libc.org/git/musl.git git://github.com/kraj/musl.git"
> -
>  S = "${WORKDIR}/git"
>  
>  PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt"
> -- 
> 2.42.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#188034): https://lists.openembedded.org/g/openembedded-core/message/188034
> Mute This Topic: https://lists.openembedded.org/mt/101513420/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Khem Raj Sept. 22, 2023, 5:44 p.m. UTC | #6
yeah I am trying to investigate, locally I reproduced it once but then
I did bitbake -ccleanall musl and then it started to work.

I see this in log.do_fetch on AB

http://sprunge.us/c5J8K3

says

fatal: protocol error: bad line length character: erro


On Fri, Sep 22, 2023 at 9:07 AM Alexandre Belloni
<alexandre.belloni@bootlin.com> wrote:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/15/builds/8149/steps/11/logs/stdio
> https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/7837/steps/11/logs/stdio
> https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/7859/steps/11/logs/stdio
> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7193/steps/13/logs/stdio
>
> On 21/09/2023 18:15:20-0700, Khem Raj wrote:
> > When using mirrors fetcher gets into a weird state when shallow clones
> > are enables.
> >
> > ERROR: Bitbake Fetcher Error: UnpackError('No up to date source found: clone directory not available or not up to date: /mnt/b/yoe/master/downloads/git2/git.musl-libc.org.git.musl.git; shallow clone not available: /mnt/b/yoe/master/downloads/gitshallow_git.musl-libc.org.git.musl.git_79bdacf-1_master.tar.gz', 'git://git.musl-libc.org/git/musl.git;branch=master;protocol=https')
> >
> > Anyway the mirrors were added as backup when we had issues with musl git
> > in past.
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/recipes-core/musl/musl_git.bb | 6 +-----
> >  1 file changed, 1 insertion(+), 5 deletions(-)
> >
> > diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
> > index dbc31e1d83b..72253636dc8 100644
> > --- a/meta/recipes-core/musl/musl_git.bb
> > +++ b/meta/recipes-core/musl/musl_git.bb
> > @@ -10,15 +10,11 @@ BASEVER = "1.2.4"
> >
> >  PV = "${BASEVER}+git"
> >
> > -# mirror is at git://github.com/kraj/musl.git
> > -
> > -SRC_URI = "git://git.musl-libc.org/git/musl.git;branch=master;protocol=https \
> > +SRC_URI = "git://git.musl-libc.org/git/musl;branch=master;protocol=https \
> >             file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
> >             file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
> >            "
> >
> > -MIRRORS += "git://git.musl-libc.org/git/musl.git git://github.com/kraj/musl.git"
> > -
> >  S = "${WORKDIR}/git"
> >
> >  PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt"
> > --
> > 2.42.0
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#188034): https://lists.openembedded.org/g/openembedded-core/message/188034
> > Mute This Topic: https://lists.openembedded.org/mt/101513420/3617179
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
diff mbox series

Patch

diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index dbc31e1d83b..72253636dc8 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -10,15 +10,11 @@  BASEVER = "1.2.4"
 
 PV = "${BASEVER}+git"
 
-# mirror is at git://github.com/kraj/musl.git
-
-SRC_URI = "git://git.musl-libc.org/git/musl.git;branch=master;protocol=https \
+SRC_URI = "git://git.musl-libc.org/git/musl;branch=master;protocol=https \
            file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
            file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
           "
 
-MIRRORS += "git://git.musl-libc.org/git/musl.git git://github.com/kraj/musl.git"
-
 S = "${WORKDIR}/git"
 
 PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt"