Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63400 - Portage-2.0.50-r11 doesnt stack make.defaults properly ('str' object has no attribute 'insert')
Summary: Portage-2.0.50-r11 doesnt stack make.defaults properly ('str' object has no a...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 63404 63410 63422 63426 69357 69401 69733 70173 70181 70823 71824 72544 72980 76934 78318 82094 84899 94166 96316 102614 102696 103532 104755 104803 107591 112340 118498 123768 129303 147105 183930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-09 03:15 UTC by Niek van der Maas
Modified: 2007-07-02 10:12 UTC (History)
11 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 Niek van der Maas 2004-09-09 03:15:18 UTC
Just did an emerge sync and here is what i get:

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)

Several other people on #gentoo are reporting the same problem. Of course I removed my profiles dir, but that didn't had any effect. Any ideas?

Reproducible: Always
Steps to Reproduce:
* emerge sync (you get the error)
* emerge -s test (you get the error)
Comment 1 Niek van der Maas 2004-09-09 03:47:00 UTC
BTW, my portage version (can only be asked after deleting the profiled dir) is:

$ emerge -V
--- 'profiles/arch.list' is empty or not available. Empty portage tree?
Portage 2.0.50-r11 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r14)
Comment 2 Niek van der Maas 2004-09-09 04:14:38 UTC
OK, i kinda "fixed" the problem (although "workarounded" describes it better). I manually upgraded my portage to version .51_pre2. Seems like my profile (default-linux/amd64/gcc34-2004.2) have some problem with my "old" (newest in ~amd64) portage version. Things seems to work alright now.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-09-09 06:15:08 UTC
*** Bug 63404 has been marked as a duplicate of this bug. ***
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-09-09 06:15:48 UTC
*** Bug 63410 has been marked as a duplicate of this bug. ***
Comment 5 Herbie Hopkins (RETIRED) gentoo-dev 2004-09-09 06:21:38 UTC
same prob here, using portage-2.0.50-r11 and profile default-linux/amd64/gcc34-2004.2 emerge -d just produces the error as above.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-09-09 06:23:27 UTC
The problem was incompatible entries in some of the profile files.
Comment 7 Thilo Six 2004-09-09 06:39:25 UTC
same Problem here

but I use /etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.2
Comment 8 Janne Ojaniemi 2004-09-09 06:46:59 UTC
emerge -d procudes the error-message. My profile is default-linux/amd64/gcc34-2004.2
Comment 9 jack_mort 2004-09-09 06:52:26 UTC
Same thing here, with profile default-linux/amd64/gcc34-2004.2
Comment 10 Lyall Pearce 2004-09-09 06:59:32 UTC
It appears that emerge refuses to work, even to the extent of 'emerge --version'
performing the rm -Rf /usr/portage/profiles makes 'emerge --version' work once more.
Performing an 'strace emerge --version' shows that immediately after reading the "/usr/portage/profiles/default-linux/x86/2004.2/make.defaults" file, the message is generated (no intervening system calls)

'emerge -d' generates nothing but the error message.

/etc/make.conf
=-=-=-
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O3 -mcpu=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"

# This one uses Internode - which appears to be slightly out of sync

GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo ftp://mirror.pacific.net.au/linux/Gentoo http://mymirror.asiaosc.org/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"

# this one uses the official mirrors - just not free to me.

#GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.internode.on.net/pub/gentoo ftp://mirror.aarnet.edu.au/pub/gentoo http://mymirror.asiaosc.org/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"

SYNC="rsync://mirror.internode.on.net/gentoo-portage"
#SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
AUTOCLEAN="yes"
FEATURES="sandbox userpriv usersandbox"
#
PORT_LOGDIR=/var/log/emerge

=-=-=-
/usr/portage/profiles/default-linux/x86/2004.2/make.defaults
=-=-=-
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/x86/2004.2/make.defaults,v 1.3 2004/08/25 13:58:05 vapier Exp $
#
# System-wide defaults for the Portage system
# See portage(5) manpage

GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"

# Please avoid enabling things by default in here if possible. Understand any
# implications with core packages. For example, if "java" is in USE and db
# has a conditional dependency on java (which it does,) then a JDK will be
# pulled in during *emerge system*!

