[Nix-dev] purplexing problem trying to upgrade sauerbraten fps game package

kevinbanjo kevinbanjo at gmail.com
Thu Oct 24 06:22:27 CEST 2013


Hi, I'm trying to fix/upgrade the sauerbraten package/expression.

I hope this is the right place to post this.  I've tried posting to
the irc channel with only limited success.

The tarball has both 64/32 bit binary and sources on board.

Can anyone offer any suggestions?   I'm a NixNOOB!

Here's my files for an attempted binary installation:

-----------------default.nix---------------

{ stdenv, SDL, SDL_image, SDL_mixer, mesa,
  libpng, zlib, fetchurl, libjpeg, libX11, imagemagick }:

stdenv.mkDerivation {

  name = "sauerbraten_2013_02_03_collect_edition_linux";

  builder = ./builder.sh;


  src = fetchurl {
  url = http://downloads.sourceforge.net/project/sauerbraten/sauerbraten/2013_01_04/sauerbraten_2013_02_03_collect_edition_linux.tar.bz2;
  sha256 = "45c20521e3e56374490b2d9112a211538e801cf0161197f35476b30b7b58a78e";
 };

  meta = {
    description = "A free, stand-alone first-person shooter computer game";
    longDescription = ''
Cube 2: Sauerbraten is a free multiplayer & singleplayer first person shooter,
the successor of the Cube FPS.  Much like the original Cube, the aim of this
game is fun, old school deathmatch gameplay and also to allow map/geometry
editing to be done cooperatively in-game.

The engine supporting the game is entirely original in code & design, and its
code is Open Source (ZLIB license, read the docs for more on how you
can use the engine).

Authors, feature list and more: see the reference documentation or the
wiki.    '';
    homepage = http://sauerbraten.org;
    # Engine is under GPLv2, everything else is under
    license = [ "unfree-redistributable" ];
    maintainers = with stdenv.lib.maintainers; [ astsmtl ];
    #platforms = with stdenv.lib.platforms; linux;
  };
}

------------------builder.sh----------------------

source $stdenv/setup
tar xvfj $src
mkdir $out
mv sauerbraten $out/
mkdir -p $out/bin
cp $out/sauerbraten_unix $out/bin

-----------------output errors-----------------------------

...
...
...
sauerbraten/docs/models.html
sauerbraten/docs/game.html
cp: cannot stat
'/nix/store/yrd7jz4f4d666dkzcf7n6nzm6fnjrjpj-sauerbraten_2013_02_03_collect_edition_linux/sauerbraten_unix':
No such file or directory
builder for `/nix/store/0x9z0mf14bir004brnqk0za9l78ar1cl-sauerbraten_2013_02_03_collect_edition_linux.drv'
failed with exit code 1
error: build of
`/nix/store/0x9z0mf14bir004brnqk0za9l78ar1cl-sauerbraten_2013_02_03_collect_edition_linux.drv'
failed

-------------------------strange things-----------------------
why in the sauerbraten tarball would I get ldd linux_64_client
        not a dynamic executable
and ldd linux_client
/run/current-system/sw/bin/ldd: line 124: ./linux_client: No such file
or directory
but file linux_client
linux_client: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26,
BuildID[sha1]=8e5b1319829324692ec193aad4f046e9cb840e56, stripped
?????
ls -l linux*client
-rwxr-xr-x 1 nixbld1 nixbld 3236360 Feb  2  2013 linux_64_client
-rwxr-xr-x 1 nixbld1 nixbld 3142616 Feb  2  2013 linux_client
./linux_client
bash: ./linux_client: No such file or directory

I was thinking I need patchelf but shouldn't ldd at least work to show
the path that's already there?
-- 
-Kevin
------------
"The world belongs to those who cross many bridges in their imagination,
           before others see even a single bridge." - inspirational Chinese
proverb


More information about the nix-dev mailing list