builds_debs.py busted in 1.1 branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
holland-backup |
Fix Released
|
High
|
Andrew Garner |
Bug Description
Looks like the build_debs.py package is not working quite right. My first problem was that Sphinx was putting the output in docs/build/man but the script was wanting it in docs/man. It also cannot find the README files. Here's some failure:
root@HollandBui
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package holland
dpkg-buildpackage: source version 1.1.0-1
dpkg-buildpackage: source changed by Andrew Garner <email address hidden>
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
dpkg-source -b holland
dpkg-source: warning: source directory 'holland' is not <sourcepackage>
dpkg-source: info: using source format `1.0'
dpkg-source: info: building holland in holland_
dpkg-source: info: building holland in holland_1.1.0-1.dsc
debian/rules build
dh_testdir
touch configure-stamp
dh_testdir
touch build-stamp
fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
cd docs && make text
make[1]: Entering directory `/root/
sphinx-build -b text -d build/doctrees source build/text
Making output directory...
Running Sphinx v1.0.7
loading pickled environment... not yet created
loading intersphinx inventory from http://
building [text]: targets for 9 source files that are out of date
updating environment: 9 added, 0 changed, 0 removed
reading sources... [ 11%] commands
reading sources... [ 22%] config
reading sources... [ 33%] developer/cli
reading sources... [ 44%] developer/core
reading sources... [ 55%] developer/plugins
reading sources... [ 66%] hooks
reading sources... [ 77%] index
reading sources... [ 88%] intro
reading sources... [100%] user/cli
looking for now-outdated files... none found
pickling environment... done
checking consistency... /root/git/
done
preparing documents... done
writing output... [ 11%] commands
writing output... [ 22%] config
writing output... [ 33%] developer/cli
writing output... [ 44%] developer/core
writing output... [ 55%] developer/plugins
writing output... [ 66%] hooks
writing output... [ 77%] index
writing output... [ 88%] intro
writing output... [100%] user/cli
build succeeded, 1 warning.
Build finished. The text files are in build/text.
make[1]: Leaving directory `/root/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
Skipping installation of /root/git/
mkdir -p /root/git/
mkdir -p /root/git/
mkdir -p /root/git/
dh_testdir
dh_testroot
dh_installchang
dh_installdocs
cp: cannot stat `README': No such file or directory
dh_installdocs: cp -a README debian/
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1340:
dpkg-buildpackage -rfakeroot -D -us -uc failed
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
root@HollandBui
I suspect that is because I was building on 10.04 and had to easy_install the updated Sphinx package? I fixed that manually by building the man pages myself and copying them to docs/man and then simply creating a blank README file.
That allowed the DEBs to build, but after install I get:
root@mcp:
Traceback (most recent call last):
File "/usr/sbin/
load_
File "/usr/lib/
return get_distributio
File "/usr/lib/
return ep.load()
File "/usr/lib/
entry = __import_
ImportError: No module named cli.main
Changed in holland-backup: | |
status: | Fix Committed → Fix Released |
I pushed some changes to have this at least build on debian. I thought I had cleaned that up more but build_debs.py improvements was sitting in a local feature branch.
We do currently require sphinx 1.0 to build the documentation but I plan to push that into a make_release process before we go into beta so we don't make it a pain for packagers (and sphinx 1.0 otherwise makes a lot of things like man page generation and pretty html docs much easier for us). For now I just clipped the documentation out of the build_debs.py script.
The stack trace you saw was just because contrib/debian/ was including the new holland.cli package which was just split off in 1.1. That should be fixed if you pull from my amsterdam tree.