Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 59674
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Elias Kunnas <elias_kunnas@welho.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
widelands-0.0.8.ebuild widelands-0.0.8.ebuild text/plain Elias Kunnas 2004-08-07 04:41 0000 911 bytes Details
widelands-0.0.8.ebuild games-strategy/widelands-0.0.8 text/plain Christoph Brill (egore) 2004-12-20 08:16 0000 918 bytes Details
widelands-0.9.ebuild My ebuild for b9 of widelands text/plain Jan Marten Simons 2005-01-14 05:53 0000 1.51 KB Details
widelands-0.0.9.ebuild games-strategy/widelands-0.0.9 text/plain Jan Simons 2005-01-21 18:35 0000 928 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

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

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


Not eligible to see or edit group visibility for this bug.






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


Description:   Opened: 2004-08-07 02:13 0000
Widelands is a game similar to Bluebyte's Settlers 2

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Elias Kunnas 2004-08-07 04:41:25 0000 -------
Created an attachment (id=36936) [details]
ebuild

Ok, here's an ebuild for this. I am not sure that on which architectures will
this run, so I just put those mentioned in sourceforge download page, x86 and
ppc.

------- Comment #2 From Christoph Brill (egore) 2004-08-14 04:57:14 0000 -------
working fine for me (on x86)

------- Comment #3 From Stefan Schweizer 2004-09-25 14:06:08 0000 -------
also fine here, renamed to 0.0.8 and changed the MY_V code to:

MY_V="b${PV:4:4}"

Then it builds and runs nice(pentium 4)

------- Comment #4 From Christoph Brill (egore) 2004-12-20 08:16:33 0000 -------
Created an attachment (id=46442) [details]
games-strategy/widelands-0.0.8

Ebuild with suggestion from Comment #3 (this one actually emerges 0.0.8, not
like the one above which is only named 0.0.8 and installs 0.0.7)

------- Comment #5 From Anton Romanov 2005-01-12 08:14:38 0000 -------
works fine for me with build 9
(just renaming to widelands-0.0.9.ebuild)

now when the game is finally playable think it should be in portage

------- Comment #6 From Peter `MathFox' Roozemaal 2005-01-12 13:16:41 0000 -------
With a one line patch to machdep.h the game also runs on amd64.

--- src/machdep.h.orig      2005-01-12 22:15:03.815622679 +0100
+++ src/machdep.h   2005-01-12 22:11:12.486265638 +0100
@@ -32,7 +32,7 @@
 #undef P_LITTLE_ENDIAN
 #define P_BIG_ENDIAN
 #define P_ALIGNMENT
-#elif defined (__i386__)
+#elif defined (__i386__) || defined (__amd64__)
 #undef P_BIG_ENDIAN
 #define P_LITTLE_ENDIAN
 #undef P_ALIGNMENT

------- Comment #7 From Jan Marten Simons 2005-01-14 05:53:17 0000 -------
Created an attachment (id=48457) [details]
My ebuild for b9 of widelands

I've created this ebuild (as I forgot to check here first). Maybe one could
merge both.

------- Comment #8 From Mirko D. Walter 2005-01-21 06:25:02 0000 -------
ebuild for b9 works here
build, too
should be in portage I think.

------- Comment #9 From Jan Simons 2005-01-21 18:35:11 0000 -------
Created an attachment (id=49156) [details]
games-strategy/widelands-0.0.9

version bump of 0.0.8-ebuild (works for me)

------- Comment #10 From Chris Gianelloni (RETIRED) 2005-02-08 14:54:18 0000 -------
Peter: is that patch still needed on 0.0.9?

------- Comment #11 From Peter `MathFox' Roozemaal 2005-02-08 15:08:41 0000 -------
I made the patch to compile and run 0.0.9 on AMD64.

The patch makes widelands ~amd64.

