Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275947 - sys-apps/portage-2.1.6.13 FEATURES=sesandbox disables build.log
Summary: sys-apps/portage-2.1.6.13 FEATURES=sesandbox disables build.log
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 210077 288499
  Show dependency tree
 
Reported: 2009-06-30 13:37 UTC by Hongjiu Zhang
Modified: 2009-10-11 00:54 UTC (History)
0 users

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


Attachments
enable build.log when FEATURES=sesandbox is enabled (sesandbox_logging.patch,1.07 KB, patch)
2009-07-01 20:49 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hongjiu Zhang 2009-06-30 13:37:32 UTC
Recently I notice that if my Portage fails to emerge some packages, Portage does not say "if you need support, please put your /var/tmp/portage/xx-xx/xx/temp/build.log" any more. It only says "failed to emerge xx-xx/xxx-9.9.9". In order to correctly upload information, I set PORT_LOGDIR, but it collects too many things and I do not want to save all these logs. How can I get the original logging way work? 

Does it have something to do with ELOG settings? 

Thank you for all your help. 

Reproducible: Always




emerge --info: 

Portage 2.1.6.13 (selinux/2007.0/x86/hardened, gcc-3.4.6, 
glibc-2.9_p20081201-r2, 2.6.29-hardened_b5 i686) 
================================================================= 
System uname: 
Linux-2.6.29-hardened_b5-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-gentoo-1.12.12 
Timestamp of tree: Tue, 16 Jun 2009 02:45:01 +0000 
ccache version 2.4 [enabled] 
app-shells/bash: 4.0_p24 
dev-java/java-config: 2.1.8-r1 
dev-lang/python: 2.6.2-r1 
dev-util/ccache: 2.4-r8 
dev-util/cmake: 2.6.4 
sys-apps/baselayout: 1.12.12 
sys-apps/sandbox: 2.0 
sys-devel/autoconf: 2.13, 2.63-r1 
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 
sys-devel/binutils: 2.19.1-r1 
sys-devel/gcc-config: 1.4.1 
sys-devel/libtool: 2.2.6a 
virtual/os-headers: 2.6.29 
ACCEPT_KEYWORDS="x86 ~x86" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-O2 -fforce-addr -fomit-frame-pointer -march=prescott -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ 
/etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d 
/etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d 
/etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" 
CXXFLAGS="-O2 -fforce-addr -fomit-frame-pointer -march=prescott -pipe" 
DISTDIR="/usr/portage/distfiles" 
EMERGE_DEFAULT_OPTS="--with-bdeps y" 
FEATURES="ccache distlocks fixpackages loadpolicy parallel-fetch protect-owned 
sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch" 
GENTOO_MIRRORS="http://ftp.kaist.ac.kr/gentoo" 
LANG="en_US.UTF-8" 
LC_ALL="en_US.UTF-8" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common" 
LINGUAS="zh_TW zh af am ar as_IN az be be_BY bg bn bn_IN bo br brx bs ca cs csb 
cy da de de_FR dgo dz el en en_GB en_US en_ZA eo es es_AR es_CR es_ES es_LA et 
et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hr hsb hu 
hy id is it ja ka kk km kn kn_IN ko kok ks ku la lb lo lt lv mai mk ml ml_IN mn 
mni mr mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc or_IN pa pa_IN 
pl pt pt_BR pt_PT ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq sr sr@Latn 
sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr ts uk 
ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh_CN zh_HK zu" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_COMPRESS="lzma" 
PORTAGE_COMPRESS_FLAGS="-7" 
PORTAGE_CONFIGROOT="/" 
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="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise 
/usr/local/portage/layman/science /usr/local/portage/layman/gentoo-china" 
SYNC="rsync://mirror.averse.net/gentoo-portage" 
USE="X acl acpi alsa bash-completion berkdb branding bzip2 cairo cdr cjk cli 
cracklib crypt cups custom-cflags custom-cxxflags dbus doc dri dvd dvdr dvdread 
emboss encode examples expat fam fontconfig fortran gdbm gif git gnutls gpm 
gstreamer hal handbook hardened iconv ieee1394 ipv6 isdnlog java java6 jpeg 
jpeg2k kde latex ldap libnotify lzo mad midi mikmod mmx mmxext mng mp3 mpeg 
mudflap ncurses networkmanager nls nptl nptlonly ogg openexr opengl openmp pam 
pcre pdf perl pic png policykit ppds pppd pulseaudio python qt qt3support qt4 
quicktime readline reflection sdl selinux session spell spl sse sse2 ssl 
startup-notification svg tcpd tiff truetype unicode usb vim-syntax vorbis 
webkit win32codecs x86 xcb xcomposite xml xorg xpm xv zlib" ALSA_CARDS="ali5451 
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 
ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident 
usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" 
INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" 
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses 
text" LINGUAS="zh_TW zh af am ar as_IN az be be_BY bg bn bn_IN bo br brx bs ca 
cs csb cy da de de_FR dgo dz el en en_GB en_US en_ZA eo es es_AR es_CR es_ES 
es_LA et et_EE eu fa fi fo fr fr_CA fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN 
hr hsb hu hy id is it ja ka kk km kn kn_IN ko kok ks ku la lb lo lt lv mai mk 
ml ml_IN mn mni mr mr_IN ms mt nb nb_NO nds ne nl nn nn_NO no nr ns nso oc 
or_IN pa pa_IN pl pt pt_BR pt_PT ro ru rw sa_IN sat sd se sh sh_YU si sk sl sq 
sr sr@Latn sr_CS ss st sv sv_SE sw_TZ ta ta_IN te te_IN tg th ti_ER tk tl tn tr 
ts uk ur_IN ur_PK uz uz@cyrillic ve vi wa xh zh_CN zh_HK zu" USERLAND="GNU" 
VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt 
intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage 
siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware 
voodoo" 
Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Hongjiu Zhang 2009-06-30 13:38:02 UTC
And really portage does not create any /var/tmp/portage/xx-xx/xx/temp/build.log any more.
Comment 2 Zac Medico gentoo-dev 2009-07-01 20:36:47 UTC
FEATURES=sesandbox disables build.log due to the security policy which triggers bug 162404. However, we can enable it by default now, since we now use a pty device to capture ebuild output and the security policy apparently allows that (otherwise PORT_LOGDIR wouldn't work for you). So, we can update the logic to enable build.log if a pty device is available (if a pty device is not available we'll have to use a normal pipe and that will trigger bug 162404).
Comment 3 Zac Medico gentoo-dev 2009-07-01 20:49:50 UTC
Created attachment 196290 [details, diff]
enable build.log when FEATURES=sesandbox is enabled

If this patch is saved as /tmp/sesandbox_logging.patch, then it can be applied as follows:

  patch /usr/lib/portage/pym/portage/__init__.py /tmp/sesandbox_logging.patch
Comment 4 Hongjiu Zhang 2009-07-02 02:04:54 UTC
Aha, it sounds like that I found something left behind our minds. And it is supported now.
Comment 5 Zac Medico gentoo-dev 2009-08-03 23:11:33 UTC
This is fixed in 2.2_rc34.
Comment 6 Zac Medico gentoo-dev 2009-10-11 00:54:37 UTC
This is fixed in 2.1.7.

Note:

Due to bug #287648, you might have a problem if you enable USE=python3 on selinux, but we can handle that later if somebody files a bug.