USE="x86 oss apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk gtk2 imlib                                                          
jpeg kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis                                                                           
opengl pam pdflib png python qt quicktime readline sdl slang spell ssl                                                                             
svga tcpd truetype X xml2 xmms xv zlib"

ARCH="x86"
ACCEPT_KEYWORDS="x86"

FEATURES="sandbox sfperms"

=-=-=-
Comment 11 jack_mort 2004-09-09 07:12:18 UTC
It seems there are incompatible USE flags in the profiles, as commenting out the USE line makes emerge work again !
Comment 12 SpanKY gentoo-dev 2004-09-09 07:46:17 UTC
*** Bug 63422 has been marked as a duplicate of this bug. ***
Comment 13 SpanKY gentoo-dev 2004-09-09 07:46:53 UTC
*** Bug 63426 has been marked as a duplicate of this bug. ***
Comment 14 SpanKY gentoo-dev 2004-09-09 08:06:43 UTC
for most people, just remove /usr/portage/profiles/base/make.defaults and this should go away

for amd64 users, make sure you only have 1 make.defaults in your stacking profile path

i'll fix this up in cvs
Comment 15 Thilo Six 2004-09-09 09:01:07 UTC
I switched from

/etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.2

to

make.profile -> /usr/portage/profiles/default-x86-2004.2

that fixed it. 
Comment 16 marc baier 2004-09-09 10:18:08 UTC
is it fixed already? i did an emerge sync and now it works...
Comment 17 jack_mort 2004-09-09 14:45:34 UTC
Yes, it seems to be also fixed for me, thanks for the work !
Comment 18 Niek van der Maas 2004-09-10 01:02:01 UTC
Fixed here too, marked as FIXED.
Comment 19 Dennis Freise 2004-09-10 01:19:59 UTC
Not fixed... :(

Just synced (Duron - ~x86):

>>> Updating Portage cache...  ...done!

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)

ls -l /etc/make.profile:
/etc/make.profile -> ../usr/portage/profiles/hardened/x86
Comment 20 Myckel Habets 2004-10-27 01:06:52 UTC
I just synced the tree and got this error.
I removed /usr/portage/profile and resynced. That didn't work

/etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.2

my ACCEPT_KEYWORDS is set to "x86".
Comment 21 Myckel Habets 2004-10-27 03:00:47 UTC
changing
/etc/make.profile -> /usr/portage/profiles/default-linux/x86/2004.2

to

/etc/make.profile -> /usr/portage/profiles/default-x86-2004.2

solved the problem
Comment 22 SpanKY gentoo-dev 2004-10-27 15:03:28 UTC
it's very simple

if you're going to use cascading profiles, use 2.0.51 or better

we're not going to hold back cascading profiles for users who refuse to upgrade
Comment 23 Jason Stubbs (RETIRED) gentoo-dev 2004-10-29 04:52:51 UTC
*** Bug 69357 has been marked as a duplicate of this bug. ***
Comment 24 Bruno Crameri 2004-10-29 07:36:30 UTC
Additional Comment #21 of this bug solved my problem.
Comment 25 Jason Stubbs (RETIRED) gentoo-dev 2004-11-01 15:39:22 UTC
*** Bug 69401 has been marked as a duplicate of this bug. ***
Comment 26 Jason Stubbs (RETIRED) gentoo-dev 2004-11-01 15:39:34 UTC
*** Bug 69733 has been marked as a duplicate of this bug. ***
Comment 27 SpanKY gentoo-dev 2004-11-05 15:02:31 UTC
*** Bug 70173 has been marked as a duplicate of this bug. ***
Comment 28 SpanKY gentoo-dev 2004-11-05 15:03:43 UTC
*** Bug 70181 has been marked as a duplicate of this bug. ***
Comment 29 Tom Knight (RETIRED) gentoo-dev 2004-11-11 11:05:27 UTC
*** Bug 70823 has been marked as a duplicate of this bug. ***
Comment 30 Maxwell Grender-Jones 2004-11-13 05:52:34 UTC
Fwiw, simply changinng the symlink didn't fix it for me. I had to remove the symlink to the new version, run emerge -up world (or anything that touched emerge) and *then* make the symlink back to the old default-x86- version. (Without running emerge, I continued to get the same error message, even when the symlink was pointing to a compatible version).
Comment 31 Nathan Adams 2004-11-13 20:47:56 UTC
So the moral of the story is:

