[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I propose my help for maintaining 0ad



Hello,

2017-10-16 6:59 GMT+02:00 Vincent Cheng <vcheng@debian.org>:
On Sun, Oct 15, 2017 at 11:14 AM, Markus Koschany <apo@debian.org> wrote:
> Am 15.10.2017 um 20:08 schrieb Ludovic Rousseau:
>> Hello,
>>
>> I am new to the list.
>>
>> I am a Debian Developer and also a player of the game 0ad with my children.
>> 0ad alpha 22 is available since a few months but is not yet packages in
>> Debian. Bug #872654 "0ad: New Release: 0 A.D. Alpha 22 Venustas" is open
>> since Aug 2017 with no visible progress.
>>
>> I would like to help maintain 0ad.
>> Is there anything special I need to know or do before I package 0ad
>> alpha 22?
>>
>
> Hi,
>
> welcome to the list. There is nothing special I am aware of. Vincent is
> not very active these days but I guess he would appreciate the help. I'm
> not sure if you have to be a member of our pkg-games group on Alioth if
> you are already a DD. If pushing to the repo doesn't work for you, I
> suggest to contact Evgeni Golov who should be able to grant you access.

+1, I'd most definitely appreciate help with any of my team-maintained
packages as I haven't had time for the past while to do so. If you
could also keep the stable-backports version of 0ad up to date, that
would also be greatly appreciated. Thank you!

Before I start to package 0ad alpha 22 I tried to build the Debian package for version alpha 21. And I have a strange problem building the package 0ad. No problem with the package 0ad-data.

If I use "dpkg-buildpackage -us -uc" then it works fine. So my configuration is not completely broken :-)

But if I use "debuild" (the command I use to build packages) I get an error:
[...]
checking Python environment is Mozilla virtualenv... Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/rousseau/Debian/0ad/0ad/libraries/source/spidermonkey/mozjs-38.0.0/python/mozbuild/mozbuild/base.py", line 17, in <module>
    from mach.mixin.process import ProcessExecutionMixin
  File "/home/rousseau/Debian/0ad/0ad/libraries/source/spidermonkey/mozjs-38.0.0/python/mach/mach/mixin/process.py", line 29, in <module>
    raise Exception('Could not detect environment shell!')
Exception: Could not detect environment shell!
configure: error: Python environment does not appear to be sane.
------ config.log ------
configure:3111:1: warning: incompatible implicit declaration of built-in function 'exit'
configure:3111:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
configure:3134: checking for ranlib
configure:3166: checking for as
configure:3220: checking for ar
configure:3255: checking for ld
configure:3290: checking for strip
configure:3325: checking for windres
configure:3941: checking how to run the C preprocessor
configure:3962: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c >/dev/null 2>conftest.out
configure:4021: checking how to run the C++ preprocessor
configure:4039: c++ -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.C >/dev/null 2>conftest.out
configure:4161: checking for sb-conf
configure:4161: checking for ve
configure:4223: checking for a BSD compatible install
configure:4276: checking whether ln -s works
configure:4298: checking for tar archiver
configure:4304: checking for gnutar
configure:4304: checking for gtar
configure:4304: checking for tar
configure:4341: checking for minimum required perl version >= 5.006
configure:4351: checking for full perl installation
configure:4369: checking for python2.7
configure:4479: checking Python environment is Mozilla virtualenv
configure: error: Python environment does not appear to be sane.
ERROR: SpiderMonkey build failed
debian/rules:26 : la recette pour la cible « override_dh_auto_build » a échouée
make[1]: *** [override_dh_auto_build] Erreur 1
make[1] : on quitte le répertoire « /home/rousseau/Debian/0ad/0ad »
debian/rules:10 : la recette pour la cible « binary » a échouée
make: *** [binary] Erreur 2
dpkg-buildpackage: erreur: fakeroot debian/rules binary a produit une erreur de sortie de type 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc failed

The problem is with the script libraries/source/spidermonkey/mozjs-38.0.0/python/mach/mach/mixin/process.py and the code:

# Perform detection of operating system environment. This is used by command
# execution. We only do this once to save redundancy. Yes, this can fail module
# loading. That is arguably OK.
if 'SHELL' in os.environ:
    _current_shell = os.environ['SHELL']
elif 'MOZILLABUILD' in os.environ:
    _current_shell = os.environ['MOZILLABUILD'] + '/msys/bin/sh.exe'
elif 'COMSPEC' in os.environ:
    _current_shell = os.environ['COMSPEC']
else:
    raise Exception('Could not detect environment shell!')

In my case SHELL is defined as:
$ echo $SHELL
/bin/bash

I searched the Internet and found other people having the same problem when building Firefox. The solution was to define SHELL. But SHELL is already defined in my case.

I have no idea why "debuild" would remove the SHELL definition.

It is a know problem?

Vincent, do you use "debuild" to build the 0ad package?

Thanks

--
 Dr. Ludovic Rousseau

Reply to: