Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206145 - games-strategy/ufo-ai version bump to 2.2.1
Summary: games-strategy/ufo-ai version bump to 2.2.1
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: http://ufoai.sourceforge.net/
Whiteboard:
Keywords:
: 232535 236045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-16 19:47 UTC by Jaak Ristioja
Modified: 2008-10-04 19:49 UTC (History)
8 users (show)

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


Attachments
2.2 alfa stage ebuild (ufo-ai-2.2.ebuild,3.42 KB, text/plain)
2008-01-19 00:11 UTC, Tomáš Chvátal (RETIRED)
Details
alfa 2 (ufo-ai-2.2.ebuild,3.58 KB, text/plain)
2008-01-19 12:48 UTC, Tomáš Chvátal (RETIRED)
Details
beta1 (ufo-ai-2.2.ebuild,3.67 KB, text/plain)
2008-01-19 13:47 UTC, Tomáš Chvátal (RETIRED)
Details
online check for updates in translations added (ufo.patch,142 bytes, patch)
2008-01-19 17:06 UTC, Tomáš Chvátal (RETIRED)
Details | Diff
beta2 (ufo-ai-2.2.ebuild,3.24 KB, text/plain)
2008-01-19 17:49 UTC, Tomáš Chvátal (RETIRED)
Details
beta3 (ufo-ai-2.2.ebuild,3.18 KB, text/plain)
2008-01-19 19:01 UTC, Tomáš Chvátal (RETIRED)
Details
rc1 (ufo-ai-2.2.ebuild,3.28 KB, text/plain)
2008-01-20 00:37 UTC, Tomáš Chvátal (RETIRED)
Details
RC2 (ufo-ai-2.2.ebuild,3.28 KB, text/plain)
2008-01-20 15:03 UTC, Tomáš Chvátal (RETIRED)
Details
ufo-ai-2.2.1.ebuild (ufo-ai-2.2.1.ebuild,3.29 KB, text/plain)
2008-05-02 15:53 UTC, Rémy DUPONT
Details
ufo-ai-2.2.1.ebuild with sdl-mixer dependency (ufo-ai-2.2.1.ebuild,3.45 KB, text/plain)
2008-07-11 11:24 UTC, quazgar
Details
ufo-ai-2.2.1.ebuild sdl-mixer, homepage, doc, dev (ufo-ai-2.2.1.ebuild,4.00 KB, text/plain)
2008-07-30 17:13 UTC, Jyrki Launonen
Details
ufo-ai 2.2.1 (ufo-ai-2.2.1.ebuild,3.77 KB, text/plain)
2008-08-09 13:52 UTC, Tomáš Chvátal (RETIRED)
Details
2.2.1 ebuild (ufo-ai-2.2.1.ebuild,3.74 KB, text/plain)
2008-08-09 14:06 UTC, Tomáš Chvátal (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2008-01-16 19:47:14 UTC
Website: http://ufoai.sourceforge.net/
Changelog: http://ufoai.ninex.info/wiki/index.php/Changelog/2.2
Compile guide: http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux (might be out of date... haven't tried myself.)
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 00:11:44 UTC
Created attachment 141260 [details]
2.2 alfa stage ebuild

Basic ebuild converted from previous one
Fixed: bug #206430 (x11-proto/xf86vidmodeproto line [feel fre to submit diff there with this :)])
downloads correct packages
Not tested:
everything else, isp is not cooperating and i'll have all files downloaded in morning (IT morning about 12pm CET) so i get back to it.


Sadly they've released new wersion but, didn't update their howto for compiling, so i'll test what it exactly needs and what options it have.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 12:48:29 UTC
Created attachment 141290 [details]
alfa 2

This time it check the source correctly and start compiling (fails doing map [i'll get to this tomorow]) if we don't build maps it compiles correctly, but fails on install (this i'll try fix after i fix map problem)
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 13:47:34 UTC
Created attachment 141293 [details]
beta1

This is first functional ebuild, please try and report bugs :)
Compiles fine
Runs fine
Somehow does not work with lang files...
Comment 4 Rémy DUPONT 2008-01-19 16:47:26 UTC
** With your ebuils the file game.so is located in two place :

-/usr/share/games/ufo-ai/base/game.so
-/usr/games/lib64/ufo-ai/game.so

it should be only in "/usr/games/lib64/ufo-ai/game.so" but the game game look for it in "/usr/share/games/ufo-ai/base/".


** this section :

local libdir=$(games_get_libdir)/${PN}
	# Set libdir
	sed -i \
		-e "s:libPath, \"\.\":libPath, \"${libdir}\":" \
		src/{client,ports/linux}/*.c || die "sed *.c failed"

	sed -i \
		-e "s:\"s_libdir\", \"\":\"s_libdir\", \"${libdir}\":" \
		src/client/cl_sound.c || die "sed snd_ref.c failed"

	sed -i \
		-e "s:game\.so\", path:game\.so\", \"${libdir}\":" \
		src/ports/linux/linux_main.c || die "sed sys_linux.c failed"


does nothing in this version and there are no useful reference to these entry :

- libdir
- libpath
- game.so

maybe we have to modify the "configure"... but don't know...


**this section doesn't do anything :

 exeinto "$(games_get_libdir)/${PN}"
	doexe *.so base/game.so || die "doexe ${f} failed"

result :

install: cannot stat `*.so': No such file or directory

so the execute permission is not set on the file (not seen any functional difference...

I make an ebuild too but can't find a way the game find : /usr/games/lib64/ufo-ai/game.so

Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 17:06:01 UTC
Created attachment 141312 [details, diff]
online check for updates in translations added

It compiles and updates them correctly, but stil does not use them :(
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 17:49:16 UTC
Created attachment 141314 [details]
beta2

Problem 1: wrong placing of game.so (change configure probbably as you say)
Problem 2: still not using translation files (it should use them, they are same as in the previous version (2.1.1) :()

I sugess that we fix problem 2 first so some people test it :)
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 18:12:08 UTC
also there is tool to update translations from wiki (more translated messages than in .po files)
so I add lang flag and update this translation from wiki
Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 19:01:24 UTC
Created attachment 141321 [details]
beta3

enables openal
translations works when compiled with debug... (I really don't know why it is not working when compiled as release :()
Comment 9 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-19 19:03:19 UTC
(In reply to comment #7)
> also there is tool to update translations from wiki (more translated messages
> than in .po files)
> so I add lang flag and update this translation from wiki
> 
I tried it and it was dumbass idea, because it start crazy downloading and patching and it takes seriously looong time so, i sugess we don't use it.
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-20 00:37:42 UTC
Created attachment 141339 [details]
rc1

With this version there is i18n working correctly all the time :)

So there remains only problem with game.so (if it is really problem...). I would say let it go this way, it compiles, it runs, it uninstalls, what else you can except from thing like this :)
Comment 11 Rémy DUPONT 2008-01-20 08:32:27 UTC
When I start a new game, instead of displaying test it display just "intro_sequence1", "intro_sequence2", "intro_sequence3", ....

have you the same problem ?
Comment 12 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-20 11:28:40 UTC
(In reply to comment #11)
> When I start a new game, instead of displaying test it display just
> "intro_sequence1", "intro_sequence2", "intro_sequence3", ....
> 
> have you the same problem ?
> 

Damn you are correct, i thought that if they are finaly in the game, they'll be in menu too :( <still don't get wy is it working with enabled debug>
Comment 13 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-20 11:56:12 UTC
RC Candidate didn't translate menu in debug too :(

Comment 14 Rémy DUPONT 2008-01-20 13:16:26 UTC
It works if you remove :

emake update-po || die "emake updating langs failed"
Comment 15 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-20 15:03:25 UTC
Created attachment 141388 [details]
RC2

Maybe final version? :) try to find another problems :)
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2008-01-20 15:13:13 UTC
about that game.so problem, they say that it is problem of quake2 engine...
Comment 17 Rémy DUPONT 2008-01-31 18:28:51 UTC
Doesn't have time to test earlier... :(, functionally looks good !! 
Comment 18 Grzegorz {NineX} Krzystek 2008-02-18 12:31:49 UTC
(In reply to comment #15)
> Created an attachment (id=141388) [edit]
> RC2
> 
> Maybe final version? :) try to find another problems :)
> 

works for me fine on ~amd64
Comment 19 Rémy DUPONT 2008-05-02 15:53:04 UTC
Created attachment 151632 [details]
ufo-ai-2.2.1.ebuild

version bump
Comment 20 Tomáš Chvátal (RETIRED) gentoo-dev 2008-05-02 19:56:22 UTC
You should only write that it only needs renaming, when you changed nothing :]
Comment 21 Rémy DUPONT 2008-05-02 22:56:41 UTC
a little bit more than renaming, but right, not very much ;)
Comment 22 R Stephan 2008-06-16 08:38:43 UTC
OK it's not hard to make my own overlay but nevertheless:
When do we get this? The 2.2 bump was a major change and
a lot of features were added.
Comment 23 Jeremy Murphy 2008-07-10 08:37:28 UTC
I'd like to see this in the official tree too.
Comment 24 Juha Luotio 2008-07-10 19:06:41 UTC
Latest version is missing sdl-mixer dependency.
Comment 25 quazgar 2008-07-11 11:20:03 UTC
Dependencies are listed here:
http://ufoai.ninex.info/wiki/index.php/Compile_for_Linux
I'll try to adapt the ebuild to fit those requirements.
Comment 26 quazgar 2008-07-11 11:24:59 UTC
Created attachment 160112 [details]
ufo-ai-2.2.1.ebuild with sdl-mixer dependency

Added dependencies for 
>=media-libs/sdl-mixer-1.2.7
net-misc/curl
as per upstream documentation.  Compiles and starts fine, please test for yourselves.
Comment 27 Mr. Bones. (RETIRED) gentoo-dev 2008-07-21 03:34:14 UTC
*** Bug 232535 has been marked as a duplicate of this bug. ***
Comment 28 Piotr Szymaniak 2008-07-21 06:30:56 UTC
(In reply to comment #22)
> OK it's not hard to make my own overlay but nevertheless:
> When do we get this?

With current Gentoo speed, I think it will appear in portage when 2.3 is out. (;
Comment 29 Nikolay Orlyuk 2008-07-23 05:01:51 UTC
Sorry, isn't there should be ${MY_PN}-${PV}-data.tar instead of ${MY_PN}-2.2-data.tar ?..
Comment 30 Jyrki Launonen 2008-07-23 08:55:13 UTC
ufo-ai-2.2.1.ebuild w sdl-mixed dep compiles and works in x86 with  USE="alsa doc jack nls openal" but needs a fix for USE="doc" (or build fails miserably, as
the makefile doesn't contain a rule for "docs") - though using that flag seems to be doing just a longer compile but no documentation. What is needed, is to change word "docs" to "doxygen-docs" in following section:
if use doc ; then
   emake docs || die "emake docs failed"
fi

After that, it compiles documentation for developers but does not install it...

2.2.1 is more playable than 2.1.1 in my opinion.
Comment 31 Jyrki Launonen 2008-07-29 13:40:16 UTC
I did some checking with makefiles and found out, that it would be more sane to run "emake pdf-manual" instead of "emake docs" (or "emake doxygen-docs" as I previously suggested), though that would require a change to DEPEND: "doc? ( app-doc/doxygen )" -> "doc? ( virtual/latex-base )" or something latex-related.
And for doxygen-docs, IUSE would probably want a 'dev'-flag (which would then DEPEND on doxygen and run emake doxygen-docs).

Either of doc-makes will not install anything, so for pdf-manual replace "dohtml -r docs/html" with "newdoc src/docs/tex/ufo-manual_EN.pdf ufo-manual_EN.pdf" (or something). Haven't tried out that yet...
Comment 32 Jyrki Launonen 2008-07-30 17:13:33 UTC
Created attachment 161748 [details]
ufo-ai-2.2.1.ebuild sdl-mixer, homepage, doc, dev

After "some" time of rebuilding and testing for things to work...
Here is my fixed ebuild that is based on attachment
"ufo-ai-2.2.1.ebuild with sdl-mixer dependency". I have added the 'main' homepage, a useflag (USE=dev) for building developement documentation with doxygen (dependency added/modified), changed USE=doc actions to build user
manual with latex (dependency for virtual/latex-base). Though... building
USE=dev is not entirely sane. It takes a helluva lot of time to build and
multiplies installation size by 2 (~360M -> ~850M). But there it is, with a
appropriate ewarn on unpack.
Comment 33 Rémy DUPONT 2008-07-30 21:14:29 UTC
(In reply to comment #29)
> Sorry, isn't there should be ${MY_PN}-${PV}-data.tar instead of
> ${MY_PN}-2.2-data.tar ?..
> 

Yes it should, something like this :

MY_P="ufoai-${PV}"
DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game"
HOMEPAGE="http://ufoai.ninex.info/"
SRC_URI="mirror://sourceforge/ufoai/${MY_P}-source.tar.bz2
	mirror://sourceforge/ufoai/${MY_P}-data.tar"
Comment 34 Piotr Szymaniak 2008-08-01 07:12:55 UTC
@Jyrki
Thanks for the ebuild, works fine for me on x86.

I've added it to roslin overlay and fixed the ${MY_PN} stuff. Here's a diff:
# --
diff -Naur ufo-ai-2.2.1.ebuild.old ufo-ai-2.2.1.ebuild
--- ufo-ai-2.2.1.ebuild.old	2008-08-01 09:10:03.000000000 +0200
+++ ufo-ai-2.2.1.ebuild	2008-08-01 08:59:03.000000000 +0200
@@ -4,11 +4,11 @@
 
 inherit eutils autotools games
 
-MY_PN="ufoai"
+MY_P="${P/o-a/oa}"
 DESCRIPTION="UFO: Alien Invasion - X-COM inspired strategy game"
 HOMEPAGE="http://ufoai.sourceforge.net/ http://ufoai.ninex.info/"
-SRC_URI="mirror://sourceforge/ufoai/${MY_PN}-${PV}-source.tar.bz2
-	mirror://sourceforge/ufoai/${MY_PN}-2.2-data.tar"
+SRC_URI="mirror://sourceforge/ufoai/${MY_P}-source.tar.bz2
+	mirror://sourceforge/ufoai/${MY_P}-data.tar"
 	# mirror://sourceforge/ufoai/${MY_P}-mapsource.zip"
 
 LICENSE="GPL-2"
@@ -39,7 +39,7 @@
 	doc? ( virtual/latex-base )
 	dev? ( app-doc/doxygen )"
 
-S=${WORKDIR}/${MY_PN}-${PV}-source
+S=${WORKDIR}/${MY_P}-source
 dir=${GAMES_DATADIR}/${PN}
 
 src_unpack() {
# --
Comment 35 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-09 13:52:40 UTC
Created attachment 162570 [details]
ufo-ai 2.2.1

Completely revised ebuild, test all features
duno why nobody complained (with some use it was not able to compile at all...)
Comment 36 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-09 13:55:33 UTC
When i write attachment 162570 [details] i was not sure if there is not defined dedicated we want to have server and client or only server or only client so what would be best you thing
dedicated = server ; !dedicated = client || dedicated = server; !dedicated = server & client
Comment 37 Tomáš Chvátal (RETIRED) gentoo-dev 2008-08-09 14:06:41 UTC
Created attachment 162572 [details]
2.2.1 ebuild

+ forget to run repoman check so fixed some quoting
+ dedicated=server !dedicated=server+client as is done by other ebuilds
Comment 38 Carsten Lohrke (RETIRED) gentoo-dev 2008-08-28 22:02:41 UTC
*** Bug 236045 has been marked as a duplicate of this bug. ***
Comment 39 Tupone Alfredo gentoo-dev 2008-10-04 19:49:07 UTC
2.2.1 version is now in portage. Thanks