Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to build a set of small packages using the following scheme:

  • Source tarball turned into bzr repo using bzr dh-make
  • Source package built using dpkg-buildpackage -S -sa
  • Upload source tarball to apt archive maintained by reprepro and rebuildd dput local xyz_source.changes
  • Rebuildd building the package using pbuilder build --debbuildopts "-B" --basetgz <correct tgz> --binary-arch --architecture ${a} ${p}_${v}.dsc
  • Rebuildd putting the packages onto the apt repo via reprepro

All of this is happening on an up-to-date saucy amd64 installation.

The problem I seem to have, however, is that '${shlibs:Depends}' and 'bzr-gencontrol' don't seem to be working as expected for precise, as seen in the following snippet from a buildlog for precise amd64.

dh_gencontrol -a 
dpkg-gencontrol: warning: Depends field of package python-libxtcon: unknown substitution variable ${shlibs:Depends}

This problem arises only for the packages built for precise - both amd64 and i386. Packages built for quantal, raring, saucy, and trusty work fine (though they do throw a different warning which likely doesn't effect me). The corresponding lines from a buildlog for the same package (everything identical, except for version number and distribution specified in debian/changelog), are as follows:

dh_gencontrol -a
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe

The generated packages for precise lack the correct Depends: information, while those for quantal, raring, saucy, and testy have good Depends.

$ lesspipe python-libxlia_0.1-0~precise1_amd64.deb

python-libxlia_0.1-0~precise1_amd64.deb:
new debian package, version 2.0.
size 5348 bytes: control archive=634 bytes.
    412 bytes,    12 lines      control              
    404 bytes,     5 lines      md5sums              
Package: python-libxlia
Version: 0.1-0~precise1
Architecture: amd64
Maintainer: Chintalagiri Shashank <[email protected]>
Installed-Size: 48
Depends: python-support (>= 0.90)
Section: python
Priority: extra
Homepage: <snip>
Description: <snip>

*** Contents:
drwxr-xr-x root/root         0 2013-12-08 22:58 ./
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/lib/
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/lib/python2.7/
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/lib/python2.7/site-packages/
-rw-r--r-- root/root      4102 2013-12-08 22:58 ./usr/lib/python2.7/site-packages/libxlia.py
-rw-r--r-- root/root       192 2013-12-08 22:58 ./usr/lib/python2.7/site-packages/libxlia-0.1-py2.7.egg-info
-rw-r--r-- root/root      5508 2013-12-08 22:58 ./usr/lib/python2.7/site-packages/libxlia.pyc
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/share/
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/share/doc/
drwxr-xr-x root/root         0 2013-12-08 22:58 ./usr/share/doc/python-libxlia/
-rw-r--r-- root/root       157 2013-12-08 20:56 ./usr/share/doc/python-libxlia  /changelog.Debian.gz
-rw-r--r-- root/root      2186 2013-12-08 20:56 ./usr/share/doc/python-libxlia/copyright

$ lesspipe python-libxlia_0.1-0~quantal1_amd64.deb

python-libxlia_0.1-0~quantal1_amd64.deb:
new debian package, version 2.0.
size 36070 bytes: control archive=712 bytes.
    495 bytes,    12 lines      control              
    482 bytes,     6 lines      md5sums              
Package: python-libxlia
Version: 0.1-0~quantal1
Architecture: amd64
Maintainer: Chintalagiri Shashank <[email protected]>
Installed-Size: 129
Depends: libc6 (>= 2.14), libftdi1 (>= 0.20), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), python-support (>= 0.90)
Section: python
Priority: extra
Homepage: <snip>
Description: <snip>

*** Contents:
drwxr-xr-x root/root         0 2013-12-08 22:07 ./
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/lib/
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/lib/python2.7/
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/lib/python2.7/site-packages/
-rw-r--r-- root/root      4102 2013-12-08 22:07 ./usr/lib/python2.7/site-packages/libxlia.py
-rw-r--r-- root/root     82528 2013-12-08 22:07 ./usr/lib/python2.7/site-packages/_libxlia.so
-rw-r--r-- root/root       192 2013-12-08 22:07 ./usr/lib/python2.7/site-packages/libxlia-0.1-py2.7.egg-info
-rw-r--r-- root/root      5508 2013-12-08 22:07 ./usr/lib/python2.7/site-packages/libxlia.pyc
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/share/
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/share/doc/
drwxr-xr-x root/root         0 2013-12-08 22:07 ./usr/share/doc/python-libxlia/
-rw-r--r-- root/root       156 2013-12-08 21:56 ./usr/share/doc/python-libxlia/changelog.Debian.gz
-rw-r--r-- root/root      2186 2013-12-08 21:56 ./usr/share/doc/python-libxlia/copyright

The debian/control file used is :

Source: python-libxlia
Priority: extra
Maintainer: Chintalagiri Shashank <[email protected]>
Build-Depends: debhelper (>= 8.0.0), python-dev (>= 2.7.3), swig (>=2.0.0), libftdi-dev (>=0.19-4)
Standards-Version: 3.9.4
Section: libs
Homepage: <snip>

Package: python-libxlia
Section: python
Architecture: amd64 i386
Depends: ${shlibs:Depends}, ${misc:Depends}, python-support (>=0.90)
Description: <snip>

I've also put up the full buildlogs for the precise and quantal package builds.

Any help trying to sort this our would be greatly appreciated. Please let me know if any additional information is required or may be useful. Even a general direction to look into on this would be useful, since I have no idea where to even start looking.

share|improve this question
1  
Have you tried building the code manually on precise? I notice two warnings in the precise output not in the quantal output which would seem to relate to shlibs:Depends: g++: warning: build/temp.linux-x86_64-2.7/libxlia_wrap.o: linker input file unused because linking not done g++: warning: build/temp.linux-x86_64-2.7/libxlia.o: linker input file unused because linking not done –  Jason Conti Dec 9 '13 at 20:16
    
@JasonConti : I did not notice that. I will try to build it manually and see if anything pops. Thanks! –  Chintalagiri Shashank Dec 9 '13 at 20:22
    
The problem was with some behaviour of dh_make combined with python-setuptools that changed. I needed to force-clear CFLAGS before the call to python setup.py in my Makefile. –  Chintalagiri Shashank Dec 10 '13 at 13:03
    
@JasonConti : Thanks for the help! You can post your comment as an answer and I'll accept it. –  Chintalagiri Shashank Dec 10 '13 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.