Troubleshooting Package Creation for PPA

package-managementppapython

So I tried following the steps here to create a package to upload to my PPA. I ran dh_make and edited the files. However, when my package gets generated by debuild, none of the programs files show up in the package.

Here is the output of debuild:


dpkg-source: warning: ignoring deletion of directory share
dpkg-source: warning: ignoring deletion of directory share/pixmaps

Here is what the filesystem looks like:

build_root
    – packagename_1.2.orig.tar.gz
    – packagename-1.2
         – debian
             – control
             …

The application is written in Python, if that means anything.


Edit:

Here is what the packagename_1.2.orig.tar.gz looks like:

packagename-1.2
     – src
         – somefile.py
         – someotherfilefile.py
     – images
         – test.png


Unfortunately, I'm still struggling…

Here is my debian/rules file:

#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
    dh  $@

override_dh_auto_build:

override_dh_auto_install:

…and here is my package.install file:

src/myapp.server /usr/lib/bonobo/servers
src/myapp /usr/lib/myapp
images/test.png /usr/share/test

Best Answer

You don't seem to use any build system, I think that's why you're not getting any files in your package. Have you tried looking at changing your debian/rules file?

It should be pretty easy to do if you simply put a mypackage.install file in debian/ and use the format specified in man dh_install. With appropriate substitutions, that file could look like this:

src/somefile.py usr/share/mypackage/
src/someotherfile.py usr/share/mypackage
bin/myexecutable usr/bin
image/test.png usr/share/icons/some/icon/dir/

If you do use a build system, override the dh_auto_* targets as explain in the link above (Python Packaging Guide) so that you're installing only these files and the build system (e.g distutils) doesn't interfere with files in your package.

Related Question