"make clean; make schema" fails with API doc error

Bug #559159 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Jonathan Lange

Bug Description

After updating sourcedeps, pulling the latest stable and updating my download-cache, I can no longer build Launchpad.

The API doc generation step fails with what appears to be a fairly shallow Makefile error:
 mv lib/canonical/launchpad/apidoc.tmp/* lib/canonical/launchpad/apidoc
 mv: target `lib/canonical/launchpad/apidoc' is not a directory
 make: *** [lib/canonical/launchpad/apidoc/index.html] Error 1

Here's the full output. I'll start working on a fix now, since I believe this bug to be critical

jml@truth:~/src/launchpad/stable$ make clean
rm -f lib/canonical/launchpad/icing/build/launchpad.js
rm -f -r lazr-js/build
make -C sourcecode/pygettextpo clean
make[1]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/pygettextpo'
rm -rf build dist gettextpo.so gettextpo.html
make[1]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/pygettextpo'
# XXX gary 2009-11-16 bug 483782
# The pygettextpo Makefile should have this next line in it for its make
# clean, and then we should remove this line.
rm -f sourcecode/pygpgme/gpgme/*.so
if test -f sourcecode/mailman/Makefile; then \
  make -C sourcecode/mailman clean; \
 fi
make[1]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/bin'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/bin'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/cron'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/cron'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/misc'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/misc'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman'
for d in Cgi Logging Archiver Handlers Bouncers Queue MTA Gui Commands; \
 do \
     (cd $d; make clean); \
 done
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Cgi'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Cgi'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Logging'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Logging'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Archiver'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Archiver'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Handlers'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Handlers'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Bouncers'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Bouncers'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Queue'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Queue'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/MTA'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/MTA'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Gui'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Gui'
make[3]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Commands'
make[3]: Nothing to be done for `clean'.
make[3]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman/Commands'
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/Mailman'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/scripts'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/scripts'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/src'
rm: cannot remove `*.o': No such file or directory
make[2]: [clean] Error 1 (ignored)
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/src'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/templates'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/templates'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/messages'
rm -f */LC_MESSAGES/mailman.mo
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/messages'
make[2]: Entering directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/tests'
make[2]: Nothing to be done for `clean'.
make[2]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman/tests'
rm -f update.log
make[1]: Leaving directory `/home/jml/repos/lp-sourcedeps/sourcecode/mailman'
find . -path ./eggs -prune -false -o \
  -type f \( -name '*.o' -o -name '*.so' -o -name '*.la' -o \
     -name '*.lo' -o -name '*.py[co]' -o -name '*.dll' \) \
     -print0 | xargs -r0 rm -f