When portage told us to upgrade to >=2.0.51 *first* and *then* change the symlink, we should have followed those directions.

The /usr/portage/profiles/default-linux/x86/2004.3 profile works great *if* you first upgrade portage!!
Comment 32 SpanKY gentoo-dev 2004-11-21 15:46:01 UTC
*** Bug 71824 has been marked as a duplicate of this bug. ***
Comment 33 Jared Greenwald 2004-11-28 18:27:35 UTC
When I originally got the message to update my make.profile to 2004.3, there was not any message about updating portage first.  I got the message on three different computers and definately didn't see it on any of them.
Comment 34 Chris PeBenito (RETIRED) gentoo-dev 2004-11-29 13:54:50 UTC
*** Bug 72544 has been marked as a duplicate of this bug. ***
Comment 35 Jason Stubbs (RETIRED) gentoo-dev 2004-12-01 15:19:59 UTC
*** Bug 72980 has been marked as a duplicate of this bug. ***
Comment 36 Jason Stubbs (RETIRED) gentoo-dev 2004-12-01 15:28:14 UTC
For those of you that are having this problem with SELINUX, the solution is a little bit less straightforward. There is no flat SELINUX profile any more.

To get an SELINUX system's portage upgraded to 2.0.51:

# export ARCH="$(portageq envvar ARCH)"
# export ACCEPT_KEYWORDS="$(portageq envvar ACCEPT_KEYWORDS)"
# MYPROFILE="$(readlink -f /etc/make.profile)"
# rm /etc/make.profile
# emerge -u portage
# ln -s "$MYPROFILE" /etc/make.profile

Actually, that process should work for anybody.
Comment 37 Martin DiViaio 2004-12-01 19:27:31 UTC
Sorry, Jason, your suggestion failed.

# export ARCH="$(portageq envvar ARCH)"
# export ACCEPT_KEYWORDS="$(portageq envvar ACCEPT_KEYWORDS)"

produced null strings since portageq is returning the same error that emerge is returning.

I did manage to figure out what they should be set to by reading /etc/make.profile/make.defaults. Once I set the variables according to what was there. . .

# emerge -u portage

produced the following output:

!!! /etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)

Calculating dependencies /
emerge: there are no masked or unmasked ebuilds to satisfy virtual/libc

!!! Error calculating dependencies. Please correct.

--- BUT ---

