Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263283 - games-strategy/Wesnoth 1.6 ebuild
Summary: games-strategy/Wesnoth 1.6 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 18:58 UTC by Sergey Popov
Modified: 2010-01-06 18:27 UTC (History)
3 users (show)

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


Attachments
Adding config checks for round() and poll() (add_more_config_checks.patch,3.04 KB, patch)
2009-03-24 14:25 UTC, Nils Kneuper
Details | Diff
Wesnoth 1.6 ebuild (wesnoth-dev-1.6.ebuild,4.58 KB, text/plain)
2009-03-27 11:12 UTC, Heiko Rehder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Popov 2009-03-21 18:58:53 UTC
The next stable release of Gentoo was released, an ebuild is available in its svn:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/packaging/Gentoo/wesnoth-1.6a.ebuild?rev=33929&view=markup

Reproducible: Always
Comment 1 Nils Kneuper 2009-03-23 13:49:22 UTC
A wesnoth-1.6a ebuild is already included in gentoo, currently marked as unstable on all archs. It is not the one provided in the Wesnoth rep (that one is based on scons), it is based on cmake. Thanks to Mr_Bones for creating and uploading the build!
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-03-23 17:13:04 UTC
in portage
Comment 3 Sergey Popov 2009-03-24 11:41:20 UTC
cmake definitely cannot be using in portage's ebuild currently since it's incomplete. E.g. configuration checks for sendfile(), round() etc are unimplemented. scons and autotools do not have this issue.
Comment 4 Nils Kneuper 2009-03-24 14:25:24 UTC
Created attachment 186101 [details, diff]
Adding config checks for round() and poll()

Okay, created a patch adding the "missing functionality". No idea if it will really make a difference on "normal gentoo systems", but here it is anyway...
Comment 5 Martin Jansa 2009-03-25 15:03:59 UTC
(In reply to comment #3)
> cmake definitely cannot be using in portage's ebuild currently since it's
> incomplete. E.g. configuration checks for sendfile(), round() etc are
> unimplemented. scons and autotools do not have this issue.

Also cmake version cannot detect boost libs (at least on my system with boost-1.35 and 1.37). I've also tried to symlink /usr/include/boost-1_35/boost/ /usr/include/boost, but still it fails with:

CMake Error at cmake/FindBoost.cmake:392 (MESSAGE):
  Please install the Boost libraries AND development packages
Call Stack (most recent call first):
  CMakeLists.txt:23 (find_package)

scons version from wesnoth repository compiles fine.

jama games-strategy # emerge --info
Portage 2.2_rc27 (default/linux/amd64/2008.0/desktop, gcc-4.4.0-pre9999, glibc-2.9_p20081201-r2, 2.6.29-rc8-JaMa-00250-g3bce759 x86_64)
=================================================================
System uname: Linux-2.6.29-rc8-JaMa-00250-g3bce759-x86_64-AMD_Phenom-tm-_9600_Quad-Core_Processor-with-gentoo-2.0.0
Timestamp of tree: Wed, 25 Mar 2009 08:00:05 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.6.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.51.0.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=barcelona -pipe -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=barcelona -pipe -ftree-vectorize -fvisibility-inlines-hidden -fvisibility=hidden"
DISTDIR="/tmp/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/distfiles/"
LANG="en_GB"
LC_ALL="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="cs en_GB en"
MAKEOPTS="-j1"
PKGDIR="/tmp/binpkgs"
PORTAGE_CONFIGROOT="/"
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="/tmp/tmpwork"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/dirtyepic /usr/local/portage/layman/gcc-porting /usr/local/portage/layman/enlightenment /usr/local/portage/layman/perl-experimental /usr/local/portage/layman/x11 /usr/local/portage/layman/nouveau /usr/local/portage/layman/vmware /usr/local/portage/layman/kde-testing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi aio alsa amd64 amr apache2 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo ccache cdparanoia cdr cdrom cgi cli consolekit cracklib crypt cups curl dbus dga doc dri dvb dvd dvdr dvdread emboss encode evo fam fbcon ffmpeg firefox flac flash fmod font-server ftp gd gif gkrellm glib glut gnutls gpgme gpm gps gzip hal iconv icq imagemagick imap imlib innodb ipv6 irc irda isdnlog jabber java java5 java6 javascript joystick jpeg kde kdeenablefinal kdehiddenvisibility kdeprefix kpathsea kqemu krb4 lame libcaca libnotify libwww linuxthreads-tls lirc live lm_sensors logrotate mad maildir matroska midi mikmod mime mmx mozilla mp3 mp4 mpeg mudflap multilib mysql mysqli ncurses network nls nntp nocd nptl nptlonly nsplugin ogg openal opengl openmp opera oss pam pcre pdf perl php pic png pop posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection rss rsync rtc samba sasl screen sdl session silc slang smartcard smime smtp sndfile sockets spell spl sse sse2 ssh ssl startup-notification stream subversion svg svgz symlink sysfs tcpd theora threads tiff truetype unicode usb utempter uudeview v4l v4l2 vdpau vdr videos vim vorbis wxwindows x264 xanim xcb xcomposite xinetd xml xmlreader xmlrpc xorg xosd xpm xscreensaver xsl xulrunner xv xvid zip zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en_GB en" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" USERLAND="GNU" VIDEO_CARDS="vesa nvidia nv v4l nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Heiko Rehder 2009-03-27 11:12:15 UTC
Created attachment 186407 [details]
Wesnoth 1.6 ebuild

Wesnoth dev ebuild with actual version based on scons
Comment 7 Heiko Rehder 2009-03-27 11:14:51 UTC
I'm pretty new to these things, but I'd like to proposed the ebuild (see my first post), which I got from the Wesnoth forums. It's based on scons but works fine for my 64-bit system. 
Is there any problem in using scons instead of cmake?

Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2009-03-27 14:41:17 UTC
Absolutely not.  We are not going to use scons for anything games-related unless there's no possible way to build the package using any other means.  scons is one of the worst build systems I've ever seen and I'm not going to inflict it on anyone unless I have to.
Comment 9 Sergey Popov 2009-03-27 15:40:53 UTC
That is totally inconsistent with my own experiences with scons. Though that's possibly because I want different things from a build system than you do.
Note that quality of scons scripts wildly differs from project to project, so I hope that in particular case of wesnoth you'll reconsider.
Comment 10 Martin Jansa 2009-03-30 15:06:49 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > cmake definitely cannot be using in portage's ebuild currently since it's
> > incomplete. E.g. configuration checks for sendfile(), round() etc are
> > unimplemented. scons and autotools do not have this issue.
> 
> Also cmake version cannot detect boost libs (at least on my system with
> boost-1.35 and 1.37). I've also tried to symlink /usr/include/boost-1_35/boost/
> /usr/include/boost, but still it fails with:

After "eselect boost set 1" its detected ok and emerged sucessfully.. sorry.. my fault..
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2009-04-13 21:39:56 UTC
ebuilds are working so this seems FIXED.