Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage-2.2: emerge-webrsync and empty directory
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
unknown2
n00b
n00b


Joined: 14 Aug 2012
Posts: 29

PostPosted: Wed Sep 11, 2013 9:29 pm    Post subject: portage-2.2: emerge-webrsync and empty directory Reply with quote

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... :roll:

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.

CFLAGS="-O2 -pipe -fuse-linker-plugin -march=native -ftree-vectorize"
CXXFLAGS="${CFLAGS}"

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

USE_FLAG_CPU="3dnow 3dnowext avx mmx mmxext sse sse2 sse3 ssse3"
USE_FLAG_X="cairo dga flac gtk opengl mpeg pango qt4 vdpau X xft xv"
USE_FLAG_MULTIMEDIA="alsa openal cdda dvd exif lcms sdl"
USE_FLAG_MULTIMEDIA_CODEC="a52 aac dts mp3 ogg opus xvid x264 vorbis"
USE_FLAG_FILE_TYPE="gif jpeg jpg mng pdf png svg tiff"
USE_FLAG_SYSTEM="acl bluetooth caps custom-optimization cjk consolekit dbus gnutls nptl tcl ipv6 lzma lzo openmp pam policykit smp threads truetype wifi sasl ssl udev udisks unicode usb xattr xml"
USE_FLAG_MISC="icu spell libnotify startup-notification thunar"
USE_FLAG_EXCLUDE="-branding -multilib -pulseaudio -gcj -gnome -kde "

USE=" ${USE_FLAG_CPU}\
 ${USE_FLAG_X} \
 ${USE_FLAG_MULTIMEDIA} \
 ${USE_FLAG_MULTIMEDIA_CODEC} \
 ${USE_FLAG_FILE_TYPE} \
 ${USE_FLAG_SYSTEM} \
 ${USE_FLAG_MISC} \
 ${USE_FLAG_EXCLUDE}
 "

MAKEOPTS="-j16"
PORTAGE_NICENESS=19
ACCEPT_LICENSE="*"
FEATURES="parallel-fetch parallel-install userfetch userpriv usersync usersandbox webrsync-gpg"
GENTOO_MIRRORS="http://gentoo.aditsu.net"

#Xorg
INPUT_DEVICES="evdev"
VIDEO_CARDS="intel r600 radeon vesa"

#secure webrsync
PORTAGE_GPG_DIR="$ZGPG_HOMES/portage"
#SYNC="rsync://rsync.us.gentoo.org/gentoo-portage
SYNC=""

#directory setting
#documentation: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=3&chap=1
ROOT="/"
PORTDIR="/custom/tmp/portage/tree"
PORTAGE_TMPDIR="/custom/tmp/portage/tmp"
DISTDIR="/custom/tmp/portage/distfiles"
PKGDIR="/custom/tmp/portage/packages"
PORT_LOGDIR="/custom/tmp/portage/zlog"
#PORTDIR_OVERLAY=/usr/local/portage



and this one "/etc/portage/repos.conf/gentoo.conf" is generated automatically during portage upgrade, i have no idea why i need this file and how i config this
Code:

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /custom/tmp/portage/tree
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
Back to top
View user's profile Send private message
TheCubeIsALie
n00b
n00b


Joined: 11 Sep 2013
Posts: 19

PostPosted: Wed Sep 11, 2013 11:12 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4520
Location: Germany

PostPosted: Wed Sep 11, 2013 11:17 pm    Post subject: Re: portage-2.2: emerge-webrsync and empty directory Reply with quote

unknown2 wrote:
[....]

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?
[....]

Code:
mkdir -p /custom/tmp/portage/tree/profiles
echo "gentoo" > /custom/tmp/portage/tree/profiles/repo_name
chown -R portage:portage /custom/tmp/portage/
Code:
emerge-webrsync
should work.

/edit:
Ah, TheCubeIsALie was faster :)
Back to top
View user's profile Send private message
unknown2
n00b
n00b


Joined: 14 Aug 2012
Posts: 29

PostPosted: Wed Sep 11, 2013 11:58 pm    Post subject: Re: portage-2.2: emerge-webrsync and empty directory Reply with quote

Josef.95 wrote:
unknown2 wrote:
[....]

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?
[....]

Code:
mkdir -p /custom/tmp/portage/tree/profiles
echo "gentoo" > /custom/tmp/portage/tree/profiles/repo_name
chown -R portage:portage /custom/tmp/portage/
Code:
emerge-webrsync
should work.

/edit:
Ah, TheCubeIsALie was faster :)


thx, it works.

shall i submit a bug report to gentoo developers? as i think gentoo handboom part 1b wil be broken if non-existing/empty directory do not works
Back to top
View user's profile Send private message
unknown2
n00b
n00b


Joined: 14 Aug 2012
Posts: 29

PostPosted: Sun Sep 15, 2013 1:09 am    Post subject: Re: portage-2.2: emerge-webrsync and empty directory Reply with quote

unknown2 wrote:


shall i submit a bug report to gentoo developers? as i think gentoo handboom part 1b wil be broken if non-existing/empty directory do not works


i raise a report https://bugs.gentoo.org/show_bug.cgi?id=484950 , but i do not know whether they will consider it as a bug
Back to top
View user's profile Send private message
statikregimen
Apprentice
Apprentice


Joined: 16 Jul 2011
Posts: 173
Location: USA/Michigan

PostPosted: Wed Oct 16, 2013 6:53 am    Post subject: Reply with quote

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

Something like this:

Code:
mkdir -p /usr/portage/profiles
echo "gentoo" > /usr/portage/profiles/repo_name



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...
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 260

PostPosted: Wed Oct 16, 2013 8:21 am    Post subject: Reply with quote

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.

Hope this helps.
Back to top
View user's profile Send private message
statikregimen
Apprentice
Apprentice


Joined: 16 Jul 2011
Posts: 173
Location: USA/Michigan

PostPosted: Wed Oct 16, 2013 10:37 am    Post subject: Reply with quote

Ah, very good; thank you!
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Wed Oct 16, 2013 2:21 pm    Post subject: Reply with quote

emerge --sync worked regardless the error for me, just rebuilt the laptops gentoo from scratch
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