First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 19842
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Tom Ward <jesus@warwickcompsoc.co.uk>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 19842 depends on: Show dependency tree
Show dependency graph
Bug 19842 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-04-23 12:09 0000
If offensive quotes are enabled, the emerge of fortune-mod-9708 goes into an
infinite 
loop attempting to rotate the offensive quotes. The problem is with the test in
rot.c, 
which compares a char against EOF, and always returns true on this platform. 

powerpc-unknown-linux-gnu-gcc    -c -o rot.o rot.c 
rot.c: In function `main': 
rot.c:13: warning: comparison is always true due to limited range of data type 
powerpc-unknown-linux-gnu-gcc  -o rot rot.o 

Trivial fix: 

fortune-mod-9708/utils/rot.c:  
11c11 
<     char a, b; 
--- 
>     int a, b; 

System details: 

Portage 2.0.47-r10 (default-ppc-1.4, gcc-3.2.1, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20-ben10 ppc 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo 
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="oss dvd xv libwww jpeg nls mitshm gif gnome mozilla png truetype ppc 
gnome-libs gdbm berkdb slang readline arts guile X sdl gpm tcpd pam ssl perl
python 
esd imlib oggvorbis gtk qt motif opengl kde ipv6 tcltk fbcon aalib" 
COMPILER="gcc3" 
CHOST="powerpc-unknown-linux-gnu" 
CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" 
CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" 
ACCEPT_KEYWORDS="ppc" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
FEATURES="ccache distcc"

------- Comment #1 From SpanKY 2003-06-27 22:51:21 0000 -------
cleaned up the ebuild and added your patch ... thanks :) 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/fortune-mod/fortune-mod-9708-r1.ebuild.diff?r1=1.11&r2=1.12 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/fortune-mod/files/9708-Makefile.patch?rev=1.1&content-type=text/vnd.viewcvs-markup 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/fortune-mod/files/9708-ppc-rot.patch?rev=1.1&content-type=text/vnd.viewcvs-markup 

First Last Prev Next    No search results available      Search page      Enter new bug