Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830908 - sys-devel/gcc-12.0.0_pre9999 tries to fetch from wrong branch
Summary: sys-devel/gcc-12.0.0_pre9999 tries to fetch from wrong branch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-10 09:59 UTC by Manuel Lauss
Modified: 2022-01-10 13:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2022-01-10 09:59:06 UTC
Observe:
# emerge --nodeps sys-devel/gcc
>>> Emerging (1 of 1) sys-devel/gcc-12.0.0_pre9999::gentoo
>>> Unpacking source...
 * Repository id: gcc.git
 * To override fetched repository properties, use:
 *   EGIT_OVERRIDE_REPO_GCC
 *   EGIT_OVERRIDE_BRANCH_GCC
 *   EGIT_OVERRIDE_COMMIT_GCC
 *   EGIT_OVERRIDE_COMMIT_DATE_GCC
 * 
 * Fetching https://gcc.gnu.org/git/gcc.git ...
git fetch https://gcc.gnu.org/git/gcc.git +refs/heads/releases/gcc-12:refs/heads/releases/gcc-12


As you can see, it tried to fetch from "releases/gcc-12" brancht instead of master, even though gcc-12.0.0_pre9999.ebuild has the following in it:

EGIT_BRANCH=master
inherit toolchain


This broken some time in the last week (i.e. after 03.01.2022), as I was able to
build gcc-12.9999 with a portage snapshot of that day.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-10 10:03:15 UTC
I don't remember the eclass changing in the last week.

I think I probably broke it with https://github.com/gentoo/gentoo/commit/c159caed310ded6e6692cae855e049033a4fc192#diff-32fbbd863aa144f6e9ef4509752dce7efd2e901bc223b95b4a865b611137704d.
Comment 2 Manuel Lauss 2022-01-10 10:57:49 UTC
(In reply to Sam James from comment #1)
> I don't remember the eclass changing in the last week.
> 
> I think I probably broke it with
> https://github.com/gentoo/gentoo/commit/
> c159caed310ded6e6692cae855e049033a4fc192#diff-
> 32fbbd863aa144f6e9ef4509752dce7efd2e901bc223b95b4a865b611137704d.

Yes looks like it, reverting that commit fixes the checkout.
Comment 3 Larry the Git Cow gentoo-dev 2022-01-10 13:28:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=367c79921065093ff6e31a5a1dce3de9237bd467

commit 367c79921065093ff6e31a5a1dce3de9237bd467
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-01-10 13:17:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-01-10 13:17:15 +0000

    sys-devel/gcc: fix 12.0.0_pre9999
    
    Closes: https://bugs.gentoo.org/830908
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                  | 1 +
 sys-devel/gcc/gcc-12.0.0_pre9999.ebuild | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)