0

My hand-made debian package wont install if i build it on Squeeze (well, a squeezechroot)? If i built it on a wheezy box though it builds installable packages.

Note that it builds fine in either case. Im generating the debian packages using CMake/CPack.

The error message i get is:

user@buildbox:/builddir/packagename# dpkg -i packagename_1.0.3.deb
(Reading database ... 35116 files and directories currently installed.)
Unpacking packagename (from packagename_1.0.3.deb) ...
dpkg: error processing packagename_1.0.3.deb (--install):
 unable to create `/usr/share/packagename/builddir/mixer_devices.txt.dpkg-new' (while processing `./usr/share/packagename/builddir/mixer_devices.txt'): No such file or directory
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 packagename_1.0.3.deb
Alan Curry
  • 14,255
  • 3
  • 32
  • 33
James Bennet
  • 603
  • 2
  • 10
  • 22
  • Do you really want to create `/usr/share/packagename/builddir/mixer_devices.txt` as part of installing the package? "builddir" sounds like something that shouldn't be installed. – Alan Curry Aug 28 '12 at 20:33
  • Ooh, this is a very good point. In my cPack file (which is generating these packages), its install target is correctly set to /use/share/package name/mixer_devices.txt. – James Bennet Aug 29 '12 at 05:50
  • No more ideas? I'm gonna diff the squeeze built version and the wheezy built one and see what's different. – James Bennet Aug 29 '12 at 15:06
  • 1
    I kinda expected a yes or no answer to my question. If you want it packaged, you need to add the dir to `debian/dirs`. If not, figure out why it's being included in the `debian/tmp` and get it out of there. – Alan Curry Aug 29 '12 at 19:10

1 Answers1

0

Might it be that mixer_devices is not contained within the created deb file for some reason?

Just do an ar x packagename_1.0.3.deb and see what the tar file contains.

Mihai Iorga
  • 39,330
  • 16
  • 106
  • 107
Tim Sander
  • 49
  • 2