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

2008-07-28 Thread peter green

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.0 +
+++ adonthell-0.3.4.cvs.20080529.new/debian/control	2008-07-28 08:42:39.0 +
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Games Team <[EMAIL PROTECTED]>
 Uploaders: Barry deFreese <[EMAIL PROTECTED]>
-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.0 +
+++ adonthell-0.3.4.cvs.20080529.new/debian/rules	2008-07-28 17:44:17.0 +
@@ -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


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

2008-07-27 Thread Martin Michlmayr
* peter green <[EMAIL PROTECTED]> [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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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

2008-07-27 Thread peter green



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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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

2008-07-27 Thread Martin Michlmayr
* Martin Michlmayr <[EMAIL PROTECTED]> [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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



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

2008-07-27 Thread Martin Michlmayr
* peter green <[EMAIL PROTECTED]> [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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]