building debian package on ubuntu

Hi,
I would like to build fresh version of wxPython on Ubuntu (6.10) using
dpkg-buildpackage command.

Before this is possible, debian/control file has to be generated.

When I run

$ debian/rules build

or

$ debian/rules debian/control

I get:

debian/rules debian/control
sed -e 's/=V/2.8/g;s/=SOV/2.8-0-/usr/src/wxwidgets/wxPython-src-2.8.1.1/g;s/=PY/python2.4/g;s/=U//g'\
                < debian/control.in > debian/control
sed: -e expression #1, char 26: unknown option to `s'
make: *** [debian/control] Error 1

The problem is the second "s" statement for sed:

   s/=SOV/2.8-0-/usr/src/wxwidgets/wxPython-src-2.8.1.1/g

should be something like

   s/=SOV/2.8-0-\/usr\/src\/wxwidgets\/wxPython-src-2.8.1.1/g

Where to correct this ?

Thanks

Jachym

···

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

Jáchym Čepický wrote:

Hi,
I would like to build fresh version of wxPython on Ubuntu (6.10) using
dpkg-buildpackage command.

Before this is possible, debian/control file has to be generated.

When I run

$ debian/rules build

or

$ debian/rules debian/control

I get:

debian/rules debian/control
sed -e 's/=V/2.8/g;s/=SOV/2.8-0-/usr/src/wxwidgets/wxPython-src-2.8.1.1/g;s/=PY/python2.4/g;s/=U//g'\

               < debian/control.in > debian/control
sed: -e expression #1, char 26: unknown option to `s'
make: *** [debian/control] Error 1

The problem is the second "s" statement for sed:

  s/=SOV/2.8-0-/usr/src/wxwidgets/wxPython-src-2.8.1.1/g

should be something like

  s/=SOV/2.8-0-\/usr\/src\/wxwidgets\/wxPython-src-2.8.1.1/g

Where to correct this ?

In the debian/rules file. It is basically just a Makefile so look for the debian/contorl rule. However, that "/usr/src/wxwidgets/wxPython-src-2.8.1.1" shouldn't be there at all, so look further up the file for where the value of sorelease is set.

Wait, I think I remember seeing something like this before. There is something screwy in there that uses the name of the source directory to set one of the values that goes into the package names. Since the default doesn't match the expected pattern it is causing this build bug. Try changing the name of the dir from "wxPython-src-2.8.1.1" to "wxwidgets2.8-2.8.1.1".

···

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