Package: src:calibre
Version: 2.38.0+dfsg-1
User: [email protected]
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
test -x debian/rules
mkdir -p "."
/usr/share/cdbs/1/rules/buildcore.mk:110: CDBS WARNING:    DEB_DH_INSTALL_ARGS 
is deprecated since 0.4.85
 fakeroot debian/rules binary-indep
test -x debian/rules
dh_testroot
dh_prep 
dh_installdirs -A 
mkdir -p "."
/usr/share/cdbs/1/rules/buildcore.mk:110: CDBS WARNING:    DEB_DH_INSTALL_ARGS 
is deprecated since 0.4.85
env -u LANG -u LC_ALL -u LANGUAGE -u LC_MESSAGES 
CALIBRE_CONFIG_DIRECTORY=debian/tmp/config python2.7 setup.py install 
--root=debian/tmp/usr
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/<<BUILDDIR>>/calibre-2.38.0+dfsg/setup/__init__.py", line 181, in 
run_all
    self.run_cmd(self, opts)
  File "/<<BUILDDIR>>/calibre-2.38.0+dfsg/setup/__init__.py", line 173, in 
run_cmd
    cmd.pre_sub_commands(opts)
  File "/<<BUILDDIR>>/calibre-2.38.0+dfsg/setup/install.py", line 127, in 
pre_sub_commands
    import calibre.utils.config as c
  File "/<<BUILDDIR>>/calibre-2.38.0+dfsg/src/calibre/__init__.py", line 22, in 
<module>
    from calibre.startup import winutil, winutilerror
  File "/<<BUILDDIR>>/calibre-2.38.0+dfsg/src/calibre/startup.py", line 206, in 
<module>
    from calibre.utils.icu import title_case, lower as icu_lower, upper as 
icu_upper
  File "/<<BUILDDIR>>/calibre-2.38.0+dfsg/src/calibre/utils/icu.py", line 28, 
in <module>
    raise RuntimeError('Failed to load icu with error: %s' % err)
RuntimeError: Failed to load icu with error: No module named icu
/<<BUILDDIR>>/calibre-2.38.0+dfsg/src/calibre/ptempfile.py:27: RuntimeWarning: 
Parent module 'calibre' not found while handling absolute import
  import shutil
debian/rules:27: recipe for target 'debian/tmp' failed
make: *** [debian/tmp] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit 
status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.

Reply via email to