Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98689 - adonthell-0.3.4a doesnt configure properly with FEATURES=userpriv
Summary: adonthell-0.3.4a doesnt configure properly with FEATURES=userpriv
Status: RESOLVED FIXED
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: 2005-07-11 10:13 UTC by David 'Bombe' Roden
Modified: 2005-07-13 17:53 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 David 'Bombe' Roden 2005-07-11 10:13:34 UTC
When emerging adonthell-0.3.4a recently I noticed that the configure script
chose not to install Ogg Vorbis support on my system, contrary to USE flags and
installed libraries. Digging in the config.log file I found that a missing
/usr/games/include directory is the cause. After creating the directory and
chgrp/chmod-ing it to games and 0750 the error remained as emerge runs the
compiling in the sandbox.

Reproducible: Always
Steps to Reproduce:
1. emerge adonthell
2.
3.

Actual Results:  
The configure script chose not to install Ogg Vorbis support, everything else is
working fine.

Expected Results:  
Install adonthell with Ogg Vorbis support.

Somewhen the directory /usr/games/include should be created, or adonthell's
configure script should not use the /usr/games/include directory when checking
for Ogg Vorbis.

--- emerge info ---

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.80GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
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.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=pentium3 -mmmx -msse -msse2 -mfpmath=sse
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=pentium3 -mmmx -msse -msse2 -mfpmath=sse
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://gentoo.mirror.solnet.ch
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.ITDNet.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 4nptl X a52 aac aalib acpi alsa avi berkdb bitmap-fonts bzip2 cdr crypt
cups curl divx4linux dv dvd dvdr dvdread eds emboss encode fam fame ffmpeg flac
foomaticdb fortran gdbm gif gnome gnutls gpm gstreamer gtk gtk2 i8x0 ieee1394
imagemagick imlib ipv6 jack jack-tmpfs java javamail jikes jms jmx jpeg jpeg2k
junit kde libg++ libwww lzo mad matroska md5sum mikmod mjpeg mmap mmx mng
mozilla mp3 mpeg mysql nas ncurses network nptl ogg oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba scanner sdl slang sndfile
speex sse sse2 ssl svg tcltk tcpd theora tiff truetype truetype-fonts
type1-fonts unicode vidix vorbis wmf xine xml xml2 xmms xv xvid yv12 zlib
video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

--- end of: emerge info ---
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-11 13:22:10 UTC
Does it work for you with FEATURES="-userpriv" or if you add user portage to
games group?
Comment 2 David 'Bombe' Roden 2005-07-11 14:32:58 UTC
With FEATURES="-userpriv":

[...]
checking for freetype-config... /usr/bin/freetype-config
checking for FreeType -- version >= 6.0.0... yes
checking for Vorbis... yes
checking for python... /usr/bin/python
checking for Python header files... found
[...]

So, this works.

After "gpasswd -a portage games":

[...]
checking for FreeType -- version >= 6.0.0... yes
checking for Vorbis... no
*** Could not run Vorbis 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 Vorbis was incorrectly installed
*** or that you have moved Vorbis since it was installed.
Disabling OggVorbis support
checking for python... /usr/bin/python
[...]

[root@natrium:~] groups portage
games portage

From /var/tmp/portage/adonthell-0.3.4a/work/adonthell-0.3.4/config.log:

configure:21842: i686-pc-linux-gnu-gcc -o conftest -g -Wall -fno-exceptions
-I/usr/games/include    conftest.c -lz  -L/usr/games/lib -lvorbis -lm
-lvorbisenc  >&5
cc1: /usr/games/include: Permission denied

So, adding user portage to group games does NOT help.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-11 15:45:46 UTC
(In reply to comment #2)
> With FEATURES="-userpriv":
> 
> [...]
> checking for freetype-config... /usr/bin/freetype-config
> checking for FreeType -- version >= 6.0.0... yes
> checking for Vorbis... yes
> checking for python... /usr/bin/python
> checking for Python header files... found
> [...]
> 
> So, this works.

OK, seems like the ebuild needs RESTRICT="nouserpriv"
Comment 4 SpanKY gentoo-dev 2005-07-11 20:46:32 UTC
more like adonthell shouldnt be adding /usr/games/include to include search path
Comment 5 David 'Bombe' Roden 2005-07-12 03:07:43 UTC
(In reply to comment #4)
> more like adonthell shouldnt be adding /usr/games/include to include search path

Right... the culprit seems to be in acinclude.m4, around line 6319, where
$prefix/include is added to the compiler flags for the vorbis test. What about
adding "--with-vorbis=/usr" to src_compile?
Comment 6 SpanKY gentoo-dev 2005-07-13 17:53:08 UTC
thanks, added --with-vorbis=${T} to work around the issue ... i dont really have
the energy to patch the autotools to remove the ugly code ;)