Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

portage-2.2: emerge-webrsync and empty directory

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
unknown2
n00b
n00b
Posts: 29
Joined: Tue Aug 14, 2012 1:18 am

portage-2.2: emerge-webrsync and empty directory

  • Quote

Post by unknown2 » Wed Sep 11, 2013 9:29 pm

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: Select all

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: Select all

$ 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: Select all

# 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: Select all

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /custom/tmp/portage/tree
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
Top
TheCubeIsALie
n00b
n00b
Posts: 19
Joined: Wed Sep 11, 2013 11:08 pm

  • Quote

Post by TheCubeIsALie » Wed Sep 11, 2013 11:12 pm

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.
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

Re: portage-2.2: emerge-webrsync and empty directory

  • Quote

Post by Josef.95 » Wed Sep 11, 2013 11:17 pm

unknown2 wrote: [....]

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

Code: Select all

$ 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: Select all

mkdir -p /custom/tmp/portage/tree/profiles
echo "gentoo" > /custom/tmp/portage/tree/profiles/repo_name
chown -R portage:portage /custom/tmp/portage/

Code: Select all

emerge-webrsync
should work.

/edit:
Ah, TheCubeIsALie was faster :)
Top
unknown2
n00b
n00b
Posts: 29
Joined: Tue Aug 14, 2012 1:18 am

Re: portage-2.2: emerge-webrsync and empty directory

  • Quote

Post by unknown2 » Wed Sep 11, 2013 11:58 pm

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

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

Code: Select all

$ 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: Select all

mkdir -p /custom/tmp/portage/tree/profiles
echo "gentoo" > /custom/tmp/portage/tree/profiles/repo_name
chown -R portage:portage /custom/tmp/portage/

Code: Select all

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
Top
unknown2
n00b
n00b
Posts: 29
Joined: Tue Aug 14, 2012 1:18 am

Re: portage-2.2: emerge-webrsync and empty directory

  • Quote

Post by unknown2 » Sun Sep 15, 2013 1:09 am

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
Top
statikregimen
Apprentice
Apprentice
Posts: 173
Joined: Sat Jul 16, 2011 7:31 am
Location: USA/Michigan
Contact:
Contact statikregimen
Website

  • Quote

Post by statikregimen » Wed Oct 16, 2013 6:53 am

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: Select all

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...
Top
kurly
Apprentice
Apprentice
Posts: 260
Joined: Mon Apr 02, 2012 4:47 pm

  • Quote

Post by kurly » Wed Oct 16, 2013 8:21 am

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.
Top
statikregimen
Apprentice
Apprentice
Posts: 173
Joined: Sat Jul 16, 2011 7:31 am
Location: USA/Michigan
Contact:
Contact statikregimen
Website

  • Quote

Post by statikregimen » Wed Oct 16, 2013 10:37 am

Ah, very good; thank you!
Top
666threesixes666
Veteran
Veteran
User avatar
Posts: 1248
Joined: Tue May 31, 2011 9:46 pm
Location: 42.68n 85.41w
Contact:
Contact 666threesixes666
Website

  • Quote

Post by 666threesixes666 » Wed Oct 16, 2013 2:21 pm

emerge --sync worked regardless the error for me, just rebuilt the laptops gentoo from scratch
http://www.funtoo.org/
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

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