Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237841 - FEATURES=userpriv supertux-0.3.1 does not configure due to restrictive /usr/games permissions
Summary: FEATURES=userpriv supertux-0.3.1 does not configure due to restrictive /usr/g...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-16 14:14 UTC by Wonko
Modified: 2008-09-17 00:52 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 Wonko 2008-09-16 14:14:33 UTC
supertux fails configuring due to missing libogg, but this is wrong. The real cause is that the portage user does not have access to /usr/games, so a configure test program fails with "cc1: error: /usr/games/include: Permission denied".

Reproducible: Always

Steps to Reproduce:
FEATURES=userpriv emerge supertux-0.3.1

Actual Results:  
[...]
checking for Ogg... no
*** Could not run Ogg test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means Ogg was incorrectly installed
*** or that you have moved Ogg since it was installed.
configure: error: Please install libogg

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/games-arcade/supertux-0.3.1/work/supertux-0.3.1/config.log


Expected Results:  
It should have built.

configure creates a little C program to test for libogg availability. The command line used is:
i686-pc-linux-gnu-gcc -o conftest -march=athlon-xp -O2 -pipe -fforce-addr 
-fomit-frame-pointer -I/usr/games/include conftest.c -L/usr/games/lib -logg

This fails because my permissions of /usr/games are rwxr-x---.

Workarounds:
- use FEATURES=-userpriv
- add portage user to games group
- fix configure script, the C program runs fine without the -I/usr/games/include

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-tuxonicenoagpgart i686)
=================================================================
System uname: 2.6.26-tuxonicenoagpgart i686 AMD Sempron(tm) Processor 3000+
Timestamp of tree: Tue, 16 Sep 2008 10:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/conf.avail /etc/fonts/fonts.conf /etc/gconf /etc/openldap/schema /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/privoxy/templates /etc/revdep-rebuild /etc/sane.d /etc/sound/events /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /etc/webmin /etc/xdg/xfce4 /usr/share/X11/xkb /usr/share/texmf /usr/share/texmf/dvips/config"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg ccache collision-protect distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/swegener /usr/portage/local/layman/armagetron /usr/portage/local/layman/zugaina /usr/portage/local/layman/nx"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi aim alsa apm audiofile bash-completion bcmath berkdb bluetooth branding bzip2 cdparanoia cdr cli cracklib crypt ctype cups cvs dbus dga dio directfb doc dri dvb dvd dvdr dvdread encode fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gd gdbm ggi gif gimp ginac gphoto gpm gtk gtk2 hal iconv ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal kdexdeltas latex lirc lm_sensors mad maildir matrox midi mikmod mime mmx mng modplug motif mp3 mpeg mplayer mudflap musicbrainz nas ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcre pdf perl php plotutils png ppds pppd python qt3 qt4 quicktime radius readline real recode reflection ruby samba scanner sdl session slang slp sndfile sockets sox speex spell spl sse ssl subversion svg svga tcltk tcpd tetex theora threads tiff truetype unicode usb videos visualization vorbis win32codecs wma wmf wxwindows x86 xine xml xorg xosd xpm xscreensaver xulrunner xv xvid 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" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="kbd keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2008-09-17 00:27:22 UTC
supertux-0.3.1 isn't in portage.
Comment 2 Wonko 2008-09-17 00:52:10 UTC
Whoops. You are right of course. Sorry for that. I was not aware of using the zugaina overlaylay. Version 0.1.3 (in portage) is not affected.

I will report this directly at supertux.lethargik.org. Sorry for the trouble.