Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109302 - sys-apps/portage-2.0.53_rc5 fails during "config" of packages
Summary: sys-apps/portage-2.0.53_rc5 fails during "config" of packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 109424 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-14 13:47 UTC by Martin Nowack
Modified: 2006-08-09 15:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Nowack 2005-10-14 13:47:41 UTC
I tried to execute the "config" of several ebuilds, following happens  
  
ebuild /var/db/pkg/dev-db/postgresql-8.0.4/postgresql-8.0.4.ebuild config  
Adjusting PORTDIR to '/var/db/pkg'...  
--- 'profiles/arch.list' is empty or not available. Empty portage tree?  
!!! aux_get(): ebuild path for 'dev-db/postgresql-8.0.4' not specified:  
!!!            None  
!!! aux_get(): ebuild path for 'dev-db/postgresql-8.0.4' not specified:  
!!!            None  
Traceback (most recent call last):  
  File "/usr/sbin/ebuild", line 55, in ?  
    a = portage.doebuild(ebuild, arg, root, tmpsettings, debug=debug,  
cleanup=("noauto" not in portage.features))  
  File "/usr/lib/portage/pym/portage.py", line 2431, in doebuild  
    eapi = db[root][tree].dbapi.aux_get(mycpv, ["EAPI"])[0]  
  File "/usr/lib/portage/pym/portage.py", line 5277, in aux_get  
    raise KeyError, "'%(cpv)s' at %(path)s" % {"cpv":mycpv,"path":myebuild}  
KeyError: "'dev-db/postgresql-8.0.4' at None"  
  
  
I also tried it with sys-apps/portage-2.0.51.22-r3 and it functions fine - so  
it should be a portage problem. 
 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.53_rc5 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 
2.6.13-gentoo-r2agpin i686) 
================================================================= 
System uname: 2.6.13-gentoo-r2agpin i686 AMD Duron(tm) Processor 
Gentoo Base System version 1.6.13 
ccache version 2.4 [enabled] 
dev-lang/python:     2.4.2 
sys-apps/sandbox:    1.2.13 
sys-devel/autoconf:  2.13, 2.59-r7 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 
sys-devel/binutils:  2.16.1 
sys-devel/libtool:   1.5.20 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" 
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LANG="de_DE.utf8" 
LC_ALL="de_DE.utf8" 
LINGUAS="de" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 3dnow 3dnowext X a52 acpi aim alsa apache2 apm arts avi berkdb 
bitmap-fonts ccache cdparanoia cdr cpudetection crypt cups curl dbus 
divx4linux dri dvd eds emboss encode fam ffmpeg foomaticdb ftp gd gdbm gif glx 
gnome gphoto2 gpm gstreamer gtk gtk2 hal ieee1394 imap imlib ipv6 java 
javascript jpeg jpeg2k junit kde kdeenablefinal latex lcms ldap libg++ libwww 
lm_sensors mad memlimit mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl ogg 
oggvorbis opengl oscar oss pam pda pdflib perl png postgres ppds python qt 
quicktime readline real rtc samba scanner sdl session sharedmem slang spell 
sse ssl svg tcpd tetex tidy tiff truetype truetype-fonts type1-fonts unicode 
usb v4l v4l2 vcs vim-with-x vorbis webdav wifi win32codecs xine xml xml2 
xmlrpc xmms xscreensaver xv yahoo zlib video_cards_radeon linguas_de 
userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-10-14 20:56:29 UTC
This is a WONTFIX. You should use `emerge --config dev-db/postgresql` instead. 
Can the documentation be updated to reflect this please? 
 
Also, if possible, can the "ebuild application" section of the handbook be 
removed entirely and moved to the developer handbook please? Apart from the 
old "ebuild foo.ebuild config" hack, ebuild is not a user application. 
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-10-15 05:57:28 UTC
Actually I have fixed it, but "ebuild" is still a dev tool rather than a user  
tool so I'll leave this bug with docs-. 
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-10-16 08:55:55 UTC
*** Bug 109424 has been marked as a duplicate of this bug. ***
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2005-11-17 09:17:48 UTC
(In reply to comment #1)
> Also, if possible, can the "ebuild application" section of the handbook be 
> removed entirely and moved to the developer handbook please? Apart from the 
> old "ebuild foo.ebuild config" hack, ebuild is not a user application. 

Agreed. As soon as it is available wherever it should be, I'll remove it from
our handboook.
Comment 5 Jan Kundrát (RETIRED) gentoo-dev 2006-01-18 10:48:54 UTC
(In reply to comment #4)
> Agreed. As soon as it is available wherever it should be, I'll remove it from
> our handboook.

If we're talking about `emerge --config foo`, it's available in current almost-everywhere-stable sys-apps/portage-2.0.53 (except mips and ppc-macos).

Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2006-01-18 15:26:43 UTC
`emerge --config foo` is available in 2.0.51.22 as well.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2006-02-16 17:49:20 UTC
status update on this one?
Comment 8 Xavier Neys (RETIRED) gentoo-dev 2006-02-17 02:06:58 UTC
Well, comment #4 is still valid.
We could extract that chapter and turn it into a "Using the ebuild application" stand-alone guide, if you like.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2006-02-17 23:56:26 UTC
(In reply to comment #8)
> Well, comment #4 is still valid.
> We could extract that chapter and turn it into a "Using the ebuild application"
> stand-alone guide, if you like.

Looking at comments #5 and #6, how is #4 still valid?
Comment 10 nm (RETIRED) gentoo-dev 2006-05-29 09:39:37 UTC
Any news on this? Since, y'know, 2.0.54 is the "in" thing for arches, in some form or another. Still valid? Status?
Comment 11 Jason Stubbs (RETIRED) gentoo-dev 2006-05-29 10:50:14 UTC
The issue with the ebuild command was fixed. Not sure where the documentation stands. If usage of the ebuild command is still recommended to users, it needs to be updated with the appropriate emerge equivalent...
Comment 12 Łukasz Damentko (RETIRED) gentoo-dev 2006-07-26 11:11:51 UTC
Doesn't matter that it's a developer tool. This guide is written in a very accessible way and explains a lot about how Gentoo does installations of packages. I think it's a very good guide and that it should stay as a part of the Handbook, which goal is to teach users the ways of Gentoo. My vote is for WONTFIX and leaving as-is. Any counter arguments?
Comment 13 nm (RETIRED) gentoo-dev 2006-07-26 14:36:54 UTC
(In reply to comment #12)
> Doesn't matter that it's a developer tool. This guide is written in a very
> accessible way and explains a lot about how Gentoo does installations of
> packages. I think it's a very good guide and that it should stay as a part of
> the Handbook, which goal is to teach users the ways of Gentoo. My vote is for
> WONTFIX and leaving as-is. Any counter arguments?
> 

Well, it's still not quite resolved, as now I guess we need a new bug to get the right commands updated for Portage 2.1. I agree, though, that a separate guide seems a bit much.

jstubbs: what exactly should be updated then? has the actual command changed?
Comment 14 Jason Stubbs (RETIRED) gentoo-dev 2006-07-27 03:44:55 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Doesn't matter that it's a developer tool. This guide is written in a very
> > accessible way and explains a lot about how Gentoo does installations of
> > packages. I think it's a very good guide and that it should stay as a part of
> > the Handbook, which goal is to teach users the ways of Gentoo. My vote is for
> > WONTFIX and leaving as-is. Any counter arguments?
> 
> Well, it's still not quite resolved, as now I guess we need a new bug to get
> the right commands updated for Portage 2.1. I agree, though, that a separate
> guide seems a bit much.
> 
> jstubbs: what exactly should be updated then? has the actual command changed?

The command hasn't changed at all. The problem is that users use it when they really don't need to which brings about bugs with regard to "world missing packages", inapproriately setting FEATURES="keepwork" and the like.

I'm not suggesting that it be moved to its own guide, rather that it be moved to the developer guide that covers writing ebuilds, eclasses and whatever else as the ebuild tool is created specifically for developer purposes.
Comment 15 nm (RETIRED) gentoo-dev 2006-07-27 11:27:38 UTC
(In reply to comment #14)
> The command hasn't changed at all. The problem is that users use it when they
> really don't need to which brings about bugs with regard to "world missing
> packages", inapproriately setting FEATURES="keepwork" and the like.
> 
> I'm not suggesting that it be moved to its own guide, rather that it be moved
> to the developer guide that covers writing ebuilds, eclasses and whatever else
> as the ebuild tool is created specifically for developer purposes.

Putting it in the dev manual sounds reasonable.
Comment 16 Łukasz Damentko (RETIRED) gentoo-dev 2006-07-27 11:33:33 UTC
devmanual.gentoo.org or gentoo.org/proj/en/devrel/handbook?
Comment 17 Marius Mauch (RETIRED) gentoo-dev 2006-07-27 12:02:47 UTC
both?
Comment 18 Łukasz Damentko (RETIRED) gentoo-dev 2006-07-27 13:03:11 UTC
Okay. So now i'd like to hear from devrel and from plasmaroo if they want to take care of that chapter since now. As soon as they integrate it with their docs it will be removed from the user handbook. CCing all the parties involved.
Comment 19 Tim Yamin (RETIRED) gentoo-dev 2006-08-07 07:56:55 UTC
(In reply to comment #18)
> Okay. So now i'd like to hear from devrel and from plasmaroo if they want to
> take care of that chapter since now. As soon as they integrate it with their
> docs it will be removed from the user handbook. CCing all the parties involved.

I've added some detail to http://devmanual.gentoo.org/ebuild-writing/functions -- there's not too much else that needs documenting from the current user handbook section IMO so feel free to scrap things from there now.
Comment 20 Łukasz Damentko (RETIRED) gentoo-dev 2006-08-09 15:37:48 UTC
Removed from all our handbooks.