Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61833 - d2x ebuild always builds a debug version of d2x due to a typo
Summary: d2x ebuild always builds a debug version of d2x due to a typo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-26 10:26 UTC by Bertram Felgenhauer
Modified: 2004-08-26 12:08 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 Bertram Felgenhauer 2004-08-26 10:26:35 UTC
The d2x ebuild (games-action/d2x/d2x-0.2.5-r1.ebuild) always builds a debug version of d2x regardless of the "debug" USE settings.

The following patch fixes the problem (it applies to both d2x-0.2.5 and ...-r1):

--- d2x-0.2.5-r1.ebuild 2004-08-26 17:36:34.997281112 +0200
+++ d2x-0.2.5-r1.ebuild 2004-08-26 17:37:02.791042861 +0200
@@ -58,8 +58,8 @@
        # --disable-network --enable-console
        local myconf="$(use_enable x86 assembler)"
        use debug \
-               && debugconf="${myconf} --enable-debug --disable-release" \
-               || debugconf="${myconf} --disable-debug --enable-release"
+               && myconf="${myconf} --enable-debug --disable-release" \
+               || myconf="${myconf} --disable-debug --enable-release"
        # we do this because each of the optional guys define the same functions
        # in gr, thus when they go to link they cause redefine errors ...
        # we build each by it self, save the binary file, clean up, and start over


Reproducible: Always
Steps to Reproduce:
1. USE="-debug" emerge d2x
2. either look for the features in the compile log (at the end of configure) or
   start d2x-(sdl|gl|...) and see that it has a LOAD LEVEL... menu entry in the
   main menu - which is a debug feature.

Actual Results:  
(in compile log)
        d2x has been configured successfully.

        Platform(s): linux sdl
        Features   : network fastfileio debug  

        Shared game data directory (unix only): /usr/share/games/d2x


Expected Results:  
(in compile log)
        d2x has been configured successfully.

        Platform(s): linux sdl
        Features   : network fastfileio release  

        Shared game data directory (unix only): /usr/share/games/d2x


Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.8.1
)
=================================================================
System uname: 2.6.8.1 i686 AMD Athlon(TM) XP 2500+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O9 -mcpu=athlon-xp -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s
hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/te
x/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O9 -mcpu=athlon-xp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/dis
tributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 avi cdr crypt cups curl dga doc dvd emacs ethereal f77 fooma
ticdb gd gif gpm gtk gtk2 imagemagick imlib java jpeg libg++ libwww mmx mozilla 
mpeg ncurses no_wxgtk1 oggvorbis opengl oss pam pdflib perl plotuitls png python
 qt quicktime readline scanner sdl slang spell ssl tcpd tetex truetype usb x86 x
ml2 xmms xv zlib"
Comment 1 Bertram Felgenhauer 2004-08-26 10:31:23 UTC
*** Bug 61834 has been marked as a duplicate of this bug. ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-08-26 12:08:33 UTC
Done.  Thanks for the bug report.