Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211679 - games-fps/duke3d-20040817-r2 as-needed patch
Summary: games-fps/duke3d-20040817-r2 as-needed patch
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-02-27 22:26 UTC by Harald van Dijk (RETIRED)
Modified: 2008-02-28 03:24 UTC (History)
0 users

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


Attachments
duke3d-as-needed.patch (as-needed.patch,2.71 KB, patch)
2008-02-27 22:27 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2008-02-27 22:26:02 UTC
games-fps/duke3d fails to build with --as-needed (undefined references to SDL functions; if you want them I can copy them later) due to incorrect order of linker options. The patch I will attach fixes it. If duke3d uses strip-flags though, it probably makes sense to strip ldflags as well (and avoid the whole problem).

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.3.0-rc1, glibc-2.7-r1, 2.6.24-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r2 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Tue, 26 Feb 2008 00:30:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests autopatch cvs distlocks installsources metadata-transfer multilib-strict notitles parallel-fetch sandbox sfperms sign splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://216.165.129.135/"
INSTALL_MASK="/var/www"
LANG="en_GB.UTF-8"
LDFLAGS="-Xlinker --as-needed"
LINGUAS="*"
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="/etc/portage/overlay/hiyuh /etc/portage/overlay/linamh /etc/portage/overlay/nouveau /etc/portage/overlay /var/cvs/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi ads alsa async bidi bindist bitmap-fonts boost bzip2 cddb cdparanoia chm cjk cli cracklib crypt curl cvs debugger demo disk-partition divx dri dvd ffmpeg filepicker firefox flac fortran ftp gcc-libffi gif gmp gnustep gpg gtk htmlhandbook iconv inotify ipv6 isdnlog ithreads jpeg kde ldap lesstif libffi mad mbox midi mikmod mmx mmxext mozdevelop mp3 mudflap ncurses nls nocxx nptl nptlonly objc objc++ ogg opengl pam pango pdf perl pg-intdatetime pic png postgres pppd quicktime readline realmedia reflection rtc samba sdl session spl sqlite sqlite3 sse sse2 ssl subversion svg swat tcpd teletext tetex theora threads timidity tordns truetype truetype-fonts type1-fonts unicode urandom v4l v4l2 vorbis wmp x86 xcomposite xim xml xorg xscreensaver 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" USERLAND="GNU" VIDEO_CARDS="vesa nv nouveau"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2008-02-27 22:27:00 UTC
Created attachment 144789 [details, diff]
duke3d-as-needed.patch
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2008-02-28 03:24:43 UTC
in portage.  thanks for the bug report and patch.