Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 474578

Summary: >=sys-apps/portage-2.2.0_alpha183: repoman complains at every action 'Location undefined for repository'
Product: Portage Development Reporter: Sergey Popov <pinkbyte>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS, REGRESSION
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 472632    

Description Sergey Popov gentoo-dev 2013-06-24 08:29:28 UTC
pinkbyte@phantom ~ $ emerge --info -v | grep PORTDIR
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rion /var/lib/layman/kde /var/lib/layman/qt /usr/local/portage/crossdev /var/lib/layman/pinkbyte"

pinkbyte@phantom ~ $ cat /etc/portage/repos.conf 
[pinkbyte]
priority = 100

pinkbyte@phantom ~ $ cat /var/lib/layman/pinkbyte/profiles/repo_name 
pinkbyte

pinkbyte@phantom ~/dev/gentoo-dev/gentoo-x86/media-gfx/feh $ repoman full

RepoMan scours the neighborhood...
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'
Location undefined for repository 'pinkbyte' referenced in '/etc/portage/repos.conf'

Note: use --include-dev (-d) to check dependencies for 'dev' profiles

RepoMan sez: "If everyone were like you, I'd be out of business!"

Little note - sys-apps/portage-2.2.0_alpha181 did not have this error
Comment 1 Sergey Popov gentoo-dev 2013-06-24 08:31:26 UTC
Full emerge --info

Portage 2.2.0_alpha184 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo-BADO x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-BADO-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:     8166320 total,    591020 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 23 Jun 2013 23:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo rion kde qt local pinkbyte
Installed sets: @kdebase-without-semantic-desktop
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -msse4.2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -msse4.2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/rion /var/lib/layman/kde /var/lib/layman/qt /usr/local/portage/crossdev /var/lib/layman/pinkbyte"
SYNC="rsync://mini-router/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion bluetooth bzip2 cairo caps cli consolekit cracklib crypt custom-cflags custom-cxxflags cxx dbus djvu dri dvd enca exif fbcon flac fontconfig fortran gif gpm iconv idn ipv6 jpeg jpeg2k kde libsamplerate lm_sensors lzma mmx mmxext mng modplug modules mp3 mpeg mudflap multilib ncurses nls nptl nsplugin ogg openal opengl openmp pam pcre png policykit qt3support qt4 readline samba sdl session sndfile sse sse2 sse3 ssl ssse3 svg syslog tcpd theora threads tiff truetype unicode usb vdpau vorbis wavpack x264 xcb xcomposite xinerama xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Arfrever Frehtes Taifersar Arahesis 2013-06-24 08:35:51 UTC
You might remove /var/lib/layman/pinkbyte from PORTDIR_OVERLAY and instead set the following in /etc/portage/repos.conf:

[pinkbyte]
location = /var/lib/layman/pinkbyte
priority = 100
Comment 3 Sergey Popov gentoo-dev 2013-06-24 08:45:50 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #2)
> You might remove /var/lib/layman/pinkbyte from PORTDIR_OVERLAY and instead
> set the following in /etc/portage/repos.conf:
> 
> [pinkbyte]
> location = /var/lib/layman/pinkbyte
> priority = 100

Unfortunately, as you see, this item comes to PORTDIR_OVERLAY through layman. I have set location in repos.conf and message is gone.

However, this parameter does not described in 'man portage'. And even more:

 repos.conf
                     Specifies site-specific repository configuration information. Note that local configuration overrides which are specified here  do  not  apply  to
                     tools  such as repoman(1) and egencache(1), since operations performed by these tools are inherently not site-specific


So, if repoman is affected by this config, this sentence should be removed.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2013-06-24 09:33:50 UTC
(In reply to Sergey Popov from comment #3)
> And even more:
> 
>  repos.conf
>    Specifies site-specific repository configuration information. Note that
>    local configuration overrides which are specified here do not apply to
>    tools such as repoman(1) and egencache(1), since operations performed
>    by these tools are inherently not site-specific
> 
> So, if repoman is affected by this config, this sentence should be removed.

I have clarified documentation in:
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commitdiff;h=5cc7fd215076d3fda765bae77e08991c8a6e0439
Comment 5 Arfrever Frehtes Taifersar Arahesis 2013-06-24 10:21:06 UTC
(In reply to Sergey Popov from comment #3)
> this item comes to PORTDIR_OVERLAY through layman.

Bug #474588 is for repos.conf and Layman interaction.
Comment 6 Arfrever Frehtes Taifersar Arahesis 2013-06-24 12:25:29 UTC
It might be sufficient to create a news item, which would say that users should correctly set location attribute in each section (except DEFAULT section) already present in repos.conf.
Comment 7 Arfrever Frehtes Taifersar Arahesis 2013-06-24 17:45:57 UTC
repoman sets PORTDIR_OVERLAY to a value not including other repositories not being masters of current repository. The warnings happen probably since commit 86d69ef86ab2a9addec6a290a1c3958bc2ba55de.
Comment 8 Arfrever Frehtes Taifersar Arahesis 2013-06-24 18:56:00 UTC
repoman calls portage.package.ebuild.config.config() with local_config=False, modifies PORTDIR_OVERLAY, calls portage.package.ebuild.config.config() again with local_config and with env containing modified PORTDIR_OVERLAY.
Porting of repoman to not use PORTDIR* might avoid warnings:
- portage.package.ebuild.config.config() could accept repositories argument
  (by default None).
- repoman could call portage.package.ebuild.config.config() with manually
  changed RepoConfigLoader object passed in repositories argument, instead
  of env argument.
Comment 9 Zac Medico gentoo-dev 2013-06-24 19:43:14 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #8)

That sounds good. Meanwhile, I've committed this quick fix:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=500f8f02ab0b35df11ac55f885832be8646cd72a
Comment 10 Zac Medico gentoo-dev 2013-06-24 21:54:06 UTC
This is fixed in 2.1.12.10 and 2.2.0_alpha185.