ubiquity-2.13.13.1 cannot generate deb packages

Asked by kobe on 2013-03-13

I had used two ways to get ubiquity source codes, one is the command of "bzr branch lp:ubiquity", the other is the command of "apt-get source ubiquity". I found there was no different between their codes, and the version is 2.13.1.3.1.

I want to generate deb packages from source codes, so I use the command of "dpkg-buildpackage -rfakeroot". If I use the codes which from apt-get, I can get the deb packages successfully. But if I use the codes which from bzr branch, error occured.

My OS information is :
  DistroRelease: Ubuntu 13.04 Ubuntu Raring Ringtail (development barnch)
  Package: ubiquity_2.13.13.1
  ProcVersionSignature: Ubuntu 3.8.0-9-generic
  Uname: Linux 3.8.0-9-generic i686
  Date: Wed, 13 Mar 2013 14:02:01 +0800

Here is the error information:
lixiang@lixiang-OptiPlex-380:~/ubiquity-test/ubiquity$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: 源码包 ubiquity
dpkg-buildpackage: 源码版本 2.13.13.1
dpkg-buildpackage: 源码修改者 Dmitrijs Ledkovs <email address hidden>
dpkg-buildpackage: 主机架构 i386
 dpkg-source --before-build ubiquity
dpkg-source: info: using options from ubiquity/debian/source/options: --compression=xz --tar-ignore=.bzr-builddeb
 fakeroot debian/rules clean
/bin/sh: 1: cd: can't cd to d-i/source/console-setup
# Sanity-check before upload.
find -name debian -prune -o -name \*.py -print | xargs py3compile
find -type f \( -name \*.pyc -o -name \*.pyo \) -print0 | xargs -0r rm -f
find -name __pycache__ -print0 | xargs -0r rm -rf
# Check the syntax of any shell scripts.
set -e; for x in $(find -type f \! -name \*.po \! -name \*.pot -print0 | xargs -0 file -i | grep "text/x-shellscript" | cut -d':' -f1); do \
  sh -n $x; \
 done
# Check the syntax of any Python scripts.
./tests/run-pyflakes
./tests/run-pep8
dh_testdir
dh_testroot
/usr/bin/make -C d-i clean
make[1]: 正在进入目录 `/home/lixiang/ubiquity-test/ubiquity/d-i'
rm -rf apt
for dir in source/*; do \
  if [ "${dir##*/}" != console-setup ] && [ -d "$dir" ]; then \
   (cd "$dir" && debian/rules clean) || exit 1; \
  fi; \
 done
/usr/bin/make -C source/console-setup/Keyboard clean
make:正在进入一个未知的目录
make: *** source/console-setup/Keyboard: 没有那个文件或目录。 停止。
make:正在离开一个未知的目录
make[1]: *** [clean] 错误 2
make[1]:正在离开目录 `/home/lixiang/ubiquity-test/ubiquity/d-i'
make: *** [clean] 错误 2
dpkg-buildpackage: 错误: fakeroot debian/rules clean 提供错误退出状态 2

I don't understand why it is happened? So I need your help.
Thanks,
Kobe Lee.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
kobe
Solved:
2013-03-13
Last query:
2013-03-13
Last reply:
kobe (kobe24-lixiang) said : #1

With Dmitrijs Ledkovs's help, I understand it now.
Here is the email content:
There is difference, lp:ubiquity does not have embedded copies of d-i
code while `apt-get source ubiquity` does have them.
To bootstrap:
$ ./debian/rules update-local
And after that dpkg-buildpackage command should succeed.
I would recommend using:
$ bzr bd
As that will export the tree, bootstrap remaining code, and build
source & binary packages in a clean way.