Bug#655804: update-manager: FTBFS: Error: `/usr/share/sphinx/themes/basic/static/jquery.js` and `/build/update-manager-OCasPf/update-manager-0.200.5/doc/build/html/_static/jquery.js` are the same file

2012-06-05 Thread Simon Paillard
tags 655804 +unreproducible

Hi,

update-manager builds cleanly in a sid pbuilder.

Note python-sphinx is now 1.1.3+dfsg-4.

On Sat, Jan 14, 2012 at 06:13:08AM +0100, Lucas Nussbaum wrote:
 Source: update-manager
 Version: 0.200.5-2
 Severity: serious
 Tags: wheezy sid
 User: debian...@lists.debian.org
 Usertags: qa-ftbfs-20120112 qa-ftbfs
 Justification: FTBFS on amd64
 
 During a rebuild of all packages in sid, your package failed to build on
 amd64.
 
 Relevant part:
  make[1]: Entering directory 
  `/build/update-manager-OCasPf/update-manager-0.200.5/doc'
  mkdir -p build/html build/doctrees
  sphinx-build -b html -d build/doctrees   source build/html
  Running Sphinx v1.0.8
  loading pickled environment... done
  building [html]: targets for 0 source files that are out of date
  updating environment: 0 added, 1 changed, 0 removed
  reading sources... [100%] api/UpdateManager/Frontend/Newt
  Traceback (most recent call last):
File /usr/lib/pymodules/python2.7/sphinx/ext/autodoc.py, line 329, in 
  import_object
  __import__(self.modname)
File 
  /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/../../UpdateManager/Frontend/Newt.py,
   line 34, in module
  from snack import SnackScreen, ButtonBar, Textbox, CheckboxTree, 
  GridForm
File /usr/lib/python2.7/dist-packages/snack.py, line 42, in module
  import _snack
  ImportError: No module named _snack
  /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:6:
   WARNING: autodoc can't import/find module 'UpdateManager.Frontend.Newt', 
  it reported error: No module named _snack, please check your spelling and 
  sys.path
  /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:8:
   WARNING: don't know which module to import for autodocumenting 
  u'NewtFrontend' (try placing a module or currentmodule directive in the 
  document, or giving an explicit module name)
  
  /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:12:
   WARNING: don't know which module to import for autodocumenting u'NewtUI' 
  (try placing a module or currentmodule directive in the document, or 
  giving an explicit module name)
  /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:16:
   WARNING: don't know which module to import for autodocumenting 
  u'NewtCacheProgressHandler' (try placing a module or currentmodule 
  directive in the document, or giving an explicit module name)
  looking for now-outdated files... none found
  pickling environment... done
  checking consistency... done
  preparing documents... done
  writing output... [ 33%] api/UpdateManager/Frontend/Newt
  writing output... [ 66%] api/UpdateManager/Frontend/index
  writing output... [100%] index
  
  writing additional files... genindex py-modindex search
  
  Exception occurred:
File /usr/lib/pymodules/python2.7/sphinx/cmdline.py, line 188, in main
  app.build(force_all, filenames)
File /usr/lib/pymodules/python2.7/sphinx/application.py, line 207, in 
  build
  self.builder.build_update()
File /usr/lib/pymodules/python2.7/sphinx/builders/__init__.py, line 
  198, in build_update
  'out of date' % len(to_build))
File /usr/lib/pymodules/python2.7/sphinx/builders/__init__.py, line 
  257, in build
  self.finish()
File /usr/lib/pymodules/python2.7/sphinx/builders/html.py, line 453, in 
  finish
  self.copy_static_files()
File /usr/lib/pymodules/python2.7/sphinx/builders/html.py, line 547, in 
  copy_static_files
  self, self.globalcontext)
File /usr/lib/pymodules/python2.7/sphinx/util/__init__.py, line 158, in 
  copy_static_entry
  exclude_matchers=exclude_matchers)
File /usr/lib/pymodules/python2.7/sphinx/util/__init__.py, line 150, in 
  copy_static_entry
  copyfile(source, target)
File /usr/lib/pymodules/python2.7/sphinx/util/osutil.py, line 114, in 
  copyfile
  shutil.copyfile(source, dest)
File /usr/lib/python2.7/shutil.py, line 69, in copyfile
  raise Error(`%s` and `%s` are the same file % (src, dst))
  Error: `/usr/share/sphinx/themes/basic/static/jquery.js` and 
  `/build/update-manager-OCasPf/update-manager-0.200.5/doc/build/html/_static/jquery.js`
   are the same file
  The full traceback has been saved in /tmp/sphinx-err-IdPEnZ.log, if you 
  want to report the issue to the developers.
  Please also report this if it was a user error, so that a better error 
  message can be provided next time.
  Either send bugs to the mailing list at 
  http://groups.google.com/group/sphinx-dev/,
  or report them in the tracker at 
  http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!
  make[1]: *** [html] Error 1
 
 The full build log is available from:

 http://people.debian.org/~lucas/logs/2012/01/12/update-manager_0.200.5-2_lsid64.buildlog
 
 A list of current common problems and possible solutions is 

Bug#655804: update-manager: FTBFS: Error: `/usr/share/sphinx/themes/basic/static/jquery.js` and `/build/update-manager-OCasPf/update-manager-0.200.5/doc/build/html/_static/jquery.js` are the same file

2012-06-05 Thread Jakub Wilk

Hi Simon and update-manager maintainers!

* Simon Paillard spaill...@debian.org, 2012-06-05, 21:01:

update-manager builds cleanly in a sid pbuilder.

Note python-sphinx is now 1.1.3+dfsg-4.


Thanks for bringing this bug to my attention.


Exception occurred:
  File /usr/lib/pymodules/python2.7/sphinx/cmdline.py, line 188, in main
app.build(force_all, filenames)
  File /usr/lib/pymodules/python2.7/sphinx/application.py, line 207, in build
self.builder.build_update()
  File /usr/lib/pymodules/python2.7/sphinx/builders/__init__.py, line 198, in 
build_update
'out of date' % len(to_build))
  File /usr/lib/pymodules/python2.7/sphinx/builders/__init__.py, line 257, in 
build
self.finish()
  File /usr/lib/pymodules/python2.7/sphinx/builders/html.py, line 453, in 
finish
self.copy_static_files()
  File /usr/lib/pymodules/python2.7/sphinx/builders/html.py, line 547, in 
copy_static_files
self, self.globalcontext)
  File /usr/lib/pymodules/python2.7/sphinx/util/__init__.py, line 158, in 
copy_static_entry
exclude_matchers=exclude_matchers)
  File /usr/lib/pymodules/python2.7/sphinx/util/__init__.py, line 150, in 
copy_static_entry
copyfile(source, target)
  File /usr/lib/pymodules/python2.7/sphinx/util/osutil.py, line 114, in 
copyfile
shutil.copyfile(source, dest)
  File /usr/lib/python2.7/shutil.py, line 69, in copyfile
raise Error(`%s` and `%s` are the same file % (src, dst))
Error: `/usr/share/sphinx/themes/basic/static/jquery.js` and 
`/build/update-manager-OCasPf/update-manager-0.200.5/doc/build/html/_static/jquery.js`
 are the same file


This could happen if you:
0) Build documentation using Sphinx.
1) Mess with the documentation build directory by creating symlinks.
2) Build the documentation again.

The fix is to:
1) Not to mess with the build directory. Instead, install it (e.g. using 
dh_install) to debian/package/ and then create symlinks there (e.g. 
using dh_link or, preferably, dh_sphinxdoc).

2) Build the documentation only once.

(Either of the two things is sufficient to fix the problem, though you 
should do both.)


I haven't figured out yet why it doesn't fail anymore. But unless you 
fix your code, don't be surprised if it fails again in the future. :) 


--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#655804: update-manager: FTBFS: Error: `/usr/share/sphinx/themes/basic/static/jquery.js` and `/build/update-manager-OCasPf/update-manager-0.200.5/doc/build/html/_static/jquery.js` are the same file

2012-01-13 Thread Lucas Nussbaum
Source: update-manager
Version: 0.200.5-2
Severity: serious
Tags: wheezy sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20120112 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
 make[1]: Entering directory 
 `/build/update-manager-OCasPf/update-manager-0.200.5/doc'
 mkdir -p build/html build/doctrees
 sphinx-build -b html -d build/doctrees   source build/html
 Running Sphinx v1.0.8
 loading pickled environment... done
 building [html]: targets for 0 source files that are out of date
 updating environment: 0 added, 1 changed, 0 removed
 reading sources... [100%] api/UpdateManager/Frontend/Newt
 Traceback (most recent call last):
   File /usr/lib/pymodules/python2.7/sphinx/ext/autodoc.py, line 329, in 
 import_object
 __import__(self.modname)
   File 
 /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/../../UpdateManager/Frontend/Newt.py,
  line 34, in module
 from snack import SnackScreen, ButtonBar, Textbox, CheckboxTree, GridForm
   File /usr/lib/python2.7/dist-packages/snack.py, line 42, in module
 import _snack
 ImportError: No module named _snack
 /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:6:
  WARNING: autodoc can't import/find module 'UpdateManager.Frontend.Newt', it 
 reported error: No module named _snack, please check your spelling and 
 sys.path
 /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:8:
  WARNING: don't know which module to import for autodocumenting 
 u'NewtFrontend' (try placing a module or currentmodule directive in the 
 document, or giving an explicit module name)
 
 /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:12:
  WARNING: don't know which module to import for autodocumenting u'NewtUI' 
 (try placing a module or currentmodule directive in the document, or 
 giving an explicit module name)
 /build/update-manager-OCasPf/update-manager-0.200.5/doc/source/api/UpdateManager/Frontend/Newt.rst:16:
  WARNING: don't know which module to import for autodocumenting 
 u'NewtCacheProgressHandler' (try placing a module or currentmodule 
 directive in the document, or giving an explicit module name)
 looking for now-outdated files... none found
 pickling environment... done
 checking consistency... done
 preparing documents... done
 writing output... [ 33%] api/UpdateManager/Frontend/Newt
 writing output... [ 66%] api/UpdateManager/Frontend/index
 writing output... [100%] index
 
 writing additional files... genindex py-modindex search
 
 Exception occurred:
   File /usr/lib/pymodules/python2.7/sphinx/cmdline.py, line 188, in main
 app.build(force_all, filenames)
   File /usr/lib/pymodules/python2.7/sphinx/application.py, line 207, in 
 build
 self.builder.build_update()
   File /usr/lib/pymodules/python2.7/sphinx/builders/__init__.py, line 198, 
 in build_update
 'out of date' % len(to_build))
   File /usr/lib/pymodules/python2.7/sphinx/builders/__init__.py, line 257, 
 in build
 self.finish()
   File /usr/lib/pymodules/python2.7/sphinx/builders/html.py, line 453, in 
 finish
 self.copy_static_files()
   File /usr/lib/pymodules/python2.7/sphinx/builders/html.py, line 547, in 
 copy_static_files
 self, self.globalcontext)
   File /usr/lib/pymodules/python2.7/sphinx/util/__init__.py, line 158, in 
 copy_static_entry
 exclude_matchers=exclude_matchers)
   File /usr/lib/pymodules/python2.7/sphinx/util/__init__.py, line 150, in 
 copy_static_entry
 copyfile(source, target)
   File /usr/lib/pymodules/python2.7/sphinx/util/osutil.py, line 114, in 
 copyfile
 shutil.copyfile(source, dest)
   File /usr/lib/python2.7/shutil.py, line 69, in copyfile
 raise Error(`%s` and `%s` are the same file % (src, dst))
 Error: `/usr/share/sphinx/themes/basic/static/jquery.js` and 
 `/build/update-manager-OCasPf/update-manager-0.200.5/doc/build/html/_static/jquery.js`
  are the same file
 The full traceback has been saved in /tmp/sphinx-err-IdPEnZ.log, if you want 
 to report the issue to the developers.
 Please also report this if it was a user error, so that a better error 
 message can be provided next time.
 Either send bugs to the mailing list at 
 http://groups.google.com/group/sphinx-dev/,
 or report them in the tracker at 
 http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!
 make[1]: *** [html] Error 1

The full build log is available from:
   
http://people.debian.org/~lucas/logs/2012/01/12/update-manager_0.200.5-2_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.



-- 
To UNSUBSCRIBE, email