I found the same problem in hardy version,

== Steps to reproduce ==

1. boot into ubuntu 8.04.1 live DVD
2. $ aptitude install devscripts build-essential fakeroot
  $ dget 
http://archive.ubuntu.com/ubuntu/pool/universe/v/virtualbox-ose/virtualbox-ose_1.5.6-dfsg-6ubuntu1.dsc
  $ dpkg-source -x virtualbox-ose_1.5.6-dfsg-6ubuntu1.dsc
  $ cd virtualbox-ose-*/
3. Install build dependencies for virtualbox-ose
4. Build virtualbox-ose,

  $ fakeroot dpkg-buildpackage -b -i
  <--cut-->
  ...
  <--cut-->
  test -d debian/patched || install -d debian/patched
  dpatch  apply-all
  applying patch 01-no-64bit-guest to ./ ... ok.
  applying patch 02-2.6.25 to ./ ... ok.
  applying patch 03-config-kmk to ./ ... ok.
  applying patch 04-localconf-kmk to ./ ... failed.
  make: *** [patch-stamp] Error 1
  dpkg-buildpackage: failure: debian/rules build gave error exit status 2


== Cause ==

04-localconf-kmk.dpatch expected LocalConfig.kmk as empty file, but it
is not empty as shown by this,

  $ gzip -cd virtualbox-ose_1.5.6-dfsg-6ubuntu1.diff.gz | tail
  <--cut-->
  ...
  <--cut-->
  --- virtualbox-ose-1.5.6-dfsg.orig/LocalConfig.kmk
  +++ virtualbox-ose-1.5.6-dfsg/LocalConfig.kmk
  @@ -0,0 +1 @@
  +VBOX_WITH_X11_ADDITIONS=1

  $ dpkg-source -x virtualbox-ose_1.5.6-dfsg-6ubuntu1.dsc
  $ cd virtualbox-ose-*/
  $ cat LocalConfig.kmk
  VBOX_WITH_X11_ADDITIONS=1

This is because "debian/rules clean" does not clean the lines in
LocalConfig.kmk inserted by env.sh rule,

  env.sh: patch-stamp
       <--cut-->
       echo "VBOX_WITH_X11_ADDITIONS=1" >> LocalConfig.kmk

Let's look at the following steps,

  $ rm -f LocalConfig.kmk
  $ fakeroot ./debian/rules env.sh
  <success>
  $ fakeroot ./debian/rules clean
  $ cat LocalConfig.kmk
  VBOX_WITH_X11_ADDITIONS=1
  $ fakeroot ./debian/rules env.sh
  <--cut-->
  applying patch 04-localconf-kmk to ./ ... failed.
  make: *** [patch-stamp] Error 1

-- 
debuild error for backporting to hardy (2.0.2-dfsg)
https://bugs.launchpad.net/bugs/275234
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to