Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

What should portage configuration be like?


patty.yivi

Question

Please review, my

/etc/portage/repos.conf

is:

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /mnt/_tinies/_Funtoo/portage
sync-type = git
sync-uri = git://github.com/funtoo/ports-2012.git
auto-sync = yes

sync-rsync-vcs-ignore = true


GENTOO_MIRRORS="http://gentoo.linux.no http://trumpetti.atm.tut.fi/gentoo http://ftp.rhnet.is/pub/gentoo/ \
  http://mirrors.xmu.edu.cn/gentoo http://mirrors.stuhome.net/gentoo/ http://mirrors.sohu.com/gentoo/  \
  http://mirrors.163.com/gentoo"
 
and I got error message on portage syncing:

 

# eix-sync
 * Running emerge --sync
>>> Syncing repository 'gentoo' into '/mnt/_tinies/_Funtoo/portage'...
/usr/bin/git clone --depth 1 git://github.com/funtoo/ports-2012.git .
fatal: destination path '.' already exists and is not an empty directory.
!!! git clone error in /mnt/_tinies/_Funtoo/portage
The same for 'emerge --sync'

 

What is wrong?

 

Explanation: in the path /mnt/_tinies/_Funtoo/portage there is indeed the portage tree located!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Are there any files in the portage directory? I encountered the same problem. You should ensure that it's an empty directory. After emerging the portage first, you can create any files & directory in it.

If it cannot resolve your problem, try the default portage directory. My configure file is the same as yours except the portage directory.

Link to comment
Share on other sites

  • 0

@stone821, of course the portage directory is filled with usual content and up to date!

And I've tried the default path, simply by linking my portage directory to /usr/portage, but with no avail.

What do you mean precisely by saying you've encountered the same problem?

 

------EDIT

 

I've emptied the portage directory and run eix-sync again. This works, the portage directory has been filled with desired content. Yet to check up whether it is going to update properly.

Link to comment
Share on other sites

  • 0

@patty.yivi sorry for my English. Before you emerge portage, the portage directory must be empty. It cannot include anything, otherwise git will complaint.

I created a distfiles directory in the portage directory before emerging protage. Git showed me the same errors as yours.

Link to comment
Share on other sites

  • 0

Before you emerge portage, the portage directory must be empty.

Do you mean "emerge portage" or "sync portage directory"?

 

It cannot include anything, otherwise git will complaint.

Because if before syncing portage directory the directory must be empty it means before every syncing one should delete the whole portage directory content...
Link to comment
Share on other sites

  • 0

Do you mean "emerge portage" or "sync portage directory"?

 

Because if before syncing portage directory the directory must be empty it means before every syncing one should delete the whole portage directory content...

If you still have the error:

 

fatal: destination path '.' already exists and is not an empty directory.

1. delete anything in your portage directory.

2.

emerge --sync
or
eix-sync
Link to comment
Share on other sites

  • 0

I've this:

 

 

sandro@ci74771ht ~ $ cat /etc/portage/repos.conf/gentoo  
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = git://github.com/funtoo/ports-2012.git
auto-sync = yes
Link to comment
Share on other sites

×
×
  • Create New...