.deb library generation issue
Hi,
I am building a .deb package for a library from source tar to .deb ( 2
packages)
I was able to specify the right Build-depends section of the
debian/control file and build ( sudo pbuilder build ../*.dsc) the .deb to
completion (I got : libvirt_0.6.1-1_i386.deb and
libvirt-dev_0.6.1-1_i386.deb).
But i see at the end of the build output the following message (bold) :
......
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: building package `libvirt-dev' in
`../libvirt-dev_0.6.1-1_i386.deb'.
dpkg-deb: building package `libvirt' in `../libvirt_0.6.1-1_i386.deb'.
dpkg-genchanges >../libvirt_0.6.1-1_i386.changes
dpkg-genchanges: including full source code in upload
dpkg-buildpackage: full upload (original source is included)
Copying back the cached apt archive contents
-> unmounting dev/pts filesystem
-> unmounting proc filesystem
-> cleaning the build env
-> removing directory /var/cache/pbuilder/build//7247 and its
subdirectories
......
Notice the bold warning . why the build process does not recognize the
Depends section in the control file ?
While I was generating a .deb for a binary package (not a library) the
first warning (${shlibs:Depends}) did not show up.
At the end see the debian/control file (generated by dh_make -e ) and
the .dsc file (that was generated by : debuild -S -us -uc) I am using:
When i copied the 2 .deb files to another Ubuntu system and tried to
apt-get install them the libvirt-dev was installed ok but the
libvirt_0.6.1-1_i386.deb installation returned the following message :
dubi@lnx-phenix2:~/reservoir$ sudo apt-get install libvirt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libvirt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libvirt has no installation candidate
Any idea what is wrong ?
BTW: in the process of building the libvirt-dev package where is the *.h
files copied in the build environment before being packed into the .deb
file . I see no debian/tmp file in the build system
debian/control file:
Source: libvirt
Priority: extra
Maintainer: zvi Dubitzky <dubi@il.ibm.com>
Build-Depends: debhelper (>= 7), autotools-dev, libxml2 , libxml2-dev,
libxen3, libgnutls-dev, libsasl2-dev
Standards-Version: 3.8.0
Section: libs
Homepage: <insert the upstream URL, if relevant>
Package: libvirt-dev
Section: libdevel
Architecture: any
Depends: libvirt (= ${binary:Version})
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
Package: libvirt
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
.dsc file:
Format: 1.0
Source: libvirt
Binary: libvirt-dev, libvirt
Architecture: any
Version: 0.6.1-1
Maintainer: zvi Dubitzky <dubi@il.ibm.com>
Homepage: <insert the upstream URL, if relevant>
Standards-Version: 3.8.0
Build-Depends: debhelper (>= 7), autotools-dev, libxml2, libxml2-dev,
libxen3, libgnutls-dev, libsasl2-dev
Checksums-Sha1:
705d8409ed28619fcd4cd6c2063d60228762c45d 6476130
libvirt_0.6.1.orig.tar.gz
c3a0e3fabee02fc547823788456c21b539bbbe7d 2213 libvirt_0.6.1-1.diff.gz
Checksums-Sha256:
65a54819eec280a28fdf1a19b960aa33a8275f14a8ede06ae54752d5023b99de 6476130
libvirt_0.6.1.orig.tar.gz
ee12e6b4c93738ca58f91bb897ba050cf2fd56717689e53d0defdaac46357071 2213
libvirt_0.6.1-1.diff.gz
Files:
3154ea9d4a0778497dfdf58cb98127c0 6476130 libvirt_0.6.1.orig.tar.gz
96da8ae4b818f1071d1623f2723861bc 2213 libvirt_0.6.1-1.diff.gz
thanks
Zvi Dubitzky
Email:dubi@il.ibm.com
IBM Haifa Research Laboratory Phone: +972-4-8296182
Haifa, 31905, ISRAEL
Reply to: