dpkg-genchanges: error: cannot read files list file

Asked by Dave Chen

I wanna build our source code on PPA, but it always complains that the file list cannot be found, I am really screwed now for I have trid bunch of times, the same issue is persistent there, can anyone help me? underneath is the rules file under debian directory:

%:
        dh $@

build:

clean:
        dh_testdir
        dh_testroot

        # Add here commands to clean up after the build process.
        dh_clean

install: build
        dh_testdir
        dh_testroot
        #dh_clean -k
        dh_installdirs
        #./Installer/distribute_jar_packages.sh
        #./Installer/deb.sh
        #-cp ./debian/control ./debian/openattestation/DEBIAN/control
        ./ppa.sh

binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installdeb
        dh_builddeb

and the disgusting message hit me is like this:

mkdir: cannot create directory `/build/buildd/openattestation-1.0.22/debian/openattestation/DEBIAN': File exists
1
-e DEB build: -------------- [ OK ]
dh_testdir
dh_testroot
dh_installdeb
dh_builddeb
INFO: pkgstriptranslations version 116
INFO: Disabling pkgstriptranslations for PPA build
INFO: Disabling pkgmaintainermangler for PPA build
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: warning: 'debian/openattestation/DEBIAN/control' contains user-defined field 'Build-Depends'
dpkg-deb: warning: 'debian/openattestation/DEBIAN/control' contains user-defined field 'Standards-Version'
dpkg-deb: warning: 'debian/openattestation/DEBIAN/control' contains user-defined field '#Vcs-Git'
dpkg-deb: warning: 'debian/openattestation/DEBIAN/control' contains user-defined field '#Vcs-Browser'
dpkg-deb: warning: ignoring 4 warnings about the control file(s)

dpkg-deb: building package `openattestation' in `../openattestation_1.0.13_amd64.deb'.
 dpkg-genchanges -B -mUbuntu Build Daemon <email address hidden> >../openattestation_1.0.22-1_amd64.changes
dpkg-genchanges: arch-specific upload - not including arch-independent packages
dpkg-genchanges: error: cannot read files list file: No such file or directory
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 2
**************************************************************************

Would you anyone kindly point it out and how to fix it? any suggestion is greatly appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
Jelmer Vernooij Edit question
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

Hello,

What's the package you're trying to build and in what PPA?

Does building locally work?

Revision history for this message
Dave Chen (wei-d-chen) said :
#2

Hi Jelmer,

Thanks for your reply, we can build the package locally, I have tried it many times. The package we want to build on launchpad is an opensource project, package name is openattestation, and I config the changelog like this:

openattestation (1.0.31-1) precise; urgency=high

  * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>

 -- root <email address hidden> Tue, 21 Aug 2012 19:11:37 +0800

Revision history for this message
Jelmer Vernooij (jelmer) said :
#3

Have you tried building just the arch specific bits when building locally?

Revision history for this message
Dave Chen (wei-d-chen) said :
#4

Jelmer, thanks for your reply. I am just a newbee, would you kindly tell me how to build the arch specific bits? any configuration in the rules? thanks!

Revision history for this message
Dave Chen (wei-d-chen) said :
#5

Jelmer, thanks for your reply. I am just a newbee, would you kindly tell me how to build the arch specific bits? any configuration in the rules? thanks!

Revision history for this message
Jelmer Vernooij (jelmer) said :
#6

Running "./debian/rules binary-arch" should do it.

Revision history for this message
Dave Chen (wei-d-chen) said :
#7

yes, it works when building locally with binary-arch. I suspect there is an issue with my rules file when I try to build on lauchpad but I cannot figure it out.

Revision history for this message
Colin Watson (cjwatson) said :
#8

You have an odd mix of different styles of rules file in here, which is not going to help you.

You should delete the build, clean, install, and binary-arch targets entirely - the "dh $@" at the top covers almost all of this already. Then, to add the one piece of customisation you actually need here:

override_dh_auto_install:
        ./ppa.sh

Make sure that the spaces before "./ppa.sh" are actually a tab character - I can't represent that properly in this comment system.

However, it looks like the error message is actually coming from your ppa.sh script, which I can't see, so I have no way to offer advice on how it should be fixed.

Can you help with this problem?

Provide an answer of your own, or ask Dave Chen for more information if necessary.

To post a message you must log in.