Can't build package with pbuilder: Missing "files list file"

Asked by Philipp Hagemeister

I am trying to build an ubuntu package by following the steps at the official packing guide (http://doc.ubuntu.com/ubuntu/packagingguide/C/basic-scratch.html). This works until I try to create a binary package with pbuilder which exits with

dpkg-genchanges: failure: cannot read files list file: No such file or directory
pbuilder: Failed autobuilding of package

after compiling successfully.

What is that "files list file" ? Where is it located? Where can I find its documentation?

Thanks in advance,

Philipp Hagemeister

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Philipp Hagemeister
Solved:
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

I'm not a MOTU myself, but by reading the manual page for dplg-genchanges I gather that the list of files to be uploaded is in debian/files. If the option -f is used, the file specified by this option is used as the source for the list of files.
Perhaps if you tell us what options you specified to pbuilder?

Revision history for this message
Best Philipp Hagemeister (phihag) said :
#2

Thank you for answering; I ran pbuilder optionless.

The problem was not pbuilder but my rules file. Adding
 dpkg-gencontrol -isp
to the binary-indep rule fixed the problem.

Revision history for this message
Timo Jyrinki (timo-jyrinki) said :
#3

For people finding this via google: a common simple mistake with this symptom is that you've specified an architecture in debian/control but are building on some other architecture.

Revision history for this message
Wagner Volanin (volanin) said :
#4

Thank you Timo, you just saved me hours of headache. Spot on!