Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917746 - media-gfx/openscad-9999 fails during unpack: Referencing commit failed (wrong ref?)
Summary: media-gfx/openscad-9999 fails during unpack: Referencing commit failed (wrong...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-11-22 11:09 UTC by setun.90
Modified: 2023-12-21 08:01 UTC (History)
2 users (show)

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


Attachments
build.log (media-gfx_openscad-9999_build.log,13.40 KB, text/x-log)
2023-11-22 11:09 UTC, setun.90
Details
emerge --info (emerge.info,20.30 KB, text/plain)
2023-11-22 11:11 UTC, setun.90
Details
openscad-9999 build.log with --debug (xz compressed) (openscad-9999.log.xz,21.71 KB, application/x-xz)
2023-11-22 11:26 UTC, Alfred Wingate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description setun.90 2023-11-22 11:09:54 UTC
Created attachment 875326 [details]
build.log

The command
git update-ref --no-deref refs/git-r3/media-gfx/openscad/0/submodules_manifold/bindings_python_third_party_nanobind/__main__ 23ea3202294a5f3758b6d496404a875527386555
fails with the message stated in the summary, even after unmerging media-gfx/openscad-9999 and all of its dependencies.
Comment 1 setun.90 2023-11-22 11:11:23 UTC
Created attachment 875327 [details]
emerge --info
Comment 2 Alfred Wingate 2023-11-22 11:26:33 UTC
Created attachment 875328 [details]
openscad-9999 build.log with --debug (xz compressed)

It appears clone_type changed in the middle of the process.

All submodules are fetched as with the mirror type.

This is most likely a eclass bug that got exposed by an orphan commit in a submodule.
Comment 3 Larry the Git Cow gentoo-dev 2023-12-20 13:41:47 UTC
The bug has been closed via 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(+)