re: adonthell: FTBFS on arm and armel

View: New views
6 Messages — Rating Filter:   Alert me  

re: adonthell: FTBFS on arm and armel

by peter green-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 >make[4]: Entering directory
`/build/buildd/adonthell-0.3.4.cvs.20080529/src/modules'
 >../../src/adonthell-0.3 -c
 >*** warning: prefs::read_adonthellrc: creating config file failed
 >Fatal Python error: exceptions bootstrapping error.

Something is going wrong with the intitalisation of the embedded python
interpreter. What I can't figure out is what and why. Moving the call to
initilise python to the beggining of main didn't make it work yet python
inits fine when I try it in a seperate test app. Unfortunately the error
message (which afaict is printed by the python lisb) is pretty much useless.

Any python gurus got any suggestions on how best to troubleshoot this issue?


--
To UNSUBSCRIBE, email to debian-python-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Bug#486654: adonthell: FTBFS on arm and armel

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* peter green <plugwash@...> [2008-06-17 20:48]:

> >*** warning: prefs::read_adonthellrc: creating config file failed
> >Fatal Python error: exceptions bootstrapping error.
>
> Something is going wrong with the intitalisation of the embedded
> python  interpreter. What I can't figure out is what and why. Moving
> the call to  initilise python to the beggining of main didn't make
> it work yet python  inits fine when I try it in a seperate test app.
> Unfortunately the error  message (which afaict is printed by the
> python lisb) is pretty much useless.
>
> Any python gurus got any suggestions on how best to troubleshoot
> this issue?

I suggest you ask on an upstream Python list rather than on
debian-python.
--
Martin Michlmayr
http://www.cyrius.com/


--
To UNSUBSCRIBE, email to debian-python-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Bug#486654: adonthell: FTBFS on arm and armel

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Martin Michlmayr <tbm@...> [2008-07-27 15:20]:
> I suggest you ask on an upstream Python list rather than on
> debian-python.

Anyway, given that 0.3.4.cvs.20050813-3 compiled but
0.3.4.cvs.20050813-4 didn't, I guess this is somehow related to
gcc-4.3.

--
Martin Michlmayr
http://www.cyrius.com/


--
To UNSUBSCRIBE, email to debian-python-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Bug#486654: adonthell: FTBFS on arm and armel

by peter green-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
>
> Anyway, given that 0.3.4.cvs.20050813-3 compiled but
> 0.3.4.cvs.20050813-4 didn't, I guess this is somehow related to
> gcc-4.3.
>  
It looks like the default python version also changed between the two
builds from 2.4 to 2.5 so that would be a suspect too.


--
To UNSUBSCRIBE, email to debian-python-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Bug#486654: adonthell: FTBFS on arm and armel

by Martin Michlmayr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* peter green <plugwash@...> [2008-07-28 01:47]:
>> 0.3.4.cvs.20050813-4 didn't, I guess this is somehow related to
>> gcc-4.3.
>>  
> It looks like the default python version also changed between the two
> builds from 2.4 to 2.5 so that would be a suspect too.

Rebuilding with gcc-4.2 fails in the same way, so I guess it is due to
Python changes.

--
Martin Michlmayr
http://www.cyrius.com/


--
To UNSUBSCRIBE, email to debian-python-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Bug#486654: adonthell: FTBFS on arm and armel

by peter green-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tags 486654 +patch
thanks
> Rebuilding with gcc-4.2 fails in the same way, so I guess it is due to
> Python changes.
>  
The package builds succesfully on arm (I don't have armel availible to
test but I presume the issue is the same on both) with python2.4. I have
attatched a patch to make it use python 2.4 on arm and armel.




diff -ur adonthell-0.3.4.cvs.20080529/debian/control adonthell-0.3.4.cvs.20080529.new/debian/control
--- adonthell-0.3.4.cvs.20080529/debian/control 2008-07-28 18:31:56.000000000 +0000
+++ adonthell-0.3.4.cvs.20080529.new/debian/control 2008-07-28 08:42:39.000000000 +0000
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel@...>
 Uploaders: Barry deFreese <bddebian@...>
-Build-Depends: debhelper (>= 5.0.37.2), autotools-dev, libsdl1.2-dev, libvorbis-dev, zlib1g-dev, swig1.3 (>= 1.3.14), libfreetype6-dev, libaa1-dev, python-dev (>= 2.3.5-11), python-support (>= 0.4.0), libsdl-ttf2.0-dev, libsdl-mixer1.2-dev, libsdl1.2-dev, quilt
+Build-Depends: debhelper (>= 5.0.37.2), autotools-dev, libsdl1.2-dev, libvorbis-dev, zlib1g-dev, swig1.3 (>= 1.3.14), libfreetype6-dev, libaa1-dev, python-dev (>= 2.3.5-11), python-support (>= 0.4.0), libsdl-ttf2.0-dev, libsdl-mixer1.2-dev, libsdl1.2-dev, quilt, python2.4-dev [arm armel]
 Standards-Version: 3.7.3
 Homepage: http://adonthell.linuxgames.com/
 Vcs-Svn: ssh://svn.debian.org/svn/pkg-games/packages/trunk/adonthell/
diff -ur adonthell-0.3.4.cvs.20080529/debian/rules adonthell-0.3.4.cvs.20080529.new/debian/rules
--- adonthell-0.3.4.cvs.20080529/debian/rules 2008-07-28 18:31:56.000000000 +0000
+++ adonthell-0.3.4.cvs.20080529.new/debian/rules 2008-07-28 17:44:17.000000000 +0000
@@ -8,7 +8,23 @@
 CFGDEBUG = ""
 INSTALL = /usr/bin/install -c
 INSTALL_PROGRAM = ${INSTALL} -p -o root -g root  -m 755
-PYVERSION=$(shell pyversions -d)
+
+PYVERSIONNN:=$(shell pyversions -d -v)
+
+
+#for some reason when adonthell embeds python2.5 on arm(el) it fails to init
+#so use python2.4 there for now
+DEB_BUILD_ARCH_CPU ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
+
+ifeq ($(DEB_BUILD_ARCH_CPU),armel)
+ PYVERSIONNN :=2.4
+endif
+
+ifeq ($(DEB_BUILD_ARCH_CPU),arm)
+ PYVERSIONNN :=2.4
+endif
+
+PYVERSION :=python$(PYVERSIONNN)
 
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
  CXXFLAGS += -g
@@ -98,7 +114,7 @@
  dh_installmenu
  dh_installman debian/adonthell.6
  dh_installchangelogs ChangeLog
- dh_pysupport -V $(shell pyversions -d -v) adonthell /usr/share/games/adonthell/modules/
+ dh_pysupport -V $(PYVERSIONNN) adonthell /usr/share/games/adonthell/modules/
  dh_link
  dh_strip
  dh_compress
LightInTheBox - Buy quality products at wholesale price