Setting /etc/make.profile as a link to /usr/portage/profiles/hardened/x86 appears to work (at least at this point, it's in the process of downloading a bunch of stuff. . .)

Comment 38 Jason Stubbs (RETIRED) gentoo-dev 2004-12-02 15:30:32 UTC
Yes, you're right. Well, for those that can't figure it out, ARCH and ACCEPT_KEYWORDS should be your architecture's keyword, as per $PORTDIR/profiles/arch.list. The dependency problems can be bypassed with --nodeps, but selinux people should also make sure dev-python/python-selinux is installed.
Comment 39 Neil 2004-12-16 03:55:54 UTC
You don't suppose this may be related to copying the /etc directory from one installation to another, do you?
In my case I hozed a perfectly updated and smooth system and the solution was to reinstall - which I did.
I then put in my original /etc components. This is the first trouble I noticed.  The other was the strange circumstance of missing man pages.... notably:
# man emerge

gave me an empty page.

Ok (sez I), I'll just emerge emerge. Got the error.

I changed the link to make.profile and "emerge emerge" seems to be working now; but! after the first dependency, emerge repointed the make.profile to the original location. We'll see.

I can not run emerge --sync from here. Firewall.
emerge-webrsync functions but didn't help.
Comment 40 SpanKY gentoo-dev 2005-01-06 19:41:36 UTC
*** Bug 76934 has been marked as a duplicate of this bug. ***
Comment 41 Stephen Bennett (RETIRED) gentoo-dev 2005-01-17 14:33:51 UTC
*** Bug 78318 has been marked as a duplicate of this bug. ***
Comment 42 Jason Stubbs (RETIRED) gentoo-dev 2005-02-15 06:05:03 UTC
*** Bug 82094 has been marked as a duplicate of this bug. ***
Comment 43 SpanKY gentoo-dev 2005-03-13 01:41:42 UTC
*** Bug 84899 has been marked as a duplicate of this bug. ***
Comment 44 SpanKY gentoo-dev 2005-05-27 05:41:38 UTC
*** Bug 94166 has been marked as a duplicate of this bug. ***
Comment 45 Jason Stubbs (RETIRED) gentoo-dev 2005-05-27 05:43:32 UTC
*** Bug 94166 has been marked as a duplicate of this bug. ***
Comment 46 SpanKY gentoo-dev 2005-06-16 15:49:36 UTC
*** Bug 96316 has been marked as a duplicate of this bug. ***
Comment 47 Robert Muchacki (RETIRED) gentoo-dev 2005-07-19 05:28:06 UTC
For SELinux users during bootstrap:

rm /etc/make.profile
ln -s /usr/portage/profiles/hardened/x86/2.6 /etc/make.profile

export ARCH="x86"
export ACCEPT_KEYWORDS="x86"
cd /usr/portage
scripts/bootstrap.sh 

And it worked :)
Comment 48 Jason Stubbs (RETIRED) gentoo-dev 2005-08-15 08:36:56 UTC
*** Bug 102614 has been marked as a duplicate of this bug. ***
Comment 49 SpanKY gentoo-dev 2005-08-15 10:31:45 UTC
the only upgrade people have now is to set their profile to one of the
obsolete ones, upgrade portage, and then continue on their way:
rm -f /etc/make.profile
ln -s /usr/portage/profiles/obsolete/<ARCH> /etc/make.profile
Comment 50 Jakub Moc (RETIRED) gentoo-dev 2005-08-16 03:50:03 UTC
*** Bug 102696 has been marked as a duplicate of this bug. ***
Comment 51 Jakub Moc (RETIRED) gentoo-dev 2005-08-23 16:36:03 UTC
*** Bug 103532 has been marked as a duplicate of this bug. ***
Comment 52 SpanKY gentoo-dev 2005-09-03 22:18:50 UTC
*** Bug 104755 has been marked as a duplicate of this bug. ***
Comment 53 Jason Stubbs (RETIRED) gentoo-dev 2005-09-04 06:38:57 UTC
*** Bug 104803 has been marked as a duplicate of this bug. ***
Comment 54 Jakub Moc (RETIRED) gentoo-dev 2005-09-04 07:06:40 UTC
*** Bug 104803 has been marked as a duplicate of this bug. ***
Comment 55 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-29 06:13:01 UTC
*** Bug 107591 has been marked as a duplicate of this bug. ***
Comment 56 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 14:48:22 UTC
*** Bug 112340 has been marked as a duplicate of this bug. ***
Comment 57 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 02:24:13 UTC
*** Bug 118498 has been marked as a duplicate of this bug. ***
Comment 58 Jakub Moc (RETIRED) gentoo-dev 2006-01-10 03:34:22 UTC
*** Bug 118498 has been marked as a duplicate of this bug. ***
Comment 59 Jakub Moc (RETIRED) gentoo-dev 2006-02-22 16:42:34 UTC
*** Bug 123768 has been marked as a duplicate of this bug. ***
Comment 60 Jakub Moc (RETIRED) gentoo-dev 2006-04-09 02:30:00 UTC
*** Bug 129303 has been marked as a duplicate of this bug. ***
Comment 61 Gilad Odinak 2006-04-10 13:37:32 UTC
could not emerge portage or fix anything because
/bin/sed got deleted during the initial update (that failed)
copied sed from another 2004.2 gentoo box to /bin 
then followed #49 
Comment 62 Jakub Moc (RETIRED) gentoo-dev 2006-09-10 14:50:32 UTC
*** Bug 147105 has been marked as a duplicate of this bug. ***
Comment 63 Jakub Moc (RETIRED) gentoo-dev 2007-07-02 06:41:04 UTC
*** Bug 183930 has been marked as a duplicate of this bug. ***