Bug#405042: opencity: Please find the homedir automatically

Gonéri Le Bouder goneri at rulezlan.org
Wed May 30 16:00:46 UTC 2007


On Mon, May 28, 2007 at 12:34:34PM +0200, jetxee wrote:
> Hello,
> 
> This is the fix to the source package I suggest. It installs the binary to
> /usr/lib/games/opencity/opencity and a start-up script to /usr/games/opencity.
> 
> Probably it should be better done like in nethack-console: both the
> binary and the script to run are in /usr/lib/games/nethack and symlink to
> the script is in /usr/games.
> 
> --- opencity-0.0.4stable/debian/rules   2007-05-28 12:12:50.000000000 +0200
> +++ opencity-0.0.4stable-fixed/debian/rules     2007-05-28 12:25:45.000000000 +0200
> @@ -58,7 +58,12 @@
> 
>         # Add here commands to install the package into debian/opencity.
>         $(MAKE) install DESTDIR=$(CURDIR)/debian/opencity
> -       mv $(CURDIR)/debian/opencity/usr/bin $(CURDIR)/debian/opencity/usr/games
> +       mkdir -p $(CURDIR)/debian/opencity/usr/lib/games/opencity
> +       mv $(CURDIR)/debian/opencity/usr/bin/opencity \
> +               $(CURDIR)/debian/opencity/usr/lib/games/opencity/opencity
> +       mkdir -p "$(CURDIR)/debian/opencity/usr/games"
> +       cp "$(CURDIR)/opencity.sh" "$(CURDIR)/debian/opencity/usr/games/opencity"
> +       chmod a+x "$(CURDIR)/debian/opencity/usr/games/opencity"
> 
>  binary-indep: build install
> --- opencity-0.0.4stable/debian/opencity.sh     1970-01-01 01:00:00.000000000 +0100
> +++ opencity-0.0.4stable-fixed/opencity.sh      2007-05-28 12:25:56.000000000 +0200
> @@ -0,0 +1,5 @@
> +#!/bin/sh
> +OPENCITY_HOMEDIR="/usr/share/opencity" && \
> +OPENCITY_BIN="/usr/lib/games/opencity/opencity" && \
> +${OPENCITY_BIN} --homedir ${OPENCITY_HOMEDIR}
> +

Ho, I'm sorry I already did a patch for this issue but I forgot to
upload it :(. The patch works fine for me, I'm going to ask for an upload.

Index: opencity-0.0.4stable/src/main.cpp
===================================================================
--- opencity-0.0.4stable.orig/src/main.cpp      2006-12-31 09:42:55.000000000 +0100
+++ opencity-0.0.4stable/src/main.cpp   2006-12-31 09:49:13.000000000 +0100
@@ -127,7 +127,7 @@
        static int flags = 0;

 /// Static so that the others can not access this
-       static string gsHomeDir         = "";
+       static string gsHomeDir         = "/usr/share/games/opencity/";
        static string gsSaveDir         = "";


Best regards,

   Gonéri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20070530/98fea509/attachment.pgp 


More information about the Pkg-games-devel mailing list