rm -f -r bin
rm -f -r parts
rm -f -r develop-eggs
rm -f .installed.cfg
rm -f -r build
rm -f thread*.request
rm -f -r lib/mailman
rm -f -rf lib/canonical/launchpad/icing/build/*
rm -f -r /var/tmp/bazaar.launchpad.dev
rm -f lib/canonical/launchpad/apidoc/wadl*.xml lib/canonical/launchpad/apidoc/*.html
rm -f -rf lib/canonical/launchpad/apidoc.tmp
rm -f bzr-version-info.py
rm -f _pythonpath.py
rm -f -rf \
     /var/tmp/builddmaster \
     /var/tmp/bzrsync \
     /var/tmp/codehosting.test \
     /var/tmp/codeimport \
     /var/tmp/fatsam.appserver \
     /var/tmp/lperr \
     /var/tmp/lperr.test \
     /var/tmp/mailman \
     /var/tmp/mailman-xmlrpc.test \
     /var/tmp/ppa \
     /var/tmp/ppa.test \
     /var/tmp/zeca
# /var/tmp/launchpad_mailqueue is created read-only on ec2test
# instances.
if [ -w /var/tmp/launchpad_mailqueue ]; then rm -f -rf /var/tmp/launchpad_mailqueue; fi
rm -f -f lp.sfood lp-clustered.sfood lp-clustered.dot lp-clustered.svg
jml@truth:~/src/launchpad/stable$ make schema
utilities/shhh.py PYTHONPATH= python2.5 bootstrap.py\
  --setup-source=ez_setup.py \
  --download-base=download-cache/dist --eggs=eggs
utilities/shhh.py PYTHONPATH= ./bin/buildout \
                configuration:instance_name=development -c buildout.cfg
scripts/update-bzr-version-info.sh
Creating bzr-version-info.py at revno 10662
utilities/shhh.py make -C sourcecode build PYTHON=python2.5 \
     PYTHON_VERSION=2.5 LPCONFIG=development
utilities/shhh.py LPCONFIG=development /home/jml/src/launchpad/stable/bin/py -t buildmailman.py
^[[Dmkdir -p lib/canonical/launchpad/apidoc.tmp
LPCONFIG=development /home/jml/src/launchpad/stable/bin/py ./utilities/create-lp-wadl-and-apidoc.py "lib/canonical/launchpad/apidoc.tmp/wadl-development-%(version)s.xml"
Writing WADL for version beta to lib/canonical/launchpad/apidoc.tmp/wadl-development-beta.xml.
Writing apidoc for version beta to lib/canonical/launchpad/apidoc.tmp/beta.html
Writing WADL for version 1.0 to lib/canonical/launchpad/apidoc.tmp/wadl-development-1.0.xml.
Unknown entry URL:
                    archive_dependency
Unknown entry URL:
                    archive_subscriber
Unknown entry URL:
                    binary_package_release_download_count
Unknown entry URL:
                    branch_subscription
Unknown entry URL:
                    bug_branch
Unknown entry URL:
                    bug_nomination
Unknown entry URL:
                    code_import
Unknown entry URL:
                    code_review_comment
Unknown entry URL:
                    code_review_vote_reference
Unknown entry URL:
                    country
Unknown entry URL:
                    distribution_mirror
Unknown entry URL:
                    gpg_key
Unknown entry URL:
                    h_w_driver_name
Unknown entry URL:
                    h_w_driver_package_name
Unknown entry URL:
                    hwdb
Unknown entry URL:
                    object_with_translation_imports
Unknown entry URL:
                    package_upload
Unknown entry URL:
                    packageset
Unknown entry URL:
                    preview_diff
Unknown entry URL:
                    specification
Unknown entry URL:
                    specification_branch
Unknown entry URL:
                    ssh_key
Unknown entry URL:
                    structural_subscription
Unknown entry URL:
                    structural_subscription_target
Unknown entry URL:
                    temporary_blob
Unknown entry URL:
                    translation_import_queue_entry
Writing apidoc for version 1.0 to lib/canonical/launchpad/apidoc.tmp/1.0.html
Writing WADL for version devel to lib/canonical/launchpad/apidoc.tmp/wadl-development-devel.xml.
Unknown entry URL:
                    archive_dependency
Unknown entry URL:
                    archive_subscriber
Unknown entry URL:
                    binary_package_release_download_count
Unknown entry URL:
                    branch_subscription
Unknown entry URL:
                    bug_branch
Unknown entry URL:
                    bug_nomination
Unknown entry URL:
                    code_import
Unknown entry URL:
                    code_review_comment
Unknown entry URL:
                    code_review_vote_reference
Unknown entry URL:
                    country
Unknown entry URL:
                    distribution_mirror
Unknown entry URL:
                    gpg_key
Unknown entry URL:
                    h_w_driver_name
Unknown entry URL:
                    h_w_driver_package_name
Unknown entry URL:
                    hwdb
Unknown entry URL:
                    object_with_translation_imports
Unknown entry URL:
                    package_upload
Unknown entry URL:
                    packageset
Unknown entry URL:
                    preview_diff
Unknown entry URL:
                    specification
Unknown entry URL:
                    specification_branch
Unknown entry URL:
                    ssh_key
Unknown entry URL:
                    structural_subscription
Unknown entry URL:
                    structural_subscription_target
Unknown entry URL:
                    temporary_blob
Unknown entry URL:
                    translation_import_queue_entry
Writing apidoc for version devel to lib/canonical/launchpad/apidoc.tmp/devel.html
Unknown entry URL:
                    archive_dependency
Unknown entry URL:
                    archive_subscriber
Unknown entry URL:
                    binary_package_release_download_count
Unknown entry URL:
                    branch_subscription
Unknown entry URL:
                    bug_branch
Unknown entry URL:
                    bug_nomination
Unknown entry URL:
                    code_import
Unknown entry URL:
                    code_review_comment
Unknown entry URL:
                    code_review_vote_reference
Unknown entry URL:
                    country
Unknown entry URL:
                    distribution_mirror
Unknown entry URL:
                    gpg_key
Unknown entry URL:
                    h_w_driver_name
Unknown entry URL:
                    h_w_driver_package_name
Unknown entry URL:
                    hwdb
Unknown entry URL:
                    object_with_translation_imports
Unknown entry URL:
                    package_upload
Unknown entry URL:
                    packageset
Unknown entry URL:
                    preview_diff
Unknown entry URL:
                    specification
Unknown entry URL:
                    specification_branch
Unknown entry URL:
                    ssh_key
Unknown entry URL:
                    structural_subscription
Unknown entry URL:
                    structural_subscription_target
Unknown entry URL:
                    temporary_blob
Unknown entry URL:
                    translation_import_queue_entry
mv lib/canonical/launchpad/apidoc.tmp/* lib/canonical/launchpad/apidoc
mv: target `lib/canonical/launchpad/apidoc' is not a directory
make: *** [lib/canonical/launchpad/apidoc/index.html] Error 1
jml@truth:~/src/launchpad/stable$ bzr revno
10662

Revision history for this message
Jonathan Lange (jml) wrote :

The problem was caused by me incorrectly resolving bzr conflicts with lib/canonical/launchpad/apidoc. The directory should *not* be deleted when resolving conflicts, rather it should be emptied.

Changed in launchpad-foundations:
status: New → Invalid
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.