Hi Ron,

On Wed, May 28, 2008 at 02:30:19PM +0200, Lucas Nussbaum wrote:
> Package: wxwidgets2.6
> Version: 2.6.3.2.2-2
> Severity: serious
> User: [EMAIL PROTECTED]
> Usertags: qa-ftbfs-20080527 qa-ftbfs
> Justification: FTBFS on i386
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build on
> i386.
> 
> Relevant part:
> > running build_py
> > running install_lib
> > copying build-gtk2.unicode/lib_d/wxversion.py -> 
> > /build/user-wxwidgets2.6_2.6.3.2.2-2-amd64-McJpg3/wxwidgets2.6-2.6.3.2.2-2/wxPython/../debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages
> > byte-compiling 
> > /build/user-wxwidgets2.6_2.6.3.2.2-2-amd64-McJpg3/wxwidgets2.6-2.6.3.2.2-2/wxPython/../debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wxversion.py
> >  to wxversion.pyc
> > running install_data
> > copying src/wx.pth -> 
> > /build/user-wxwidgets2.6_2.6.3.2.2-2-amd64-McJpg3/wxwidgets2.6-2.6.3.2.2-2/wxPython/../debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/
> > running install_egg_info
> > Writing 
> > /build/user-wxwidgets2.6_2.6.3.2.2-2-amd64-McJpg3/wxwidgets2.6-2.6.3.2.2-2/wxPython/../debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wxPython_common-2.6.3.2.egg-info
> > [17013 refs]
> > mv 
> > debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode-dbg
> >  \
> >             
> > debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode
> > mv: cannot stat 
> > `debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode-dbg':
> >  No such file or directory
> > make: *** [install-gtk-dbg-py2.4] Error 1


Currently, if you use pbuilder/cowbuilder it builds fine, but this bug
is perfeclty reproducible here using sbuild and LVM.

The problem is in the rules file, it defines in the line 59:

DEBIAN_WXFLAVOUR := $(shell pwd | sed -e '[EMAIL 
PROTECTED]/wxwidgets[0-9.]\+-\?\(.*\)[EMAIL PROTECTED]@')

then later, "release" and "sorelease" are defined, the last depending on 
DEBIAN_WXFLAVOUR:

sorelease := $(release:%-$(DEBIAN_WXFLAVOUR)=%)-$(soversion)$(addprefix 
-,$(DEBIAN_WXFLAVOUR))


Then, with cowbuilder:
DEBIAN_WXFLAVOUR does not get any value
RELEASE -> 2.6
SORELEASE -> 2.6-0

with sbuild:
DEBIAN_WXFLAVOUR gets 2.6.3.2.2
RELEASE -> 2.6
SORELEASE -> 2.6-0-2.6.3.2.2

About the line 835 in the debian/rules you have:
    mv 
debian/$(package_gtk_dbg_py)/usr/lib/python$*/site-packages/$(wxsubdir)-dbg \
                
debian/$(package_gtk_dbg_py)/usr/lib/python$*/site-packages/$(wxsubdir)


this is "translated" to:

mv 
debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode-dbg
 \
        
debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode

with cowbuilder it works fine, but due DEBIAN_WXFLAVOUR and sorelease being
used in the rules, using sbuild you obtain:

/build/ana-wxwidgets2.6_2.6.3.2.2-2-amd64-dvLwJ6/wxwidgets2.6-2.6.3.2.2-2/
debian/python-wxgtk2.6-dbg/usr/lib/python2.4/site-package/wx-2.6-gtk2-unicode-2.6.3.2.2-dbg

notice the extra "2.6.3.2.2-" part.


Fixing the line 835 to workaround this, does not fix the problem, because then 
it fails
in the dh_shlibdeps part. 

It seems, the lastest i386 upload and them the builds have built latest upload
of wxwidgets2.6 with a empty DEBIAN_WXFLAVOUR value. You can check this on any
buildd log of the latest upload, for example for amd64:

http://buildd.debian.org/fetch.cgi?pkg=wxwidgets2.6;ver=2.6.3.2.2-2;arch=amd64;stamp=1202777401

also, the lines where FLAVOUR appears, it does not get any value. 

So basically, quick fix is make DEBIAN_WXFLAVOUR emtpy and it will always 
build, 
exaclty how it has done for the last upload. Attached mini-patch has been 
tested and works.

Ideal fix would be fixing the whole debian/rules, but given the release time
we are it is not good idea make big changes in the package. I gould go for the 
quick solution and keep the package how it is working currently...
Anyway, I guess this version of wxwidgets is meant to dissapear post lenny?

Ana
diff -u wxwidgets2.6-2.6.3.2.2/debian/changelog wxwidgets2.6-2.6.3.2.2/debian/changelog
--- wxwidgets2.6-2.6.3.2.2/debian/changelog
+++ wxwidgets2.6-2.6.3.2.2/debian/changelog
@@ -1,3 +1,10 @@
+wxwidgets2.6 (2.6.3.2.2-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * ... 
+
+ -- Ana Beatriz Guerrero Lopez <[EMAIL PROTECTED]>  Mon, 08 Sep 2008 20:18:29 +0200
+
 wxwidgets2.6 (2.6.3.2.2-2) unstable; urgency=low
 
   [ Ron Lee ]
diff -u wxwidgets2.6-2.6.3.2.2/debian/rules wxwidgets2.6-2.6.3.2.2/debian/rules
--- wxwidgets2.6-2.6.3.2.2/debian/rules
+++ wxwidgets2.6-2.6.3.2.2/debian/rules
@@ -57,7 +57,8 @@
 # changelog entry for your flavour source package using:
 # wxwidget$RELEASE-$FLAVOUR ($VERSION) to satify dpkg-source and
 # to correctly set the release below.
-DEBIAN_WXFLAVOUR := $(shell pwd | sed -e '[EMAIL PROTECTED]/wxwidgets[0-9.]\+-\?\(.*\)[EMAIL PROTECTED]@')
+DEBIAN_WXFLAVOUR := 
+#$(shell pwd | sed -e '[EMAIL PROTECTED]/wxwidgets[0-9.]\+-\?\(.*\)[EMAIL PROTECTED]@')
 
 release   := $(shell dpkg-parsechangelog | sed -n 's/^Source: wxwidgets//p')
 

Reply via email to