i'm author of a small open-source database library and want to supply .deb packages through my ppa. I have a couple of problems. I followed the documentation and several tutorials and created a debian/ directory, but when I run 'dpkg-buildpackage -rfakeroot' i get the following error:
dh_install: hamsterdb-dev missing files (usr/lib/pkgconfig/*), aborting make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
do i have to supply a /usr/lib/pkgconfig/hamsterdb-dev.pc?
During the build process, the unittests are started and many files are created or modified. When i run dpkg-buildpackage again then i get many errors, here are excerpts:
dpkg-source: error: old version is plain file dpkg-source: error: cannot represent change to hamsterdb/install-sh: dpkg-source: error: new version is symlink to /usr/share/automake-1.11/install-sh dpkg-source: error: old version is plain file
dpkg-source: error: cannot represent change to tools/tests/db1.db: binary file contents changed dpkg-source: error: add tools/tests/db1.db in debian/source/include-binaries if you want to store the modified binary in the debian tarball dpkg-source: warning: executable mode 0775 of 'tools/tests/export_import.sh' will not be represented in diff dpkg-source: warning: executable mode 0775 of 'tools/tests/ham_dump/generate.sh' will not be represented in diff dpkg-source: warning: executable mode 0775 of 'tools/tests/ham_dump/compare.sh' will not be represented in diff dpkg-source: warning: executable mode 0775 of 'tools/tests/ham_info/generate.sh' will not be represented in diff dpkg-source: warning: file hamsterdb/documentation/latex/namespacehamsterdb.tex has no final newline (either original or modified version) dpkg-source: warning: file hamsterdb/documentation/latex/index.tex has no final newline (either original or modified version) dpkg-source: error: unrepresentable changes to source dpkg-buildpackage: error: dpkg-source -b hamsterdb gave error exit status 2
Is there a way to "force" the generation of a deb file? Or simply to ignore those "unrepresentable changes to source" errors?
Thanks for any help,
--- edit: thanks for the help so far. I managed to fix the errors that I listed above, but now i run into another one (might also be caused by my lack of knowledge regarding automake). debuild runs "libtool" on the library sources, but does not create any output files (at least i do not find any). And building the sample then fails with an error:
make: Entering directory `/home/chris/prj/hamsterdb/samples' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -g -O2 -Wall -DHAM_LITTLE_ENDIAN -fno-tree-vectorize -D_FILE_OFFSET_BITS=64 -c db1.c make: *** No rule to make target `../src/libhamsterdb.la', needed by `db1'.
This is how i invoke the build command:
db1_SOURCES = db1.c db1_LDADD = $(top_builddir)/src/libhamsterdb.la
The libhamsterdb.la is indeed missing.