Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python 2.7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 169
Location: Philadelphia

PostPosted: Sun Jan 27, 2013 9:40 pm    Post subject: Python 2.7 Reply with quote

I just finished a Gentoo install with a nomultilib and hardened setup. I've never used these options before and I am having trouble which I don't recall ever running in to.

when I try to install python-2.7.3-r2 I get sandbox access violations. below is the sandbox log it pointed to. Has anyone ever run in to this?

Code:

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: link
S: deny
P: /run/sem.autoconf
A: /run/sem.autoconf
R: /run/sem.autoconf
C: ./conftest

F: unlink
S: deny
P: /run/sem.rvv6B7
A: /run/sem.rvv6B7
R: /run/sem.rvv6B7
C: ./conftest

F: link
S: deny
P: /run/sem.autocftw
A: /run/sem.autocftw
R: /run/sem.autocftw
C: ./conftest

F: unlink
S: deny
P: /run/sem.LLFWGc
A: /run/sem.LLFWGc
R: /run/sem.LLFWGc
C: ./conftest
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 169
Location: Philadelphia

PostPosted: Mon Jan 28, 2013 12:37 pm    Post subject: Reply with quote

Isn't the sandbox used on non-hardened installs as well? why am I just having this problem now?
Is it typical for python to try and access the /run directory?
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


Joined: 30 Jun 2002
Posts: 2503
Location: Richmond, BC, Canada

PostPosted: Tue Jan 29, 2013 12:59 am    Post subject: Reply with quote

Can you please post the output of:
Code:
 emerge --info =dev-lang/python-2.7.3-r2

_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 169
Location: Philadelphia

PostPosted: Tue Jan 29, 2013 1:24 pm    Post subject: Reply with quote

Sorry in advance but pastebin has python dependancies.....
here you go

Code:

Portage 2.1.11.31 (hardened/linux/amd64/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.7.4-build7 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.7.4-build7-x86_64-Intel-R-_Core-TM-_i3-2330M_CPU_@_2.20GHz-with-gentoo-2.1
Timestamp of tree: Sun, 27 Jan 2013 20:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri gdbm gpm gtk hardened iconv ipv6 justify mmx modules mudflap ncurses nls nptl openmp pam pax_kernel pcre qt4 readline session sse sse2 ssl tcpd unicode urandom zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
moamahi
n00b
n00b


Joined: 10 Jan 2004
Posts: 5

PostPosted: Tue Jan 29, 2013 1:31 pm    Post subject: same problem Reply with quote

Same problem here, new system

error output http://pastebin.com/index/JVxZLRwe
emerge --info http://pastebin.com/Nsb2rkzr

Thank you in advance
Back to top
View user's profile Send private message
prometheanfire
Developer
Developer


Joined: 21 Apr 2005
Posts: 87
Location: San Antonio, TX USA

PostPosted: Tue Jan 29, 2013 2:58 pm    Post subject: Reply with quote

I have not been able to reproduce (tested by running the following).

Code:
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" USERLAND="GNU" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" ELIBC="glibc" USE="acl alsa amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri gdbm gpm gtk hardened iconv ipv6 justify mmx modules mudflap ncurses nls nptl openmp pam pax_kernel pcre qt4 readline session sse sse2 ssl tcpd unicode urandom zlib" ebuild /usr/portage/dev-lang/python/python-2.7.3-r2.ebuild install


Here is my emerge --info for my installed version as well (not what I tested, but also worksforme).

http://dev.gentoo.org/~prometheanfire/logs/e-info-python2_7.log
_________________
-- Matthew Thode (prometheanfire)
Back to top
View user's profile Send private message
moamahi
n00b
n00b


Joined: 10 Jan 2004
Posts: 5

PostPosted: Tue Jan 29, 2013 3:25 pm    Post subject: sandbox Reply with quote

Not sure but looks like a sandbox problem, infact emerging unsatable version ( ~amd64 sandbox 2.6). I finally compile python 2.7
Back to top
View user's profile Send private message
prometheanfire
Developer
Developer


Joined: 21 Apr 2005
Posts: 87
Location: San Antonio, TX USA

PostPosted: Tue Jan 29, 2013 3:42 pm    Post subject: Reply with quote

Well, as long as a solution is found... I wonder why it messed up with your sandbox and not mine.
_________________
-- Matthew Thode (prometheanfire)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum