has anyone tried the "emerge-webrsync" on a empty directory for portage-2.2?

in my config, the path is '/custom/tmp/portage/tree'

initially, the directory do not exist

Code:

sudo emerge-webrsync
Password:
!!! Invalid PORTDIR_OVERLAY (not a dir): '/custom/tmp/portage/tree'
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/custom/tmp/portage/tree'
!!! main-repo not set in DEFAULT and PORTDIR is empty.
emerge-webrsync: error: Repository 'gentoo' not found

in previous version of portage, "emerge-webrsync" will create a directory automatically...

ok, so i "mkdir -p '/custom/tmp/portage/tree'", and retry

Code:

$ sudo emerge-webrsync
!!! Section 'gentoo' in repos.conf refers to repository without repository name set in '/custom/tmp/portage/tree/profiles/repo_name'
emerge-webrsync: error: Repository 'gentoo' not found

it still does not work

Do anyone has some idea on this?

here is my config file

/etc/portage/make.conf

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

In my normal portage tree, "/usr/portage/profiles/repo_name" contains just the word "gentoo" in it.
I suppose you should create the file "/custom/tmp/portage/tree/profiles/repo_name" and make it only contain the word gentoo.

Last edited by TheCubeIsALie on Wed Sep 11, 2013 11:27 pm; edited 1 time in total

$ sudo emerge-webrsync
!!! Section 'gentoo' in repos.conf refers to repository without repository name set in '/custom/tmp/portage/tree/profiles/repo_name'
emerge-webrsync: error: Repository 'gentoo' not found

$ sudo emerge-webrsync
!!! Section 'gentoo' in repos.conf refers to repository without repository name set in '/custom/tmp/portage/tree/profiles/repo_name'
emerge-webrsync: error: Repository 'gentoo' not found

Just had this same issue on a stock/default install following the manual. This is only my second time through a Gentoo install, so I am a newbie (last time was >2 years ago so learning from scratch, basically).

That said, I didn't catch on right away, but the above solution works with a tweak. Had to create the file (and directories) /usr/portage/profiles/repo_name and drop the word gentoo in it.... I was really confused at first by the solution listed above, until I realized the obvious path difference

This...uh.. should probably be mentioned in the manual? Or is it a bug? I do not know, but I've been following the manual to the letter and do not see where I could have missed a step and this would be a serious setback to other fellow newbies. Rolling, now though! Cheers.

EDIT: replied here, because it is the top google result when you search for the error message in quotes and only one I found actually semi-related to my issue.... I'm sure to not be the last to encounter this...

A newer version of Portage (2.2.7 vs 2.2.1, as of time of this writing) is being rush-stabilized primarily to fix this exact bug. If this were an intended change in behavior, you're right, it would make sense to update the documentation. But it was unintended (a regression) and the fix is already available on ~arch and will be in arch (and thus the stage3 tarballs) hopefully very soon.