Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync complaining about /usr/portage/.git existing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5965
Location: Pomona, California.

PostPosted: Tue Dec 01, 2015 9:51 am    Post subject: emerge --sync complaining about /usr/portage/.git existing Reply with quote

My cursory search has been fruitless, so here's the issue. When I type emerge --sync, I get the following:
Code:
>>> Syncing repository 'gentoo' into '/usr/portage'...
!!! /usr/portage appears to be under revision control (contains .git).
!!! Aborting rsync sync (override with "sync-rsync-vcs-ignore = true" in repos.conf).


Has Gentoo gone to git like funtoo? If not, then why was a /usr/portage/.git directory delivered with last night's update? If there is a choice, I'd much prefer git. Just let me know how to set it up. Thanks.

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 754

PostPosted: Tue Dec 01, 2015 10:19 am    Post subject: Reply with quote

i experienced the same thing yesterday - and just deleted /usr/portage/.git (hasn't reappeared since).
my guess is that someone with write-perms just accidentally put the dir there. i also guess that switching portage to git would deserve some kind of announcement :wink:
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4345

PostPosted: Tue Dec 01, 2015 10:43 am    Post subject: Reply with quote

https://infra-status.gentoo.org/notice/20151129-rsync
Back to top
View user's profile Send private message
dilfridge
Developer
Developer


Joined: 18 Sep 2010
Posts: 110
Location: Regensburg, Germany

PostPosted: Tue Dec 01, 2015 11:56 am    Post subject: Reply with quote

As detailed at https://infra-status.gentoo.org/notice/20151129-rsync this was a bug in the rsync tree generation.

The bug is now fixed, but you still need to manually remove the .git directory once.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5965
Location: Pomona, California.

PostPosted: Wed Dec 02, 2015 7:31 am    Post subject: Reply with quote

Awesome. That was quick.

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Atom2
Apprentice
Apprentice


Joined: 01 Aug 2011
Posts: 178

PostPosted: Fri Dec 04, 2015 1:32 am    Post subject: Reply with quote

dilfridge,
dilfridge wrote:
The bug is now fixed, but you still need to manually remove the .git directory once.
The bug as such may be fixed, but in my view the handling of the sync problem from emerge was not in line with standard unix practices: If, for whatever reason, a command fails (and in my view this clearly was a failure), the command should return with a non-zero exit code. Despite that the return code was zero and therefore the problem went unnoticed for a number of days in my automated script.

I don't know whether that's a big deal to change, but exiting with a proper return code would have been nice and should probably be amended in order to avoid this in the future.

Thanks Atom2
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Dec 05, 2015 2:48 am    Post subject: Reply with quote

Thanks for the info, I had that problem last night.

Time to sync my box :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum