You are not logged in.

#1 2007-11-15 17:45:50

Wesley
Member
From: Hannover, Germany
Registered: 2007-07-13
Posts: 33

patching a SConstruct file for 'installprefix' support

hi
today i try to make a package for gigi-svn because freeorion does need it.
the problem is that i cant find a way to enable installprefix with it because i don't understand a single line of the code (or better: the functions used in it).
this is the original file: http://pastebin.com/fd31c0df
this is the SConstruct.patch: http://pastebin.com/f3e80577b

the error i get out of it is

KeyError: 'installprefix':
  File "/home/wesley/packages/gigi-svn/src/trunk/SConstruct", line 671:
    Alias('install', Install(os.path.normpath(os.path.join(env['installprefix'] + env.subst(env['incdir']), root)),
  File "/usr/lib/python2.5/site-packages/SCons/Environment.py", line 309:
    return self._dict[key]

after successfully making "scons configure prefix=/usr installprefix=$startdir/pkg/usr" and calling "scons"

as i can see i just make that the functions get called wrong.
another problem is that freeorion is using scons too.
damn, a Makefile would be so much easier to manipulate hmm

actually, i solved it.
i forgot the "option.Add" command at the beginning of the file.
the only problem left is that freeorion doesn't finds it(i even needed to patch the pc.in files because gigi didn't puts the versions in it) and freeorion doesn't even finds GL/gl.h ( roll )

Last edited by Wesley (2007-11-15 23:10:29)

Offline

#2 2007-12-28 17:34:50

quantax
Member
Registered: 2007-08-16
Posts: 24

Re: patching a SConstruct file for 'installprefix' support

Did you finally succeed in making a gigi-svn PKGBUILD?
I'd really like to see a newer PKGBUILD for freeorion, because there are bugs in the static one.
Maybe this is helpful for the missing GL/gl.h: http://www.freeorion.org/forum/viewtopi … =24&t=1908

Last edited by quantax (2007-12-28 17:36:40)

Offline

Board footer

Powered by FluxBB