Jump to content
funtoo forums
  • 0
patty.yivi

What should portage configuration be like?

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!

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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...

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...