Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215976 - games-fps/warsow 0.4.2 dedicated server does not compile (dosym libs/*.so)
Summary: games-fps/warsow 0.4.2 dedicated server does not compile (dosym libs/*.so)
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: 2008-04-03 03:13 UTC by Keith Gable
Modified: 2010-01-06 06:10 UTC (History)
0 users

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


Attachments
warsow-0.4.2.ebuild.patch (warsow-0.4.2.ebuild.patch,589 bytes, patch)
2008-04-03 03:16 UTC, Keith Gable
Details | Diff
output when I build warsow-0.4.2 (output,9.44 KB, text/plain)
2008-04-05 21:45 UTC, Mr. Bones. (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Gable 2008-04-03 03:13:48 UTC
Warsow 0.4.2 dedicated server won't compile because it tries to dosym libs/*.so, which isn't possible as "libs" doesn't exist. I wrote a patch to the ebuild to fix this and will attach it.

Reproducible: Always

Steps to Reproduce:
Comment 1 Keith Gable 2008-04-03 03:16:21 UTC
Created attachment 148161 [details, diff]
warsow-0.4.2.ebuild.patch

Patch to the ebuild to check for existence of "libs" before doing anything on it.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2008-04-03 03:43:21 UTC
Builds fine for me.  Let's have the usual info please.  emerge --info and the output from the attempted build.
Comment 3 Keith Gable 2008-04-03 03:54:12 UTC
>>> Install warsow-0.4.2 into /var/tmp/portage/games-fps/warsow-0.4.2/image/ category games-fps
/usr/lib/portage/bin/dosym: two arguments needed
 * 
 * ERROR: games-fps/warsow-0.4.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2562:  Called die
 * The specific snippet of code:
 *           dosym "$(games_get_libdir)"/${PN}/${so##*/} "${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed";
 *  The die message:
 *   dosym libs/*.so failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-fps/warsow-0.4.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-fps/warsow-0.4.2/temp/environment'.
 * 

Charmander warsow-dm # emerge --info
Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Timestamp of tree: Thu, 03 Apr 2008 01:45:04 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ "
MAKEOPTS="-j3"
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/hamsterrific"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="berkdb cli cracklib crypt cups dedicated doc dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python readline reflection session spl ssl tcpd unicode x86 xorg 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Charmander warsow-dm # emerge -pv warsow

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] games-fps/warsow-0.4.2  USE="dedicated irc -debug -openal -opengl" 0 kB

Note that it compiled after I patched the ebuild (and yes, it works)
Comment 4 Keith Gable 2008-04-03 04:12:57 UTC
Interesting:
USE="dedicated irc -opengl -openal"
  > Linking release/wsw_server.i386
  > Linking release/basewsw/cgame_i386.so
  > Linking release/basewsw/game_i386.so
  > Linking release/basewsw/ui_i386.so
  > Linking release/wswtv_server.i386

USE="dedicated irc opengl openal" on my desktop
  > Linking release/wsw_server.i386
  > Linking release/basewsw/cgame_i386.so
  > Linking release/basewsw/game_i386.so
  > Linking release/basewsw/ui_i386.so
  > Linking release/libs/irc_i386.so
  > Linking release/wswtv_server.i386

Also, even though +irc is set on the dedicated server, it didn't compile IRC. So, is IRC a client-only feature, and if so, shouldn't it only then copy libs/*.so if IRC and OpenGL are turned on in USE?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2008-04-03 17:30:32 UTC
I can't get the ebuild in portage to fail, no matter what use flags I use.

Please attach the full output from the build attempt as text/plain:

emerge -v warsow &> /tmp/output
Comment 6 Keith Gable 2008-04-03 22:34:23 UTC
Alright, it's our LAN club's dedicated server that we use every once in a while (so it lacks X, for example); I'll get this output tomorrow night at the LAN party. FWIW, the ebuild patch just adds `if [ -e libs ]; then`.

Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2008-04-03 23:09:53 UTC
yes, I'm not questioning that your patch makes it work for you - I want to understand the reason why it works fine for me and not for you.
Comment 8 Tristan Heaven (RETIRED) gentoo-dev 2008-04-05 17:46:36 UTC
it happens with USE="-* dedicated"
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2008-04-05 18:12:27 UTC
Not for me.  USE="-* dedicated" ebuild ./warsow-0.4.2.ebuild clean install works fine.
Comment 10 Tristan Heaven (RETIRED) gentoo-dev 2008-04-05 19:58:05 UTC
Well, the relevant part of the log is

  > Linking release/wsw_server.x86_64
  > Linking release/basewsw/cgame_x86_64.so
  > Linking release/basewsw/game_x86_64.so
  > Linking release/basewsw/ui_x86_64.so
  > Linking release/wswtv_server.x86_64

is that the same for you?

release/libs shouldn't exist unless the client is built
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2008-04-05 21:45:38 UTC
Created attachment 148792 [details]
output when I build warsow-0.4.2

Ok, here's the output from:

USE="-* dedicated " ebuild ./warsow-0.4.2.ebuild clean compile
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2008-04-06 02:42:01 UTC
ok, well, I don't know why it fails for you guys, but it creates a bogus symlink for me which is good enough for me to add the work around.

Fixed in cvs.  Thanks for the bug report.