------- Comment #12 From Bernard Cafarelli 2005-04-01 14:25:45 0000 -------
Works fine on my amd64 box here too (after sed'ing the machdep.h file)

------- Comment #13 From Chris Gianelloni (RETIRED) 2005-05-04 19:49:43 0000 -------
Added to CVS...

------- Comment #14 From nixnut 2005-10-29 05:18:41 0000 -------
Did anyone actually test this on a ppc before adding the ~ppc keyword?
I get an architecture not supported error.

 * Applying widelands-0.0.9-amd64.patch ...                               [ ok ]

>>> Source unpacked.
mkdir -p src/native-release src src/native-release/ui/ui_fs_menus
src/native-release/ui/ui_basic src/native-release/editor
src/native-release/editor/ui_menus src/native-release/editor/tools
g++ -pipe -Wall -I/usr/include/SDL -D_REENTRANT  -finline-functions -ffast-math
-funroll-loops -funroll-all-loops -fexpensive-optimizations -O3 -DNDEBUG -Isrc
-Isrc/ui/ui_fs_menus -Isrc/ui/ui_basic -Isrc/editor -Isrc/editor/ui_menus
-Isrc/editor/tools -MMD -MP -MF src/native-release/animation.o.d -c -o
src/native-release/animation.o src/animation.cc
In file included from src/filesystem.h:26,
                 from src/cmd_queue.h:24,
                 from src/instances.h:26,
                 from src/bob.h:26,
                 from src/animation.cc:22:
src/machdep.h:44:2: #error architecture not supported
In file included from src/cmd_queue.h:24,
                 from src/instances.h:26,
                 from src/bob.h:26,
                 from src/animation.cc:22:
src/filesystem.h: In member function `short int FileRead::Signed16(int)':
src/filesystem.h:125: error: `Little16' undeclared (first use this function)
src/filesystem.h:125: error: (Each undeclared identifier is reported only once
for each function it appears in.)
src/filesystem.h: In member function `ushort FileRead::Unsigned16(int)':
src/filesystem.h:126: error: `Little16' undeclared (first use this function)
src/filesystem.h: In member function `int FileRead::Signed32(int)':
src/filesystem.h:127: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `uint FileRead::Unsigned32(int)':
src/filesystem.h:128: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `float FileRead::Float(int)':
src/filesystem.h:129: error: `LittleFloat' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Signed16(short int, int)':
src/filesystem.h:180: error: `Little16' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Unsigned16(ushort, int)':
src/filesystem.h:181: error: `Little16' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Signed32(int, int)':
src/filesystem.h:182: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Unsigned32(uint, int)':
src/filesystem.h:183: error: `Little32' undeclared (first use this function)
src/filesystem.h: In member function `void FileWrite::Float(float, int)':
src/filesystem.h:184: error: `LittleFloat' undeclared (first use this function)
make: *** [src/native-release/animation.o] Error 1

!!! ERROR: games-strategy/widelands-0.0.9 failed.
!!! Function src_compile, Line 33, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message


emerge info:
Portage 2.0.51.22-r3 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12-gentoo-r6 ppc)
=================================================================
System uname: 2.6.12-gentoo-r6 ppc 7447A, altivec supported
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo                  
       "
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec berkdb bitmap-fonts crypt cups curl dlloader dvd dvdread
eds emboss esd fam fortran gdbm gif gnome gpm gstreamer gtk gtk2 hardened imlib
ipv6 jack java jpeg junit kde libwww mad motif mozilla mp3 mpeg mplayer mysql
ncurses network nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png
postgres python qt readline sdl slang spell sqlite ssl tcpd tiff truetype
truetype-fonts type1-fonts udev unicode vorbis xine xml xml2 xv zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

------- Comment #15 From Luca Barbato 2005-10-29 05:55:10 0000 -------
sedfixed ppc, it isn't gcc4 friendly anyway...

------- Comment #16 From Mr. Bones. 2005-10-29 12:09:53 0000 -------
This bug is about adding the package to portage.  open a new bug for any other
issues.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug