Bug 59674 - Widelands - new package
|
Bug#:
59674
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: enhancement
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: elias_kunnas@welho.com
|
|
Component: Games
|
|
|
URL:
http://widelands.sourceforge.net/
|
|
Summary: Widelands - new package
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2004-08-07 02:13 0000
|
Widelands is a game similar to Bluebyte's Settlers 2
Reproducible: Always
Steps to Reproduce:
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.
working fine for me (on x86)
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)
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
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
ebuild for b9 works here
build, too
should be in portage I think.
Peter: is that patch still needed on 0.0.9?
I made the patch to compile and run 0.0.9 on AMD64.
The patch makes widelands ~amd64.
Works fine on my amd64 box here too (after sed'ing the machdep.h file)
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
sedfixed ppc, it isn't gcc4 friendly anyway...
This bug is about adding the package to portage. open a new bug for any other
issues.