Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503332 - [latest git-r3] julia-9999 fails to update libuv repo with fatal: Cannot update the ref 'refs/git-r3/dev-lang/julia/0/deps/libuv/__main__'.
Summary: [latest git-r3] julia-9999 fails to update libuv repo with fatal: Cannot upda...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2014-03-03 17:26 UTC by Uwe L. Korn
Modified: 2023-12-21 08:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log with git-r3 in rev 1.26 (build-git-r3-1.26.log,103.85 KB, text/x-log)
2014-03-03 17:27 UTC, Uwe L. Korn
Details
build.log with git-r3 in rev 1.32 (build-git-r3-1.32.log,2.78 KB, text/x-log)
2014-03-03 17:28 UTC, Uwe L. Korn
Details
build.log with git-r3 in rev 1.32 (build-git-r3-1.32.log,35.14 KB, text/x-log)
2014-03-03 21:26 UTC, Uwe L. Korn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe L. Korn 2014-03-03 17:26:33 UTC
I'm compiling julia-9999 about every second day. Since about ~1 week, it fails to update the libuv git repo in /usr/portage/distfiles/git3-src/JuliaLang_libuv.git/. Purging all JuliaLang* repos made the build work again but this has to be done before each build manually.

Reverting to http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/git-r3.eclass?revision=1.26 fixes this problem.

Attached a build.log with the different git-r3 versions
Comment 1 Uwe L. Korn 2014-03-03 17:27:40 UTC
Created attachment 371650 [details]
build.log with git-r3 in rev 1.26

build.log with git-r3 in rev 1.26 (but abort during build as only fetch is relevant)
Comment 2 Uwe L. Korn 2014-03-03 17:28:57 UTC
Created attachment 371652 [details]
build.log with git-r3 in rev 1.32
Comment 3 Uwe L. Korn 2014-03-03 17:38:06 UTC
Comment on attachment 371652 [details]
build.log with git-r3 in rev 1.32

build-git-r3-1.32.log is actually done with 1.38
Comment 4 Uwe L. Korn 2014-03-03 17:50:57 UTC
Bisected the problem: Introduced with revision 1.32, working with revision 1.31
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-03-03 21:20:36 UTC
Excuse me, but how are go-fuse logs related? I took a look at that package and it seems that go is somehow broken there and fails to rebuild it when it's installed.

I will now try to reproduce julia.
Comment 6 Uwe L. Korn 2014-03-03 21:26:27 UTC
Created attachment 371682 [details]
build.log with git-r3 in rev 1.32

Sorry for the go-fuse log, that was for another bug report. Now attached the correct log.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-03-03 21:46:18 UTC
+  03 Mar 2014; Michał Górny <mgorny@gentoo.org> git-r3.eclass:
+  Force EGIT_CLONE_TYPE=mirror for submodules since they can reference commits
+  in any branch without explicitly naming the branch, bug #503332.

Long story short, julia wanted a commit that wasn't on libuv's master, and gitmodules does not specify the branch. I've changed the submodule code to always fetch all commits following what git does.
Comment 8 Larry the Git Cow gentoo-dev 2023-12-20 13:41:47 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=142a99106adf15e03c3fc45a490730bdb7b56980

commit 142a99106adf15e03c3fc45a490730bdb7b56980
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2023-11-22 11:40:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-20 13:41:02 +0000

    git-r3.eclass: fetch remote_ref in the mirror clone type
    
    * Handles scenarios where commits in submodules are orphaned.
    
    Closes: https://bugs.gentoo.org/917746
    Bug: https://bugs.gentoo.org/503332
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/33935
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/git-r3.eclass | 2 ++
 1 file changed, 2 insertions(+)