Building ANSI wx .deb package files.

I am a Debian unstable user looking to install a recent version of WxWidgets though 'dpkg' on my system. Unfortunately, the Debian distro's version of WxWidgets is the "old stable" 2.6.x.

I found the wxpython communities repository at: http://wxpython.wxcommunity.com/apt/ubuntu/feisty/2.8.4.0/, and grabbed the source files to try to "dpkg-buildpackage" myself. However, I also need the ANSI version of these libraries.

In wxwidgets2.8-2.8.4.0/debian/rules, there appears to be a variable to control a UNICODE vs. ANSI build which defaults to '1' (implying an UNICODE build.) I changed this to '0', and set dpkg-buildpackage running. It completes. However, the generated .deb files are nearly empty. For example:

cwilcox@whelp:~/tmp$ dpkg-deb -c libwxgtk2.8-0_2.8.4.0-0_i386.deb
drwxr-xr-x root/root 0 2007-06-23 02:03 ./
drwxr-xr-x root/root 0 2007-06-23 02:03 ./usr/
drwxr-xr-x root/root 0 2007-06-23 02:03 ./usr/share/
drwxr-xr-x root/root 0 2007-06-23 02:03 ./usr/share/doc/
drwxr-xr-x root/root 0 2007-06-23 02:03 ./usr/share/doc/libwxgtk2.8-0/
-rw-r--r-- root/root 11002 2006-04-30 23:42 ./usr/share/doc/libwxgtk2.8-0/copyright
-rw-r--r-- root/root 11574 2007-05-14 12:49 ./usr/share/doc/libwxgtk2.8-0/changelog.Debian.gz

It appears as if the packaging step fails to include the correct ANSI versions.

So my question is, there there a quick-fix to the debian/rules script to make this work as it should?

Secondly, and more importantly, is this the easiest way to get a ANSI 2.8.4 WxWidgets installed through dpkg on my Debian sid system?

  -- Charles Wilcox

Charles L Wilcox wrote:

I am a Debian unstable user looking to install a recent version of WxWidgets though 'dpkg' on my system. Unfortunately, the Debian distro's version of WxWidgets is the "old stable" 2.6.x.

I found the wxpython communities repository at: NameBright - Coming Soon, and grabbed the source files to try to "dpkg-buildpackage" myself. However, I also need the ANSI version of these libraries.

In wxwidgets2.8-2.8.4.0/debian/rules, there appears to be a variable to control a UNICODE vs. ANSI build which defaults to '1' (implying an UNICODE build.) I changed this to '0', and set dpkg-buildpackage running. It completes. However, the generated .deb files are nearly empty. For example:

It appears as if the packaging step fails to include the correct ANSI versions.

Yep, that would be my guess.

So my question is, there there a quick-fix to the debian/rules script to make this work as it should?

There probably is, but I don't know yet what it is. Adding the ansi packages is on my ToDo list so I'll take a look at it when I am fiddling with debian/rules again. Of course if you're able to figure it out in the meantime then please send me a patch. My guess is that there is probably just someplace that $(unicode_suffix) needs to be added.

Secondly, and more importantly, is this the easiest way to get a ANSI 2.8.4 WxWidgets installed through dpkg on my Debian sid system?

As far as I know, yes.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!