Opened 2 years ago

Closed 2 years ago

#64166 closed defect (fixed)

git: activation failure on buildbots, related to global gitconfig

Reported by: mascguy (Christopher Nielsen) Owned by: herbygillot (Herby Gillot)
Priority: High Milestone:
Component: ports Version:
Keywords: Cc:
Port: git

Description

While reviewing failed builds on our 10.13 buildbot - with the goal of identifying ports fixable by forcing a rebuild - I noticed the following.

This occurred during dependency installation, for port retdec. In short, activation of git failed, due to existence of the global gitconfig:

Error: Failed to activate git: Image error: /opt/local/etc/gitconfig already exists and does not belong to a registered port. Unable to activate port git. Use 'port -f activate git' to force the activation.

https://build.macports.org/builders/ports-10.13_x86_64-builder/builds/132169/steps/install-dependencies/logs/stdio

Might be related to the recent enhancement to git, whereby the port tries to avoid overwriting a user's existing global gitconfig. But not 100% sure just yet:

PR 13259 - git: do not overwrite system-wide gitconfig, when adding configuration for the osxkeychain credential helper

Related ticket: issue:63953

Change History (5)

comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)

Priority: NormalHigh

Observers: Setting the priority on this to High, as this is preventing some ports from building successfully. Folks are welcome to downgrade the priority to Normal, but seems like something we need to fix ASAP.

comment:2 Changed 2 years ago by herbygillot (Herby Gillot)

Can you sync the latest ports tree and try again?

comment:3 in reply to:  2 Changed 2 years ago by mascguy (Christopher Nielsen)

Replying to herbygillot:

Can you sync the latest ports tree and try again?

Ah, thought this failure occurred after your subsequent rev-bump for git. But apparently it completed a few hours prior to that commit.

I'll queue a rebuild for retdec on the 10.13 buildbot, and see if the problem has been resolved.

Let's leave this open for now though, until the builder has caught up with its current backlog.

Thanks Herby!

comment:4 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

comment:5 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Yes:

--->  Activating git @2.34.1_0+credential_osxkeychain+diff_highlight+doc+pcre+perl5_28

The fix was to increase the revision from 0 to 1.

I dont think the ticket needs to be kept open since the issue is fixed. The 10.13 builder's backlog is within hours of being the same as the backlog of the other builders.

Note: See TracTickets for help on using tickets.