Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308109 - emerge --sync broken on solaris
Summary: emerge --sync broken on solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-06 20:37 UTC by Eric Meddaugh
Modified: 2010-03-06 20:41 UTC (History)
0 users

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 Eric Meddaugh 2010-03-06 20:37:48 UTC
Ran: emerge --sync

emerge is now broke.

emerge --sync
>>> Starting rsync with rsync://81.93.240.53/gentoo-portage-prefix...
>>> Checking server timestamp ...
  ____            _
 / ___| ___ _ __ | |_ ___   ___
| |  _ / _ \ '_ \| __/ _ \ / _ \
| |_| |  __/ | | | || (_) | (_) |
 \____|\___|_| |_|\__\___/ \___/

                 __ _
 ____  _ __ ___ / _(_)_  __
/ '_ \| '__/ _ \ |_| \ \/ /
| |_) | | |  __/  _| |>  <
| .__/|_|  \___|_| |_/_/\_\
|_|

Your rsync server today is prefix.gentooexperimental.org

<....snip....>

Number of files: 49742
Number of files transferred: 490
Total file size: 87849506 bytes
Total transferred file size: 2686825 bytes
Literal data: 2686825 bytes
Matched data: 0 bytes
File list size: 1171076
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 35925
Total bytes received: 2053633

sent 35925 bytes  received 2053633 bytes  167164.64 bytes/sec
total size is 87849506  speedup is 42.04


Performing Global Updates: /sys_tools/usr/portage/profiles/updates/3Q-2004
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
...............................................................................................................................................................................................


Performing Global Updates: /sys_tools/usr/portage/profiles/updates/1Q-2010
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
  s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
  p='update /etc/portage/package.*'
...........................................................
Traceback (most recent call last):
  File "/sys_tools/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/sys_tools/usr/lib/portage/pym/_emerge/main.py", line 1472, in emerge_main
    return action_sync(settings, trees, mtimedb, myopts, myaction)
  File "/sys_tools/usr/lib/portage/pym/_emerge/actions.py", line 2211, in action_sync
    if _global_updates(trees, mtimedb["updates"]):
  File "/sys_tools/usr/lib/portage/pym/portage/_global_updates.py", line 78, in _global_updates
    world_file = os.path.join(root, EPREFIX_LSTRIP, WORLD_FILE)
NameError: global name 'EPREFIX_LSTRIP' is not defined

Cannot "emerge portage" as root.  I had to recover from backup to get working again.



Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -s openssl (as root) appears broke
3. emerge -s openssl (as non-root) appear to work




emerge --info
Portage 2.2.00.15742-prefix (prefix/sunos/solaris/5.10/x86, gcc-4.4.3, unavailable, 5.10 i86pc)
=================================================================
System uname: Solaris-2.10-i86pc-i386-32bit-ELF
Timestamp of tree: Sat, 06 Mar 2010 20:06:22 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4
dev-util/cmake:      2.8.0-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.2-r00.1, 1.11.1
sys-devel/binutils:  2.20.51.0.4
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="~x86-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-pc-solaris2.10"
CFLAGS="-O2 -pipe"
CHOST="i386-pc-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CPPFLAGS="-I/sys_tools/usr/include"
CXXFLAGS="-O2 -pipe"
DISTDIR="/sys_tools/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-L/sys_tools/usr/lib -R/sys_tools/usr/lib -L/sys_tools/lib -R/sys_tools/lib"
PKGDIR="/sys_tools/usr/portage/packages"
PORTAGE_CONFIGROOT="/sys_tools/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/sys_tools/var/tmp"
PORTDIR="/sys_tools/usr/portage"
PORTDIR_OVERLAY="/sys_tools/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="cracklib cxx kerberos modules ncurses nls prefix readline ssl unicode x86-solaris zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http auth_digest" ELIBC="SunOS" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fabian Groffen gentoo-dev 2010-03-06 20:41:19 UTC
This is fixed in the latest version of portage, sorry for the inconvenience.

You can solve it by adding

from portage.const import EPREFIX_LSTRIP

at the top import section of your ${EPREFIX}/usr/lib/portage/pym/portage/_global_updates.py