Announcement

Collapse
No announcement yet.

Packaging

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Packaging

    Okay, so I'm trying to follow the log of the packaging tutorial from Kubuntu Tutorials Day. I am up to the final step of running debuild, but get the following error:
    Code:
    marshallbanana@MPU:~/kraft-0.20/debian$ debuild
     fakeroot debian/rules clean
    dh_testdir
    dh_testroot
    rm -f build-stamp
    [ ! -f Makefile ] || /usr/bin/make distclean
    dh_clean
     dpkg-source -b kraft-0.20
    dpkg-source: warning: unknown information field 'Homepage' in input data in general section of control info file
    dpkg-source: building kraft using existing kraft_0.20.orig.tar.gz
    dpkg-source: failure: unable to create `kraft_0.20.orig.tar.gz.tmp-nest': File exists
    debuild: fatal error at line 1247:
    dpkg-source -b kraft-0.20 failed
    the contents of /debian/control are:
    Source: kraft
    Section: kde
    Priority: optional
    Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
    XSBC-Original-Maintainer: R <m@g>
    Build-Depends: debhelper (>= 5.0.0), kdelibs4-dev, libqt3-mt-dev, docbook2x
    Standards-Version: 3.7.3
    Homepage: http://kraft.sourceforge.net

    Package: kraft
    Architecture: any
    Depends: ${shlibsepends}
    Description: krafty app
    Anyone got any idea what I'm doing wrong here?

    Note: I have intentionally mangled XSBC-Original-Maintainer: R <m@g> line

    #2
    Re: Packaging

    Oop, just solved it by deleting the file kraft_0.20.orig.tar.gz.tmp-nest which was created by an earlier failed attempt to run debuild. That was fairly stupid.

    At this point the process does create the deb file but I also get the error
    <snipped>
    warning, `debian/kraft/DEBIAN/control' contains user-defined field `Original-Mai ntainer'
    dpkg-deb: ignoring 1 warnings about the control file(s)
    dpkg-deb: building package `kraft' in `../kraft_0.20-0ubuntu1_i386.deb'.
    dpkg-genchanges
    dpkg-genchanges: not including original source code in upload
    dpkg-buildpackage (debuild emulation): binary and diff upload (original source N OT included)
    Now signing changes and any dsc files...
    Could not find a signing program (pgp or gpg)!
    debuild: fatal error at line 1174:
    running debsign failed
    I'm guessing I just have to apt-get a package. But which? Searching adept for pgp or gpg returns quite a number, many of which appear to be just frontend guis.
    The deb does seem to work, but would rather create one without an error during the process.

    Comment


      #3
      Re: Packaging

      Code:
      sudo apt-get install gpg
      Then you will need to set up a key pair, and add a few variables to your .bashrc file so that debsign will find the key. Alternatives are:
      Code:
      debuild -k<your-key-id>
      Code:
      debuild -us -uc
      The second one will just skip the gpg signing.

      The additions to your .bashrc file should look like this:
      Code:
      export DEBFULLNAME='Your Full Name'
      export DEBEMAIL='Your@email.here'
      But I had to add:
      Code:
      export DEBSIGN_KEYID=your-key-id
      To make it work.

      Good luck!

      Comment

      Working...
      X