Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134743 - portage-2.1_rc3 fetch error
Summary: portage-2.1_rc3 fetch error
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-05-29 03:18 UTC by Constantine Kardaris
Modified: 2006-05-29 23:23 UTC (History)
1 user (show)

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


Attachments
use trusty selinux_aux functions (selinux.patch,513 bytes, patch)
2006-05-29 04:15 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Constantine Kardaris 2006-05-29 03:18:30 UTC
i got some fetch errors after i upgraded to portage-2.1_rc3.
the last revision of rc2 works fine.
an example:

emerge binutils

Calculating dependencies... done!
>>> Emerging (1 of 1) sys-devel/binutils-2.16.1-r2 to /
>>> Downloading http://files.gentoo.gr/distfiles/binutils-2.16.1-patches-1.9.tar.bz2
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3513, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 2051, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2888, in doebuild
    if need_distfiles and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 2205, in fetch
    con = selinux.getcontext()
  File "/usr/lib/portage/pym/portage_selinux.py", line 11, in getcontext
    return selinux.getcon()[1]
TypeError: getcon() takes exactly 1 argument (0 given)


Portage 2.1_rc3-r1 (selinux/2005.1/amd64, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16.17 x86_64)
=================================================================
System uname: 2.6.16.17 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox selinux sfperms strict"
GENTOO_MIRRORS="http://files.gentoo.gr"
LINGUAS="en el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa amd64 apache2 avi berkdb blas cairo cdr cjk crypt cups dbus dvd dvdr emul-linux-x86 fam ffmpeg firefox fortran gamin gif gimpprint gnome graphviz gtk gtk2 gtkhtml hal hdf5 imlib immqt-bc java jpeg kde kdeenablefinal lapack mad matroska mime motif moznocompose moznoirc moznomail mp3 mpeg ncurses nls nntp nosendmail nptl nptlonly nvidia ogg oggvorbis opengl pam pcre perl php plotutils png ppds python qt quicktime readline ruby sbcl selinux spell ssl svg tcltk tcpd tetex tidy tiff truetype unicode usb userlocales vorbis xine xmms xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_el userland_GNU video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2006-05-29 04:15:05 UTC
Created attachment 87790 [details, diff]
use trusty selinux_aux functions

Can you please test this patch?  If you save it as /tmp/selinux.patch, you can apply it as follows:

cd /usr/lib/portage
patch -p0 < /tmp/selinux.patch
Comment 2 Constantine Kardaris 2006-05-29 04:37:08 UTC
it works ok for me
Comment 3 Zac Medico gentoo-dev 2006-05-29 05:07:22 UTC
(In reply to comment #2)
> it works ok for me

Thanks for testing.  The patch is in svn r3438.  Since this only affects selinux users, I've added the patch to portage-2.1_rc3-r1 (no need to revbump).
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-29 16:11:13 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > it works ok for me
> 
> Thanks for testing.  The patch is in svn r3438.  Since this only affects
> selinux users, I've added the patch to portage-2.1_rc3-r1 (no need to revbump).
> 

I don't see how it affecting selinux only != a revbump.

If the ebuild changes what gets installed, you revbump, regardless of the affected class of users.

Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-05-29 16:19:40 UTC
(In reply to comment #4)
> If the ebuild changes what gets installed, you revbump, regardless of the
> affected class of users.

Not completely true, it's a cost/benefit question. In this case I'd probably agree with you though as portage updates don't cost much, but OTOH it's a tiny usergroup and looking at the past few weeks we'll get a revbump soon anyway.
Comment 6 Zac Medico gentoo-dev 2006-05-29 20:17:36 UTC
Okay, so I twisted this part a little and used it for a runtime error instead of a compile time error:

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=3&chap=1

Likewise, if you fix a compilation problem in the ebuild that was affecting some users, there is no need to bump the revision number, since those for whom it worked perfectly would see no benefit in installing a new revision, and those who experienced the problem do not have the package installed (since compilation failed) and thus have no need for the new revision number to force an upgrade.

I'll go ahead with the revbump...
Comment 7 Zac Medico gentoo-dev 2006-05-29 23:23:36 UTC
This has been released in 2.1_rc3-r2.