Results 1 to 3 of 3

Thread: dpkg-buildpackage error

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Beans
    18

    Angry dpkg-buildpackage error

    Hi,

    I'm attempting to apply the quota patch to postfix 2.5.1.

    I have done the following..

    Code:
    cd /usr/src/
    apt-get source postfix
    wget http://vda.sourceforge.net/VDA/postf...da-ng.patch.gz
    gunzip postfix-2.5.1-vda-ng.patch.gz
    cd postfix-2.5.1
    patch -p1 < ../postfix-2.5.1-vda-ng.patch
    dpkg-buildpackage
    The resulting output is as follows

    Code:
    dpkg-buildpackage: set CPPFLAGS to default value: 
    dpkg-buildpackage: set CFLAGS to default value: -g -O2
    dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
    dpkg-buildpackage: set FFLAGS to default value: -g -O2
    dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
    tail: cannot open `debian/changelog' for reading: No such file or directory
    dpkg-buildpackage: failure: tail of debian/changelog gave error exit status 1
    I have searched hi and low and still can't work out how to resolve this.

    Any help most appreciated!

  2. #2
    Join Date
    Jun 2008
    Location
    California
    Beans
    154
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: dpkg-buildpackage error

    Did you try doing the same using "sudo", i.e.,

    sudo apt-get ...
    sudo wget ...
    etc...

  3. #3
    Join Date
    Mar 2008
    Beans
    18

    Re: dpkg-buildpackage error

    I've actually resolved this.

    I had downloaded the source using 'apt-get source postfix' which also downloads a ubuntu diff file. However, I'd messed about with the source so much that I was extracting it manually using 'tar -zxvf postfix-postfix_2.5.1.orig.tar.gz'. Thats fine except that when you download using 'apt-get source postfix' apt applies the diff files which installs the debian/ directory into the source code.

    So.. if anybody has this error message my suggestion is to remove ALL the source archives then download them again using 'apt-get source postfix' then execute dpkg-buildpackage in the source directory.

    Win!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •