[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806209: jsonm: FTBFS when built with dpkg-buildpackage -A (dh_ocamldoc -i fails)



Package: src:jsonm
Version: 0.9.1-1
User: sanvila@debian.org
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
dh build-indep --with ocaml
   dh_testdir -i
   dh_ocamlinit -i
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ocaml setup.ml -configure 	\
	--enable-tests		\
	--enable-docs		\
	--prefix /<<PKGBUILDDIR>>/debian/tmp

Configuration: 
ocamlfind: ........................................... /usr/bin/ocamlfind
ocamlc: .............................................. /usr/bin/ocamlc
ocamlopt: ............................................ /usr/bin/ocamlopt
ocamlbuild: .......................................... /usr/bin/ocamlbuild
Package name: ........................................ jsonm
Package version: ..................................... 0.9.1
os_type: ............................................. Unix
system: .............................................. linux
architecture: ........................................ amd64
ccomp_type: .......................................... cc
ocaml_version: ....................................... 4.01.0
standard_library_default: ............................ /usr/lib/ocaml
standard_library: .................................... /usr/lib/ocaml
standard_runtime: .................................... /usr/bin/ocamlrun
bytecomp_c_compiler: ................................. gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
native_c_compiler: ................................... gcc -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
model: ............................................... default
ext_obj: ............................................. .o
ext_asm: ............................................. .s
ext_lib: ............................................. .a
ext_dll: ............................................. .so
default_executable_name: ............................. a.out
systhread_supported: ................................. true
Install architecture-independent files dir: .......... /<<PKGBUILDDIR>>/debian/tmp
Install architecture-dependent files in dir: ......... $prefix
User executables: .................................... $exec_prefix/bin
System admin executables: ............................ $exec_prefix/sbin
Program executables: ................................. $exec_prefix/libexec
Read-only single-machine data: ....................... $prefix/etc
Modifiable architecture-independent data: ............ $prefix/com
Modifiable single-machine data: ...................... $prefix/var
Object code libraries: ............................... $exec_prefix/lib
Read-only arch-independent data root: ................ $prefix/share
Read-only architecture-independent data: ............. $datarootdir
Info documentation: .................................. $datarootdir/info
Locale-dependent data: ............................... $datarootdir/locale
Man documentation: ................................... $datarootdir/man
Documentation root: .................................. $datarootdir/doc/$pkg_name
HTML documentation: .................................. $docdir
DVI documentation: ................................... $docdir
PDF documentation: ................................... $docdir
PS documentation: .................................... $docdir
findlib_version: ..................................... 1.5.5
is_native: ........................................... true
suffix_program: ...................................... 
Remove a file.: ...................................... rm -f
Remove a directory.: ................................. rm -rf
Turn ocaml debug flag on: ............................ true
Turn ocaml profile flag on: .......................... false
Compiler support generation of .cmxs.: ............... true
OCamlbuild additional flags: ......................... 
Create documentations: ............................... true
Compile tests executable and library and run them: ... true
pkg_uutf: ............................................ /usr/lib/ocaml/uutf
pkg_unix: ............................................ /usr/lib/ocaml
ocamldoc: ............................................ /usr/bin/ocamldoc

make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ocaml setup.ml -build
/usr/bin/ocamlopt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
ocamlfind ocamldep -package uutf -modules src/jsonm.mli > src/jsonm.mli.depends
ocamlfind ocamlc -c -g -package uutf -I src -o src/jsonm.cmi src/jsonm.mli
ocamlfind ocamldep -package uutf -modules src/jsonm.ml > src/jsonm.ml.depends
ocamlfind ocamlc -c -g -package uutf -I src -o src/jsonm.cmo src/jsonm.ml
ocamlfind ocamlc -a src/jsonm.cmo -o src/jsonm.cma
ocamlfind ocamlopt -c -g -package uutf -I src -o src/jsonm.cmx src/jsonm.ml
ocamlfind ocamlopt -a src/jsonm.cmx -o src/jsonm.cmxa
ocamlfind ocamlopt -shared src/jsonm.cmx -o src/jsonm.cmxs
ocamlfind ocamldep -package uutf -package unix -modules test/jsontrip.ml > test/jsontrip.ml.depends
ocamlfind ocamlc -c -g -I src -package uutf -package unix -I test -I src -o test/jsontrip.cmo test/jsontrip.ml
ocamlfind ocamlopt -c -g -I src -package uutf -package unix -I test -I src -o test/jsontrip.cmx test/jsontrip.ml
ocamlfind ocamlopt -g -linkpkg -package uutf -package unix src/jsonm.cmxa test/jsontrip.cmx -o test/jsontrip.native
ocamlfind ocamldep -package uutf -package unix -modules test/ocamltweets.ml > test/ocamltweets.ml.depends
ocamlfind ocamlc -c -g -I src -package uutf -package unix -I test -I src -o test/ocamltweets.cmo test/ocamltweets.ml
ocamlfind ocamlopt -c -g -I src -package uutf -package unix -I test -I src -o test/ocamltweets.cmx test/ocamltweets.ml
ocamlfind ocamlopt -g -linkpkg -package uutf -package unix src/jsonm.cmxa test/ocamltweets.cmx -o test/ocamltweets.native
ocamlfind ocamldep -package uutf -package unix -modules test/test.ml > test/test.ml.depends
ocamlfind ocamlc -c -g -I src -package uutf -package unix -I test -I src -o test/test.cmo test/test.ml
ocamlfind ocamlopt -c -g -I src -package uutf -package unix -I test -I src -o test/test.cmx test/test.ml
ocamlfind ocamlopt -g -linkpkg -package uutf src/jsonm.cmxa test/test.cmx -o test/test.native
ocamlfind ocamldep -package uutf -package unix -modules test/jtree.ml > test/jtree.ml.depends
ocamlfind ocamlc -c -g -I src -package uutf -package unix -I test -I src -o test/jtree.cmo test/jtree.ml
ocamlfind ocamlopt -c -g -I src -package uutf -package unix -I test -I src -o test/jtree.cmx test/jtree.ml
ocamlfind ocamlopt -g -linkpkg -package uutf src/jsonm.cmxa test/jtree.cmx -o test/jtree.native
ocamlfind ocamldep -package uutf -package unix -modules test/examples.ml > test/examples.ml.depends
ocamlfind ocamlc -c -g -I src -package uutf -package unix -I test -I src -o test/examples.cmo test/examples.ml
ocamlfind ocamlopt -c -g -I src -package uutf -package unix -I test -I src -o test/examples.cmx test/examples.ml
ocamlfind ocamlopt -g -linkpkg -package uutf -package unix src/jsonm.cmxa test/examples.cmx -o test/examples.native
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ocaml setup.ml -test
Invalid encodes.
Encoder escapes.
Decoder encoding guesses.
Decoder escapes.
Decoder comments.
Decoder literals.
Decoder numbers.
Decoder arrays.
Decoder objects.
Decoder JSON text.
Decoder BOM.
Decoder end of input.
Codec round-trips.
All tests succeeded.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
 fakeroot debian/rules binary-indep
dh binary-indep --with ocaml
   dh_testroot -i
   dh_prep -i
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm
ocaml setup.ml -install
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.mli
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.cma
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.cmxa
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.a
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.cmxs
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.cmi
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/jsonm.cmx
Installed /<<PKGBUILDDIR>>/debian/tmp//usr/lib/ocaml/jsonm/META
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install --list-missing
dh_install: bin/jsontrip exists in debian/tmp but is not installed to anywhere
dh_install: bin/ocamltweets exists in debian/tmp but is not installed to anywhere
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_ocamldoc -i
E: debian/libjsonm-ocaml-dev doesn't exist, but is referenced from debian/libjsonm-ocaml-doc.ocamldoc at /usr/bin/dh_ocamldoc line 167, <OCAMLDOC> line 1.
debian/rules:9: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
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.

There is a feature of "dh" which sometimes helps in cases like this,
which is to use 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 to: