Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

portage appears to be under revision control (contains .git)

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
33 posts
  • 1
  • 2
  • Next
Author
Message
simonbcn
n00b
n00b
Posts: 69
Joined: Mon Aug 01, 2011 3:42 pm
Location: Denmark

portage appears to be under revision control (contains .git)

  • Quote

Post by simonbcn » Sun Nov 29, 2015 1:04 pm

I'm trying to install Gentoo in a local disk but in the part "Configuring Portage" I have a problem with

Code: Select all

# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
!!! /usr/portage appears to be under revision control (contains .git).
!!! Aborting rsync sync.
My gentoo.conf file in repos.conf is:

Code: Select all

[DEFAULT] 
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync.uk.gentoo.org/gentoo-portage/
auto-sync = yes
After I delete the .git* folders and files "emerge --sync" works but it downloads again .git* files and folders, the next "emerge --sync" throws again the same error. I guess it must be an error of mirroring of git repository central but I don't see any information about this error in Internet. In my server I have installed Gentoo since a long time and today the same problem is happening.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun Nov 29, 2015 2:08 pm

Same here.

Thks 4 ur attention, interest & support.
Top
dsiggi
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Tue Aug 28, 2007 2:54 pm
Location: Wilhermsdorf

  • Quote

Post by dsiggi » Sun Nov 29, 2015 2:11 pm

Same here.
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Sun Nov 29, 2015 2:26 pm

ditto ...

Code: Select all

drwxr-xr-x 7 portage portage 4096 2015-11-29 05:28 /var/pkg/gentoo/.git/
-rw-r--r-- 1 portage portage   67 2015-08-13 03:31 /var/pkg/gentoo/.gitignore
best ... khay
Top
cyrius
n00b
n00b
Posts: 70
Joined: Sat Jan 27, 2007 11:58 am
Location: France

  • Quote

Post by cyrius » Sun Nov 29, 2015 2:29 pm

Same problem here :

Code: Select all

>>> 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).

 * IMPORTANT: 3 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.

 * IMPORTANT: 20 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
What's happening ?
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Sun Nov 29, 2015 2:38 pm

cyrius wrote:What's happening?
cyrius ... the sky is falling ;) ... someone made an error when making a commit I suspect, wait, I'll get fixed.

best ... khay
Top
cyrius
n00b
n00b
Posts: 70
Joined: Sat Jan 27, 2007 11:58 am
Location: France

  • Quote

Post by cyrius » Sun Nov 29, 2015 2:39 pm

I finally downladed the last tarball of portage.
Top
papandreoos
Apprentice
Apprentice
Posts: 163
Joined: Wed Dec 17, 2014 4:00 pm

  • Quote

Post by papandreoos » Sun Nov 29, 2015 3:34 pm

same here...
Top
Helena
Veteran
Veteran
User avatar
Posts: 1114
Joined: Wed Apr 02, 2003 12:06 pm
Location: Den Dolder, The Netherlands

Solved?

  • Quote

Post by Helena » Sun Nov 29, 2015 4:19 pm

Thanks to this forum post I discovered a solution (so far). In my case important files were suddenly missing.

After reading https://oper.io/?p=gentoo:converting_portage_to_git i decided to check my repos.conf file and found out that it had disappeared. In fact the entire directory /etc/portage/repos.conf was gone. After recreating this directory and then the file by

Code: Select all

cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf 
I started removing all .git directories form /usr/portage it is now back to normal.
Top
Pearlseattle
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Thu Oct 04, 2007 11:07 am
Location: Switzerland
Contact:
Contact Pearlseattle
Website

  • Quote

Post by Pearlseattle » Sun Nov 29, 2015 5:28 pm

Thanx Helena!!!!
In my case issue solved by "rm -R /usr/portage/.git"
(repos.conf was still there)
Top
ShALLaX
n00b
n00b
Posts: 34
Joined: Sat Mar 29, 2003 3:08 pm

  • Quote

Post by ShALLaX » Sun Nov 29, 2015 5:33 pm

That's not really a solution, that's just switching back to using Git. The problem is that the rsync mirrors have been polluted with some git metadata by, presumably, an accidental commit. It'll get fixed soon enough, but it's probably made it onto loads of production Gentoo installations by now...
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

Re: Solved?

  • Quote

Post by khayyam » Sun Nov 29, 2015 5:39 pm

