builds_debs.py busted in 1.1 branch

Bug #768522 reported by m00dawg
6
This bug affects 1 person
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@HollandBuild:~/git/holland# scripts/build_debs.py
 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-functions
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>-<upstreamversion> 'holland-1.1.0'
dpkg-source: info: using source format `1.0'
dpkg-source: info: building holland in holland_1.1.0-1.tar.gz
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/git/holland/docs'
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://docs.python.org/objects.inv...
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/holland/docs/source/user/cli.rst:: WARNING: document isn't included in any toctree
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/git/holland/docs'
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/backup/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/backup/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/lib/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/backup/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/backup/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/backup/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/backup/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/lib/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/lib/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/__init__.py (namespace package)
Skipping installation of /root/git/holland/debian/tmp/usr/lib/python2.6/dist-packages/holland/lib/__init__.py (namespace package)
mkdir -p /root/git/holland/debian/tmp/etc/holland
mkdir -p /root/git/holland/debian/tmp/etc/holland/backupsets
mkdir -p /root/git/holland/debian/tmp/etc/holland/providers
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
cp: cannot stat `README': No such file or directory
dh_installdocs: cp -a README debian/holland/usr/share/doc/holland returned exit code 1
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@HollandBuild:~/git/holland#

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:/home/tim/holland# holland bk transtest
Traceback (most recent call last):
  File "/usr/sbin/holland", line 9, in <module>
    load_entry_point('holland==1.1.0', 'console_scripts', 'holland')()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named cli.main

Revision history for this message
Andrew Garner (muzazzi) wrote :

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.

Changed in holland-backup:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Andrew Garner (muzazzi)
Revision history for this message
m00dawg (tim-moocowproductions) wrote :

Seem to be working under Ubuntu 10.04 now. Thanks Andy!

Revision history for this message
Andrew Garner (muzazzi) wrote :

Merged updated build_debs.py script here:

https://github.com/holland-backup/holland/tree/f0cd82a413264520960ad22a53083ec24b056737

These build a release tarball first under a virtualenv and then build debs based off that. This should work a little more consistently and maintain the useful sphinx documentation.

Changed in holland-backup:
status: Triaged → Fix Committed
Andrew Garner (muzazzi)
Changed in holland-backup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.