Helena wrote:After reading https://oper.io/?p=gentoo:converting_portage_to_git i decided to check my repos.conf file and found out that it had disappeared. In fact the entire directory /etc/portage/repos.conf was gone. After recreating this directory and then the file [...] I started removing all .git directories form /usr/portage it is now back to normal.
Helena ... I don't think those issues are related, I'm not sure why you think they are. Note that in the OP simonbcn also removed .git but they are replaced on the next --sync ... so, its unlikely this is not also the case for you. The issue, which I can say has only occured in the past 24hrs (as I'm similarly effected), is entirely to do with things on the rsync repo you're syncing from and so its out of your control.

best ... khay
Top
pigeon768
l33t
l33t
Posts: 683
Joined: Mon Jan 02, 2006 1:13 pm

  • Quote

Post by pigeon768 » Sun Nov 29, 2015 8:13 pm

https://infra-status.gentoo.org/ wrote:If you have synced your tree via rsync in the last 24 hours, you may have gotten a stray .git directory in your tree resulting in the following error:
No need to worry. Just delete the .git directory and everything is fine.
Top
Helena
Veteran
Veteran
User avatar
Posts: 1114
Joined: Wed Apr 02, 2003 12:06 pm
Location: Den Dolder, The Netherlands

  • Quote

Post by Helena » Sun Nov 29, 2015 8:24 pm

@pigeon768: Ah I see. A temporary problem, as I would have expected.

@khayyam: you could be right. There is no way I can tell. Thanks.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun Nov 29, 2015 9:04 pm

seems fixed @ my repo
Top
SarahS93
l33t
l33t
Posts: 746
Joined: Thu Nov 21, 2013 11:48 am

  • Quote

Post by SarahS93 » Mon Nov 30, 2015 10:22 am

Same here.
Top
albright
Advocate
Advocate
User avatar
Posts: 2588
Joined: Sun Nov 16, 2003 6:36 pm
Location: Near Toronto

  • Quote

Post by albright » Tue Dec 01, 2015 12:27 pm

A temporary problem, as I would have expected.
nonetheless, this kind of bush league BS give gentoo a bad name
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Tue Dec 01, 2015 4:34 pm

albright wrote:
nonetheless, this kind of bush league BS give gentoo a bad name
More and more of this sort of thing lately. I believe it's caused by what we used to call "cowboy programmers".
Top
gerard27
Advocate
Advocate
Posts: 2377
Joined: Sun Jan 04, 2004 3:30 pm
Location: Netherlands

  • Quote

Post by gerard27 » Tue Dec 01, 2015 7:45 pm

@Tony & albright,
You never make mistakes?
Gerard.
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Tue Dec 01, 2015 8:56 pm

gerard82 wrote:@Tony & albright,
You never make mistakes?
Gerard.
NEVER in the finished product submitted to the client. It's always been thoroughly tested.
Top
sabayonino
Veteran
Veteran
User avatar
Posts: 1072
Joined: Tue Jan 03, 2012 5:46 pm
Contact:
Contact sabayonino
Website

  • Quote

Post by sabayonino » Tue Dec 01, 2015 10:27 pm

same here.


This configuration at first sync fails

Code: Select all

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo/gentoo.git
auto-sync = yes
but renaming "gentoo" module (e.g. : gentoo-1 or something else) , works

Code: Select all

[DEFAULT]
main-repo = gentoo-1

[gentoo-1]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo/gentoo.git
auto-sync = yes
back to "gentoo"

Code: Select all

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo/gentoo.git
auto-sync = yes
still works 8O

:?: :idea:
LRS 64/32
Top
kurly
Apprentice
Apprentice
Posts: 260
Joined: Mon Apr 02, 2012 4:47 pm

  • Quote

Post by kurly » Tue Dec 01, 2015 11:32 pm

gerard82 wrote:@Tony & albright,
You never make mistakes?
Gerard.
Pushing untested stuff straight to deployment isn't a mistake; it's straight-up negligence.
Top
darkbasic
Tux's lil' helper
Tux's lil' helper
Posts: 133
Joined: Wed Sep 06, 2006 1:22 pm
Contact:
Contact darkbasic
Website

  • Quote

Post by darkbasic » Wed Dec 02, 2015 9:03 am

I switched to git and run "emaint -a" but now if I run eix-update I get "eix reading category empty" on [0] "gentoo" :(
I already removed /var/cache/eix but it didn't help, any idea?
Computers are like air conditioners:
they stop working properly when you open Windows...

Coltiva Linux, Windows si pianta da solo.


http://www.linuxsystems.it/
Top
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Wed Dec 02, 2015 10:41 am

darkbasic wrote:I switched to git
This does not belong to this thread
and run "emaint -a" but now if I run eix-update I get "eix reading category empty" on [0] "gentoo"
With git, you have to create the metadata cache locally by using egencache --update --repo=gentoo. IIRC, you can activate this by editing some example postsync-hook files. Probably there is a howto somewhere.
Top
darkbasic
Tux's lil' helper
Tux's lil' helper
Posts: 133
Joined: Wed Sep 06, 2006 1:22 pm
Contact:
Contact darkbasic
Website

  • Quote

Post by darkbasic » Thu Dec 03, 2015 7:08 pm

mv wrote:
darkbasic wrote:I switched to git
This does not belong to this thread
I'm sorry, but I got tired of rsync and after the "contains .git" error I saw this thread and I decided to switch.
Your suggestion did help, I'm using the postsync hooks now. Are there any downsides? Does it support portage news? Last time I heard it didn't.
Computers are like air conditioners:
they stop working properly when you open Windows...

Coltiva Linux, Windows si pianta da solo.


http://www.linuxsystems.it/
Top
Post Reply

33 posts
  • 1
  • 2
  • Next

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic